package
Version:
v0.0.0-...-117f852
Opens a new window with list of versions in this module.
Published: Jun 20, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Glyphs is the interface to a font face.
LoadTruetype loads a Face from the provided path.
LoadTruetypeFromBytes loads a Face from the provided bytes of TTF data.
ID is our glyphs ID index.
const (
Default ID = iota
Alternate
)
Theses are our default font IDs we provide names for.
type Truetype struct {
Normal font.Face
}
Truetype is our Truetype data.
Ascent returns the ascent of the font.
Height gets the width of the font.
SetSize sets the glyph size to the provided size.
Type returns FaceTruetype.
Width gets the width of the font.
Type represents the underlying data type of a Glyphs.
const (
BitmapType Type = iota
TruetypeType
)
These are our built-in GlyphTypes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.