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).

UiSerif 7

The serif typeface the platform’s own interface offers (ui-serif): New York on Apple platforms, the platform’s serif elsewhere.

UiSansSerif 8

The sans-serif typeface the platform’s own interface is set in (ui-sans-serif): the same typeface as SystemUi.

UiMonospace 9

The fixed-pitch typeface the platform’s own interface offers (ui-monospace): SF Mono on Apple platforms, the platform’s monospace elsewhere.

UiRounded 10

The rounded typeface the platform’s own interface offers (ui-rounded): SF Rounded on Apple platforms, the interface typeface elsewhere.

Remarks

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