Documentation ¶
Overview ¶
Package otquery queries metrics and other information from OpenType fonts.
Package otquery provides functions to query layout information from a font. It knows about the various tables contained in OpenType fonts and which ones to address for queries. Clients of this package will, amongst other, be:
▪︎ text shapers, such as HarfBuzz (https://harfbuzz.github.io/what-does-harfbuzz-do.html)
▪︎ glyph rasterizers, such as FreeType (https://github.com/golang/freetype)
Status ¶
Work in progress. Handling fonts is fiddly and fonts have become complex software applications in their own right. I often need a break from the vast desert of bytes (without any sign posts), which is what font data files are at their core. Breaks, where I talk to myself and ask, this is what you do in your spare time? Really?
No font collections nor variable fonts are supported yet.
License ¶
Governed by a 3-Clause BSD license. License file may be found in the root folder of this module.
Copyright © 2017–2021 Norbert Pillmayer <norbert@pillmayer.com>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LayoutTables ¶
LayoutTables returns a list of tag strings, one for each layout-table a font includes.
From the spec: OpenType Layout makes use of five tables: GSUB, GPOS, BASE, JSTF, and GDEF.
Types ¶
This section is empty.