Documentation ¶
Overview ¶
Package head reads and writes "head" tables. https://docs.microsoft.com/en-us/typography/opentype/spec/head
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { FontRevision Version // set by font manufacturer HasYBaseAt0 bool // baseline for font at y=0 HasXBaseAt0 bool // left sidebearing point at x=0 (only for TrueType) IsNonlinear bool // outline/advance width may change nonlinearly UnitsPerEm uint16 // font design units per em square Created time.Time Modified time.Time FontBBox funit.Rect16 IsBold bool IsItalic bool HasShadow bool IsCondensed bool IsExtended bool LowestRecPPEM uint16 // smallest readable size in pixels LocaFormat int16 // 0 for short offsets, 1 for long (TrueType only) }
Info represents the information in the "head" table of an sfnt.
type Version ¶
type Version uint32
Version represents the font revision in 16.16 fixed point format.
func VersionFromString ¶
VersionFromString parses a version string in the form "1.234" or "Version 1.234". String data after the last digit is ignored.
Click to show internal directories.
Click to hide internal directories.