Versions in this module Expand all Collapse all v0 v0.0.3 Apr 21, 2023 v0.0.2 Apr 28, 2022 Changes in this version + const CHARCELL + const DUAL + const HINT_FULL + const HINT_MEDIUM + const HINT_NONE + const HINT_SLIGHT + const LCD_DEFAULT + const LCD_LEGACY + const LCD_LIGHT + const LCD_NONE + const MONO + const MatchQuery + const MatchResult + const MatchScan + const PROPORTIONAL + const RGBA_BGR + const RGBA_NONE + const RGBA_RGB + const RGBA_UNKNOWN + const RGBA_VBGR + const RGBA_VRGB + const SLANT_ITALIC + const SLANT_OBLIQUE + const SLANT_ROMAN + const WEIGHT_BLACK + const WEIGHT_BOLD + const WEIGHT_BOOK + const WEIGHT_DEMIBOLD + const WEIGHT_DEMILIGHT + const WEIGHT_EXTRABLACK + const WEIGHT_EXTRABOLD + const WEIGHT_EXTRALIGHT + const WEIGHT_HEAVY + const WEIGHT_LIGHT + const WEIGHT_MEDIUM + const WEIGHT_NORMAL + const WEIGHT_REGULAR + const WEIGHT_SEMIBOLD + const WEIGHT_SEMILIGHT + const WEIGHT_THIN + const WEIGHT_ULTRABLACK + const WEIGHT_ULTRABOLD + const WEIGHT_ULTRALIGHT + const WIDTH_CONDENSED + const WIDTH_EXPANDED + const WIDTH_EXTRACONDENSED + const WIDTH_EXTRAEXPANDED + const WIDTH_NORMAL + const WIDTH_SEMICONDENSED + const WIDTH_SEMIEXPANDED + const WIDTH_ULTRACONDENSED + const WIDTH_ULTRAEXPANDED + var Identity = Matrix + var Standard = &Config + func DefaultFontDirs() ([]string, error) + func PartialScanFontDirectories(dirs ...string) ([]fonts.FaceDescription, error) + func WeightFromOT(otWeight float32) float32 + func WeightToOT(fcWeight float32) float32 + type Bool uint8 + const DontCare + const False + const True + func (b Bool) String() string + type Charset struct + func (a Charset) Len() int + func (fcs *Charset) AddChar(r rune) + func (fcs *Charset) HasChar(r rune) bool + func (fcs Charset) Copy() Charset + func (fcs Charset) DelChar(r rune) + func (s Charset) String() string + type Config struct + func NewConfig() *Config + func (c *Config) Copy() *Config + func (config *Config) LoadFromDir(dir string) error + func (config *Config) LoadFromMemory(r io.Reader) error + func (config *Config) PrepareRender(pat, font Pattern) Pattern + func (config *Config) ScanFontDirectories(dirs ...string) (Fontset, error) + func (config *Config) ScanFontFile(path string) (Fontset, error) + func (config *Config) ScanFontRessource(content fonts.Resource, contentID string) (Fontset, error) + func (config *Config) Substitute(p, testPattern Pattern, kind matchKind) + type ExportedFamilySubstitution struct + AdditionalFamilies []string + Comment string + OpCode string + TestCode string + func GenerateSubstitution() ([]ExportedFamilySubstitution, error) + type Float float32 + type FontFormat string + const PCF + const TrueType + const Type1 + func ReadFontFile(file fonts.Resource) (fonts.Faces, FontFormat) + func (ff FontFormat) Loader() fonts.FontLoader + type Fontset []Pattern + func LoadFontset(src io.Reader) (Fontset, error) + func LoadFontsetFile(file string) (Fontset, error) + func ScanAndCache(fontsFileCache string) (Fontset, error) + func (fs Fontset) Serialize(dst io.Writer) error + func (set Fontset) List(p Pattern, objs ...Object) Fontset + func (set Fontset) Match(p Pattern, config *Config) Pattern + func (set Fontset) Sort(p Pattern, trim bool) (Fontset, Charset) + type Int int32 + type Langset struct + func NewLangset(str string) Langset + func (ls Langset) Copy() Langset + func (ls Langset) String() string + type Matrix struct + Xx float32 + Xy float32 + Yx float32 + Yy float32 + func (a Matrix) Multiply(b Matrix) Matrix + type Object uint16 + const ANTIALIAS + const ASPECT + const AUTOHINT + const CAPABILITY + const CHARSET + const CHARWIDTH + const CHAR_HEIGHT + const COLOR + const DECORATIVE + const DPI + const EMBEDDED_BITMAP + const EMBOLDEN + const FAMILY + const FAMILYLANG + const FILE + const FONTFORMAT + const FONTVERSION + const FONT_FEATURES + const FONT_HAS_HINT + const FONT_VARIATIONS + const FOUNDRY + const FULLNAME + const FULLNAMELANG + const FirstCustomObject + const GLOBAL_ADVANCE + const HASH + const HINTING + const HINT_STYLE + const INDEX + const LANG + const LCD_FILTER + const MATRIX + const MINSPACE + const NAMELANG + const ORDER + const OUTLINE + const PIXEL_SIZE + const POSTSCRIPT_NAME + const PRGNAME + const RASTERIZER + const RGBA + const SCALABLE + const SCALE + const SIZE + const SLANT + const SPACING + const STYLE + const STYLELANG + const SYMBOL + const VARIABLE + const VERTICAL_LAYOUT + const WEIGHT + const WIDTH + func (object Object) String() string + type Pattern map[Object]*valueList + func BuildPattern(elements ...PatternElement) Pattern + func NewPattern() Pattern + func (p Pattern) Add(object Object, value Value, appendMode bool) + func (p Pattern) AddBool(object Object, value bool) + func (p Pattern) AddFloat(object Object, value float32) + func (p Pattern) AddInt(object Object, value int32) + func (p Pattern) AddString(object Object, value string) + func (p Pattern) Del(object Object) + func (p Pattern) Duplicate() Pattern + func (p Pattern) FaceID() fonts.FaceID + func (p Pattern) Format() FontFormat + func (p Pattern) GetAt(object Object, id int) (Value, Result) + func (p Pattern) GetBool(object Object) (Bool, bool) + func (p Pattern) GetCharset(object Object) (Charset, bool) + func (p Pattern) GetFloat(object Object) (float32, bool) + func (p Pattern) GetFloats(object Object) []float32 + func (p Pattern) GetInt(object Object) (int32, bool) + func (p Pattern) GetInts(object Object) []int32 + func (p Pattern) GetMatrices(object Object) []Matrix + func (p Pattern) GetMatrix(object Object) (Matrix, bool) + func (p Pattern) GetString(object Object) (string, bool) + func (p Pattern) GetStrings(object Object) []string + func (p Pattern) Hash() string + func (p Pattern) String() string + func (pattern Pattern) SubstituteDefault() + type PatternElement struct + Object Object + Value Value + type Range struct + Begin float32 + End float32 + type Result uint8 + const ResultMatch + const ResultNoId + const ResultNoMatch + const ResultTypeMismatch + type String string + type Value interface