Table of Contents

Class NSFont

Namespace
CarinaStudio.MacOS.AppKit
Assembly
CarinaStudio.AppBase.MacOS.dll

NSFont.

public class NSFont : NSObject, IDisposable, IEquatable<NSObject>
Inheritance
NSFont
Implements
Inherited Members
Extension Methods

Properties

DisplayName

The name of the font, including family and face names, to use when displaying the font information to the user.

public NSString? DisplayName { get; }

Property Value

NSString

FamilyName

The family name of the font—for example, “Times” or “Helvetica.”

public NSString? FamilyName { get; }

Property Value

NSString

FontDescriptor

The font descriptor object for the font.

public NSFontDescriptor FontDescriptor { get; }

Property Value

NSFontDescriptor

FontName

The full name of the font, as used in PostScript language code—for example, “Times-Roman” or “Helvetica-Oblique.”

public NSString FontName { get; }

Property Value

NSString

LabelFontSize

Get size of the standard Label Font.

public static float LabelFontSize { get; }

Property Value

float

PointSize

The point size of the font.

public float PointSize { get; }

Property Value

float

SmallSystemFontSize

Get size of standard small System font.

public static float SmallSystemFontSize { get; }

Property Value

float

SystemFontSize

Get size of the standard System font.

public static float SystemFontSize { get; }

Property Value

float

Methods

GetPreferredFont(TextStyle, NSDictionary?)

Returns the font associated with the text style.

public static NSFont GetPreferredFont(NSFont.TextStyle style, NSDictionary? options = null)

Parameters

style NSFont.TextStyle
options NSDictionary

Returns

NSFont