Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Unifont ¶
type Unifont struct {
// contains filtered or unexported fields
}
Unifont is a pared Unifont .hex file. It is safe to use concurrently with multiple font faces as long as no methods are called on it after being supplied to a font face.
func ParseHex ¶
func ParseHex(s io.Reader, options ...UnifontOptions) (*Unifont, error)
Parses the supplied Unifont .hex file from an input stream
func ParseHexFile ¶
func ParseHexFile(filename string, options ...UnifontOptions) (*Unifont, error)
Parses the supplied Unifont .hex file from a file
func ParseHexGzFile ¶
func ParseHexGzFile(filename string, options ...UnifontOptions) (*Unifont, error)
Parses the supplied Unifont .hex file from a gzipped file
func (*Unifont) CombiningInfo ¶
Parse combining info from a combining.txt input stream.
To get the data from the Unifont project to supply here, you can use this command on the command line in a copy of the Unicode source release:
shopt -s globstar sort -u **/*-combining.txt > combining.txt
This will generate a combined.txt file containing all the combining character offsets.
func (*Unifont) CombiningInfoFile ¶
Parse combining info from a combining.txt file.
func (*Unifont) CombiningInfoGzFile ¶
Parse combining info from a combining.txt.gz stream.
type UnifontOptions ¶
type UnifontOptions int
Optional flags to supply to the Unifont parsing functions
const ( // Skip parsing characters in the Private Use Areas. NoPAUs UnifontOptions = iota )