Index | Files

package opentype

import ""

Package opentype implements text layout and shaping for OpenType files.


Package Files


type Font Uses

type Font struct {
    // contains filtered or unexported fields

Font implementats text.Face.

func Parse Uses

func Parse(src []byte) (*Font, error)

NewFont parses an SFNT font, such as TTF or OTF data, from a []byte data source.

func (*Font) Layout Uses

func (f *Font) Layout(ppem fixed.Int26_6, str string, opts text.LayoutOptions) *text.Layout

func (*Font) Shape Uses

func (f *Font) Shape(ppem fixed.Int26_6, str text.String) clip.Op

Package opentype imports 10 packages (graph) and is imported by 2 packages. Updated 2019-11-15. Refresh now. Tools for package owners.