Documentation ¶
Index ¶
- type Face
- func (f *Face) AddFace(face font.Face)
- func (f *Face) AddTruetypeFace(face font.Face, fnt *truetype.Font)
- func (f *Face) Close() error
- func (f *Face) Glyph(dot fixed.Point26_6, r rune) (dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ...)
- func (f *Face) GlyphAdvance(r rune) (advance fixed.Int26_6, ok bool)
- func (f *Face) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool)
- func (f *Face) Kern(r0, r1 rune) fixed.Int26_6
- func (f *Face) Metrics() font.Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Face ¶
type Face struct {
// contains filtered or unexported fields
}
func (*Face) AddFace ¶
AddFace adds a font.Face to the multiface.Face
DO NOT USE this for Truetype fonts. github.com/golang/freetype/truetype.Face methods return ok = true even when the glyph could not be found in the font.
func (*Face) GlyphBounds ¶
Click to show internal directories.
Click to hide internal directories.