PeachDrawing.Text

PeachDrawing.Text

GenericFamily Enum

A generic font family: a kind of typeface that each platform has its own answer for, named as CSS Fonts names them.

public enum GenericFamily

Fields

Serif 0

Serif letterforms (serif).

SansSerif 1

Sans-serif letterforms (sans-serif).

Monospace 2

Fixed-pitch letterforms (monospace).

Cursive 3

Handwriting-style letterforms (cursive).

Fantasy 4

Decorative letterforms (fantasy).

SystemUi 5

The typeface the platform’s own interface is set in (system-ui).

Math 6

A typeface made for mathematical expressions, one with an OpenType MATH table (math).

Remarks

ResolveGeneric(GenericFamily, Func<string,bool>) turns one into the name of a family the machine is likely to have.