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
FamilyName
The family name of the font—for example, “Times” or “Helvetica.”
public NSString? FamilyName { get; }
Property Value
FontDescriptor
The font descriptor object for the font.
public NSFontDescriptor FontDescriptor { get; }
Property Value
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
LabelFontSize
Get size of the standard Label Font.
public static float LabelFontSize { get; }
Property Value
PointSize
The point size of the font.
public float PointSize { get; }
Property Value
SmallSystemFontSize
Get size of standard small System font.
public static float SmallSystemFontSize { get; }
Property Value
SystemFontSize
Get size of the standard System font.
public static float SystemFontSize { get; }
Property Value
Methods
GetPreferredFont(TextStyle, NSDictionary?)
Returns the font associated with the text style.
public static NSFont GetPreferredFont(NSFont.TextStyle style, NSDictionary? options = null)
Parameters
styleNSFont.TextStyleoptionsNSDictionary