Documentation
¶
Index ¶
Constants ¶
View Source
const ASCII = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
ASCII defines all ascii characters.
View Source
const Magic = "FNCV"
View Source
const MagicSDF = "FSDF"
Variables ¶
View Source
var InvalidBinary = fmt.Errorf("fntconv: invalid binary")
Functions ¶
Types ¶
type Glyphs ¶
type Glyphs struct {
Glyphs []Glyph
MaxAdvance fixed.Int26_6
PPEM fixed.Int26_6
Ascent fixed.Int26_6
Height fixed.Int26_6
// contains filtered or unexported fields
}
func Unmarshal ¶
Unmarshal decodes a binary font representation into a Glyphs structure, returning an error if the format is invalid.
Click to show internal directories.
Click to hide internal directories.