API Reference
FontSpec
Identifies a font without depending on a platform drawing framework.
Inheritance
- Object
- FontSpec
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method FontSpec.Clone
- Method FontSpec.FromFamily
- Method FontSpec.FromFile
- Method FontSpec.SystemSans
- Property TextStyle.Font
Constructors
public FontSpec() #Methods
public static FontSpec FromFamily(String family) #FontSpecCreates a font specification for a family or fallback stack.
Parameters
- family System.String
public static FontSpec FromFile(String path, Int32? collectionIndex = null, String? faceName = null) #FontSpecCreates a font specification backed by a TrueType font file.
Parameters
- path System.String
- collectionIndex System.Int32? = null
- faceName System.String? = null
public static FontSpec SystemSans() #FontSpecCreates a system sans-serif font specification.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public String Family { get; set; } #Gets or sets the CSS-compatible family or fallback stack.
public String? FilePath { get; set; } #Gets or sets an optional TrueType or TrueType collection path used by raster output.
public Int32? CollectionIndex { get; set; } #Gets or sets an optional TrueType collection face index.
public String? FaceName { get; set; } #Gets or sets an optional face name used when selecting a collection member.
public Int32 Weight { get; set; } #Gets or sets the numeric font weight from 100 through 900.
public Boolean Italic { get; set; } #Gets or sets a value indicating whether an italic face is preferred.