testcases

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

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

func NewFontGen() (*FontGen, error)

func (*FontGen) GsubTestFont

func (g *FontGen) GsubTestFont(idx int) (*sfnt.Font, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL