[−][src]Module polyhorn_ui::font
Technical implementation of a subset of CSS Fonts Module Level 4 (WD).
Structs
Font | Controls the rendering of text to screen. |
Enums
FontFamily | Controls the font family that produces the glyphs that are drawn for a text. |
FontSize | Controls the size of text that is rendered to the screen. |
FontStyle | Most fonts come in one to three styles: a normal style and one or two slanted styles. The normal font style is the default font style used for text. The oblique font style (if present) is a slanted version of the same source glyphs. An italic font style is made from a separate set of source glyphs. |
FontWeight | Controls the thickness of outlines rendered to a text element. |
GenericFontFamily | Polyhorn provides a few generic font families that can be used to get a system-provided typeface in a particular category that looks best on a user's display. The default generic font family is SansSerif. |