Meziantou.Framework.Imaging.Typography namespace
Classes
| Name | Description |
|---|---|
| Font | A font face loaded from a TrueType or OpenType file (.ttf, .otf), from a WOFF or WOFF2 file, or from a font collection (.ttc, .otc). |
| FontCollection | The faces of a font file: every face of a font collection (.ttc), or the single face of another font file. |
| FontColorPalette | A palette of a color font: the colors its color glyphs are painted with. |
| FontLoadOptions | Options for loading a font. Instances are immutable and can be shared. |
| FontNamedInstance | An instance a variable font names, such as "Bold" or "Condensed Light": a value for each of its axes. |
| FontStack | The fonts of a text, by order of preference: a primary font, then the fonts that are used for the characters the ones before them do not have. |
| FontVariationAxis | An axis a variable font varies along: its tag, its name and the range of its values. |
| GlyphCache | Keeps what drawing a glyph computes from one draw call to the next, up to a number of bytes: the coverage of a glyph at a position in a pixel, and the display list of a glyph a font draws with its own colors. |
| GlyphRunOptions | How DrawingCanvas.FillGlyphs and DrawingCanvas.StrokeGlyphs draw a run of glyphs. |
| InstalledFontFallbackOptions | Options of the fallback of a FontStack to the installed fonts. Instances are immutable and can be shared. |
| RichText | A text whose parts have their own style: fonts, size, paint, decorations. Built by RichTextBuilder. |
| RichTextBuilder | Builds a RichText, one span after the other. |
| TextLayout | A text laid out: its lines, its glyphs and their positions. It is what DrawingCanvas.FillText draws, and what measures a text before it is drawn. |
| TextLayoutOptions | How a text is laid out: the box it must fit, how its lines are broken and aligned. |
| TextStyle | How a text, or a part of a text, is set: its fonts, its size, and what is drawn with it. |
Structs
| Name | Description |
|---|---|
| FontFeature | A feature of the OpenType Layout tables of a font, turned on or off for a text: ligatures (liga), kerning (kern), small capitals (smcp), tabular figures (tnum), a stylistic set (ss01)... |
| FontMetrics | The vertical metrics of a font: in font units for Font.Metrics, in pixels for Font.GetMetrics. |
| FontVariationSetting | The value of an axis of a variable font: a weight of 650 (wght), a width of 80 (wdth). |
| PositionedGlyph | A glyph of a font at a position: what a text shaper gives, which DrawingCanvas.FillGlyphs draws. |
| TextHit | The character of a TextLayout a point is on, or the nearest one: what TextLayout.HitTest finds. |
| TextLine | A line of a TextLayout: the part of the text it holds and where it is. |
| TextSpan | A part of a RichText that has one style. |
| TextTabStop | A tabulation stop of a line: where the text after a tabulation goes, and how it is aligned there. |
Enums
| Name | Description |
|---|---|
| FontSynthesis | What is made from the glyphs of a font when the font of the style wanted does not exist. |
| TextAlignment | How the lines of a text are placed in the width of its layout. |
| TextBounds | The box of a text that TextLayout.GetOrigin places. |
| TextDecorations | The lines drawn with a text. |
| TextDirection | The base direction of the paragraphs of a text. |
| TextHinting | How the outlines of the glyphs of a text are fitted to the pixel grid (TextLayoutOptions.Hinting). |
| TextHorizontalAnchor | The point of the box of a text, along x, that TextLayout.GetOrigin puts at an anchor. The sides are those of the image, whatever the direction of the text. |
| TextHyphenation | Whether words are hyphenated at the end of a line. |
| TextJustification | Where a justified line (TextAlignment.Justify) takes the room it is stretched by. |
| TextLineBreak | How strict the rules that keep some characters of Chinese and Japanese text off the start or the end of a line are. |
| TextLineBreakStrategy | How the places where the lines of a paragraph end are chosen among its break opportunities. |
| TextOrientation | How the characters of a vertical line are set. |
| TextOverflowWrap | What happens to a word that is wider than the layout. |
| TextTabAlignment | How the text after a tabulation is placed at a tabulation stop (TextTabStop). |
| TextTrimming | What replaces the text that does not fit the layout. |
| TextVerticalAnchor | The point of the box of a text, along y, that TextLayout.GetOrigin puts at an anchor. |
| TextWordBreak | Where a line can be broken inside a word. |
| TextWrapping | Whether a line that is wider than the layout continues on the next line. |
| TextWritingMode | The direction of the lines of a text, and the side its lines follow each other to. |