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
fontName
stringThe font family name to search in the list of defined fonts.
weight
FontWeightstyle
FontStylestretch
FontStretch
Returns
- FontFamily
It returns an FontFamily defining the font family object matched; otherwise, it returns null.