Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultFeatures = "calt,case,zero"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatError ¶
type FormatError string
A FormatError reports that the input is not a valid TrueType font.
func (FormatError) Error ¶
func (e FormatError) Error() string
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
func New ¶
func New(ttf []byte, script string, features string, autoligatures bool) (*Machine, []string, error)
Script selects the default script to use. Features is a comma separated list of features to enable. If script is the empty string "DFLT", "dflt" and "latn" will be used. If features is the empty string the features specified in DefaultFeatures will be used, if no features should be enabled use "none"
type UnsupportedError ¶
type UnsupportedError string
An UnsupportedError reports that the input uses a valid but unimplemented TrueType feature.
func (UnsupportedError) Error ¶
func (e UnsupportedError) Error() string
Click to show internal directories.
Click to hide internal directories.