[−][src]Crate crossfont
Compatibility layer for different font engines.
CoreText is used on Mac OS. FreeType is used on everything that's not Mac OS. Eventually, ClearType support will be available for windows.
Modules
byte_order | Constants for bitmap byte order. |
Structs
Descriptor | Font descriptor. |
Font | A font. |
FontDesc | |
FontKey | Identifier for a Font for use in maps/etc. |
GlyphKey | |
Metrics | |
RasterizedGlyph | |
Rasterizer | Rasterizer, the main type exported by this package. |
Size | Font size stored as integer. |
Enums
BitmapBuffer | |
Error | Errors occurring when using the core text rasterizer. |
FontOrientation | Specifies the intended rendering orientation of the font for obtaining glyph metrics. |
Slant | |
Style | Style of font. |
Weight |
Traits
Rasterize |
Functions
descriptors_for_family | Get descriptors for family name. |
get_family_names | List all family names. |
set_font_smoothing | Set subpixel anti-aliasing on macOS. |