Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSFontDescriptorMBS class.

NSFontDescriptorMBS.NSFontBoldTrait = 2

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the typeface constants for symbolic traits.

The font's typestyle is boldface.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontClarendonSerifsClass = &h40000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style is a variation of the Oldstyle Serifs and the Transitional Serifs.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontCondensedTrait = 64

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the typeface constants for symbolic traits.

The font's typestyle is condensed. Expanded and condensed traits are mutually exclusive.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontExpandedTrait = 32

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the typeface constants for symbolic traits.

The font's typestyle is expanded. Expanded and condensed traits are mutually exclusive.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontFamilyClassMask = &hF0000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
The font family class mask used to access NSFontFamilyClass values.

Available in Mac OS X v10.4 and later.
This constant is used to access NSFontFamilyClass values in the upper four bits of NSFontSymbolicTraits.

NSFontDescriptorMBS.NSFontFreeformSerifsClass = &h70000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style includes serifs, but it expresses a design freedom that does not generally fit within the other serif design classifications.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontItalicTrait = 1

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the typeface constants for symbolic traits.

The font's typestyle is italic.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontModernSerifsClass = &h30000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style is based on the Latin printing style of the 20th century.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontMonoSpaceTrait = 1024

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the typeface constants for symbolic traits.
Example
// ask for monospace font trait
Dim traitsAttributes As New Dictionary
traitsAttributes.Value(NSFontDescriptorMBS.NSFontSymbolicTrait) = NSFontDescriptorMBS.NSFontMonoSpaceTrait

// ask for traits
Dim fontAttributes As New Dictionary
fontAttributes.Value(NSFontDescriptorMBS.NSFontTraitsAttribute) = traitsAttributes

// now make a font descriptor for this
Dim fd As NSFontDescriptorMBS = NSFontDescriptorMBS.fontDescriptorWithFontAttributes(fontAttributes)

// and ask font manager for matching fonts
Dim fontManager As New NSFontManagerMBS
Dim fonts() As String = fontManager.availableFontNamesMatchingFontDescriptor(fd)

// finds e.g. AndaleMono, CourierNewPSMT, CourierNewPS-ItalicMT, CourierNewPS-BoldMT, CourierNewPS-BoldItalicMT,
// FZLTXHB--B51-0, FZLTZHB--B51-0, FZLTTHB--B51-0, Menlo-Regular, Menlo-Italic, Menlo-Bold, Menlo-BoldItalic,
// Monaco, Osaka-Mono, JCsmPC, PTMono-Regular, PTMono-Bold

The font uses fixed-pitch glyphs if available. The font may have multiple glyph advances (many CJK glyphs contain two spaces).
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontOldStyleSerifsClass = &h10000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style is based on the Latin printing style of the 15th to 17th century.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontOrnamentalsClass = &h90000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style includes highly decorated or stylized character shapes such as those typically used in headlines.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontSansSerifClass = &h80000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontScriptsClass = &hA0000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style is among those typefaces designed to simulate handwriting.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontSlabSerifsClass = &h50000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style is characterized by serifs with a square transition between the strokes and the serifs (no brackets).
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontSymbolicClass = &hC0000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style is generally design independent, making it suitable for special characters (icons, dingbats, technical symbols, and so on) that may be used equally well with any font.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontTransitionalSerifsClass = &h20000000

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font's style is based on the Latin printing style of the 18th to 19th century.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontUIOptimizedTrait = 4096

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the typeface constants for symbolic traits.

The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontUnknownClass = 0

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the font family class constants.

The font has no design classification.
Available in Mac OS X v10.4 and later.

NSFontDescriptorMBS.NSFontVerticalTrait = 2048

Type Topic Plugin Version
const Cocoa MBS MacBase Plugin 12.1
One of the typeface constants for symbolic traits.

The font uses vertical glyph variants and metrics.
Available in Mac OS X v10.4 and later.

The items on this page are in the following plugins: MBS MacBase Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...