SharpLeaf Reference > FontType Structure > Name Property FontType.Name Property
Font face name.
public string Name {get; set;}
Example
font.Name = "Verdana";
Adding fallback fonts
A list of fallback fonts can be specified with comma-separated names. This is particularly useful for web formats, when the fonts available to the display system are unknown.
font.Name = "Verdana,Arial,Sans"; // Try Verdana, then Arial, then fallback to any font of the "sans" family.
Adding CSS effects
CSS effects can be attached to the font, after a semicolon ‘;’.
font.Name = "Verdana,Arial,Sans;opacity:0.8"; // use opacity on drivers that support it
See also ...FontType.Members
Send comments on this topic © Dyalog Ltd 2021
|