TUIFont.CreateSimilarFont Method
Creates a font which is the most similar to the one you specify. Some fonts don't have specific styles like italics or bold, if this is the case, this method will return the same font with a different style.
Syntax
Namespace: FlexCel.Core
public static TUIFont CreateSimilarFont(String FontName, Double FontSize, TUIFontStyle FontStyle)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
FontName | String | Name of the font we wish to create. | |
FontSize | Double | Size in points of the font. | |
FontStyle | TUIFontStyle | Style of the font. |
Returns
The font if it was possible to create it, or a similar one if it wasn't.