Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gsub = []*GsubTestCase{} // END OF TEST CASES /* 117 elements not displayed */
Gsub lists test cases for the GSUB table.
My overall aim is to replicate the behaviour of ligatures in MS Word, but so far I have failed to reverse engineer the complete set of rules for this. For comparison, I have also included the behaviour of harfbuzz and of the MacOS layout engine.
Functions ¶
This section is empty.
Types ¶
type FontGen ¶
type FontGen struct { CMap cmap.Subtable Rev map[glyph.ID]rune // contains filtered or unexported fields }
func NewFontGen ¶
type GsubTestCase ¶
type GsubTestCase struct { // Name is a human-readable label for the test. Name string // Desc is a textual description of a GSUB lookup. // This uses the syntax of seehuhn.de/go/sfnt/opentype/gtab/builder . Desc string // In is the input string for the GSUB lookup. In string // Out is the expected output string for the GSUB lookup. Out string // Text is the expected output text content for the GSUB lookup. This is // only used in cases where ignored glyphs have to be moved after the // glyphs involved in a lookup, thus changing the order of text. // If this is empty, the expected text content is the same as In. Text string }
GsubTestCase is a test case for the GSUB lookups.
Click to show internal directories.
Click to hide internal directories.