Skip to main content

Crate ttf_rs

Crate ttf_rs 

Source

Structs§

BoundingBox
Bounding box for glyphs
CachedFont
Cached font wrapper with lazy table loading
CmapTable
CMAP table - Character to glyph mapping
CompositeGlyph
Font
Main Font structure representing a TrueType font.
FontModifier
Font modifier for updating font properties.
FontReader
Helper struct for reading TTF data with proper endianness handling
FontSubset
FontSubset allows creating a subset of a font with only specified glyphs
FontWriter
Helper struct for writing TTF data with proper endianness handling
Format4
Format6
Format12
Format13
Format 13 - Many-to-one range mappings
Format14
Format 14 - Unicode variation sequences
GlyfTable
GLYF table - Glyph data
HeadTable
HEAD table - Font header
HheaTable
HHEA table - Horizontal header
HmtxTable
HMTX table - Horizontal metrics
MaxpTable
MAXP table - Maximum profile
NameTable
NAME table - Naming table
Os2Table
OS/2 table - OS/2 and Windows metrics
Point
2D Point for glyph coordinates
PostTable
POST table - PostScript information
RasterizedGlyph
Rasterizer
Rasterizer for converting TTF outlines to bitmaps
SimpleGlyph
TableRecord
Table record in the SFNT header
Transform
ValidationError
ValidationReport
Validation report for a font
ValidationWarning

Enums§

CmapSubtable
GlyphData
LocaTable
LOCA table - Index to location
TtfError

Traits§

TtfTable
Trait that all TTF tables must implement for reading
TtfTableWrite
Trait for tables that can be written

Functions§

calculate_checksum
Calculate TTF checksum

Type Aliases§

Result