MCPcopy
hub / github.com/tdewolff/canvas / FontSubsetter

Struct FontSubsetter

font.go:147–150  ·  view source on GitHub ↗

FontSubsetter holds a map between original glyph IDs and new glyph IDs in a subsetted font.

Source from the content-addressed store, hash-verified

145
146// FontSubsetter holds a map between original glyph IDs and new glyph IDs in a subsetted font.
147type FontSubsetter struct {
148 IDs []uint16 // old glyphIDs for increasing new glyphIDs
149 IDMap map[uint16]uint16 // old to new glyphID
150}
151
152// NewFontSubsetter returns a new font subsetter.
153func NewFontSubsetter() *FontSubsetter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected