Meziantou.Framework.Imaging.Typography namespace

Classes

NameDescription
FontA font face loaded from a TrueType or OpenType file (.ttf, .otf), from a WOFF or WOFF2 file, or from a font collection (.ttc, .otc).
FontCollectionThe faces of a font file: every face of a font collection (.ttc), or the single face of another font file.
FontColorPaletteA palette of a color font: the colors its color glyphs are painted with.
FontLoadOptionsOptions for loading a font. Instances are immutable and can be shared.
FontNamedInstanceAn instance a variable font names, such as "Bold" or "Condensed Light": a value for each of its axes.
FontStackThe 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.
FontVariationAxisAn axis a variable font varies along: its tag, its name and the range of its values.
GlyphCacheKeeps 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.
GlyphRunOptionsHow DrawingCanvas.FillGlyphs and DrawingCanvas.StrokeGlyphs draw a run of glyphs.
InstalledFontFallbackOptionsOptions of the fallback of a FontStack to the installed fonts. Instances are immutable and can be shared.
RichTextA text whose parts have their own style: fonts, size, paint, decorations. Built by RichTextBuilder.
RichTextBuilderBuilds a RichText, one span after the other.
TextLayoutA 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.
TextLayoutOptionsHow a text is laid out: the box it must fit, how its lines are broken and aligned.
TextStyleHow a text, or a part of a text, is set: its fonts, its size, and what is drawn with it.

Structs

NameDescription
FontFeatureA 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)...
FontMetricsThe vertical metrics of a font: in font units for Font.Metrics, in pixels for Font.GetMetrics.
FontVariationSettingThe value of an axis of a variable font: a weight of 650 (wght), a width of 80 (wdth).
PositionedGlyphA glyph of a font at a position: what a text shaper gives, which DrawingCanvas.FillGlyphs draws.
TextHitThe character of a TextLayout a point is on, or the nearest one: what TextLayout.HitTest finds.
TextLineA line of a TextLayout: the part of the text it holds and where it is.
TextSpanA part of a RichText that has one style.
TextTabStopA tabulation stop of a line: where the text after a tabulation goes, and how it is aligned there.

Enums

NameDescription
FontSynthesisWhat is made from the glyphs of a font when the font of the style wanted does not exist.
TextAlignmentHow the lines of a text are placed in the width of its layout.
TextBoundsThe box of a text that TextLayout.GetOrigin places.
TextDecorationsThe lines drawn with a text.
TextDirectionThe base direction of the paragraphs of a text.
TextHintingHow the outlines of the glyphs of a text are fitted to the pixel grid (TextLayoutOptions.Hinting).
TextHorizontalAnchorThe 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.
TextHyphenationWhether words are hyphenated at the end of a line.
TextJustificationWhere a justified line (TextAlignment.Justify) takes the room it is stretched by.
TextLineBreakHow strict the rules that keep some characters of Chinese and Japanese text off the start or the end of a line are.
TextLineBreakStrategyHow the places where the lines of a paragraph end are chosen among its break opportunities.
TextOrientationHow the characters of a vertical line are set.
TextOverflowWrapWhat happens to a word that is wider than the layout.
TextTabAlignmentHow the text after a tabulation is placed at a tabulation stop (TextTabStop).
TextTrimmingWhat replaces the text that does not fit the layout.
TextVerticalAnchorThe point of the box of a text, along y, that TextLayout.GetOrigin puts at an anchor.
TextWordBreakWhere a line can be broken inside a word.
TextWrappingWhether a line that is wider than the layout continues on the next line.
TextWritingModeThe direction of the lines of a text, and the side its lines follow each other to.