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

let kCMTextMarkupGenericFontName_Default: CFString

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

let kCMTextMarkupGenericFontName_Serif: CFString

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

let kCMTextMarkupGenericFontName_SansSerif: CFString

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

let kCMTextMarkupGenericFontName_Monospace: CFString

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

let kCMTextMarkupGenericFontName_ProportionalSerif: CFString

The generic font name indicating a proportional font with serifs.

let kCMTextMarkupGenericFontName_ProportionalSansSerif: CFString

The generic font name indicating a proportional font without serifs.

let kCMTextMarkupGenericFontName_MonospaceSerif: CFString

The generic font name indicating a monospaced font with serifs.

let kCMTextMarkupGenericFontName_MonospaceSansSerif: CFString

The generic font name indicating a monospaced font without serifs.

let kCMTextMarkupGenericFontName_Casual: CFString

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

let kCMTextMarkupGenericFontName_Cursive: CFString

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

let kCMTextMarkupGenericFontName_Fantasy: CFString

The generic font name indicating a "fantasy" font.

let kCMTextMarkupGenericFontName_SmallCapital: CFString

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