Generic Font Names

Values for the kCMTextMarkupAttribute_GenericFontFamilyName attribute specifying fonts by their general properties.

Overview

Some media formats allow the specification of font family names to be used to style text they carry. Sometimes, an external specification such as CSS be used to style the text carried by the media format. In either case, the specification may be concrete, indicating an installed platform font (e.g., "Times New Roman", Helvetica). It may be abstract, indicating a category of font to use (e.g., serif, sans-serif). This abstract designation is often termed a "generic font family".

The Media Accessibility framework can map eight categories of abstract fonts to an installed font. Users may choose to override each of these categories to a different installed font. (See Media Accessibility Function.)

Topics

Constants

kCMTextMarkupGenericFontName_Default

The generic font name indicating the default font. The default font may also be chosen if no font family is specified.

kCMTextMarkupGenericFontName_Serif

The generic font name indicating a font with serifs (for example, Times New Roman). The font may be proportional or monospaced.

kCMTextMarkupGenericFontName_SansSerif

The generic font name indicating a font without serifs (for example, Helvetica). The font may be proportional or monospaced.

kCMTextMarkupGenericFontName_Monospace

The generic font name indicating a monospaced font (for example, Courier), with or without serifs.

kCMTextMarkupGenericFontName_ProportionalSerif

The generic font name indicating a proportional font with serifs.

kCMTextMarkupGenericFontName_ProportionalSansSerif

The generic font name indicating a proportional font without serifs.

kCMTextMarkupGenericFontName_MonospaceSerif

The generic font name indicating a monospaced font with serifs.

kCMTextMarkupGenericFontName_MonospaceSansSerif

The generic font name indicating a monospaced font without serifs.

kCMTextMarkupGenericFontName_Casual

The generic font name indicating a "casual" font (for example, Dom or Impress).

kCMTextMarkupGenericFontName_Cursive

The generic font name indicating a cursive font (for example, Coronet or Marigold).

kCMTextMarkupGenericFontName_Fantasy

The generic font name indicating a "fantasy" font.

kCMTextMarkupGenericFontName_SmallCapital

The generic font name indicating a font with lowercase letters set as small capitals (for example, Engravers Gothic).