Table of Contents

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 string

The font family name to search in the list of defined fonts.

weight FontWeight
style FontStyle
stretch FontStretch

Returns

FontFamily

It returns an FontFamily defining the font family object matched; otherwise, it returns null.