Method LookupFontFamily
- Namespace
- SharpVectors.Renderers.Wpf
- Assembly
- SharpVectors.Rendering.Wpf.dll
LookupFontFamily(string, FontWeight, FontStyle, FontStretch)
This looks for or matches the specified font family name and attributes.
public FontFamily LookupFontFamily(string fontName, FontWeight weight, FontStyle style, FontStretch stretch)
Parameters
fontNamestringThe font family name to search in the list of defined fonts.
weightFontWeightstyleFontStylestretchFontStretch
Returns
- FontFamily
It returns an FontFamily defining the font family object matched; otherwise, it returns null.