Source File
tables.go
Belonging Package
github.com/go-text/typesetting/font/opentype/tables
// SPDX-License-Identifier: Unlicense OR BSD-3-Clausepackage tablesimport//go:generate ../../../../typesetting-utils/generators/binarygen/cmd/generator . _src.gotype GlyphID = uint16// NameID is the ID for entries in the font table.type NameID uint16type Tag = opentype.Tag// Float1616 is a float32, represented in// fixed 16.16 format in font files.type Float1616 = float32func ( uint32) Float1616 {// value are actually signed integersreturn Float1616(int32()) / (1 << 16)}func ( Float1616) uint32 {return uint32(int32( * (1 << 16)))}// Fixed214 is a number stored as a fixed 2.14 integertype Fixed214 = Coordfunc ( uint16) float32 {// value are actually signed integersreturn float32(int16()) / (1 << 14)}// Coord is a real number in [-1;1], stored as a fixed 2.14 integertype Coord int16func ( float64) Coord {return Coord( * (1 << 14))}func abs( Coord) Coord {if < 0 {return -}return}func readUint24( []byte) uint32 {_ = [2] // bounds check hint to compiler; see golang.org/issue/14808return uint32([2]) | uint32([1])<<8 | uint32([0])<<16}// Number of seconds since 12:00 midnight that started January 1st 1904 in GMT/UTC time zone.type longdatetime = uint64// PlatformID represents the platform id for entries in the name table.type PlatformID uint16// EncodingID represents the platform specific id for entries in the name table.// The most common values are provided as constants.type EncodingID uint16// LanguageID represents the language used by an entry in the name tabletype LanguageID uint16// Offset16 is an offset into the input byte slicetype Offset16 uint16// Offset32 is an offset into the input byte slicetype Offset32 uint32
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |