Table of Contents

Class FontFamily

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Defines a group of type faces having a similar basic design and certain variations in styles.

public class FontFamily : BaseObject, IBaseObject
Inheritance
FontFamily
Implements

Constructors

FontFamily(GenericFontFamily)

Initializes a new FontFamily from the specified generic font family.

FontFamily(string?)

Initializes a new FontFamily with the specified name.

FontFamily(string?, bool)

Initializes a new FontFamily with the specified name.

Properties

Families

Returns an array that contains all the FontFamily objects currently available in the system.

FamiliesNames

Returns a string array that contains all names of the FontFamily objects currently available in the system.

FamiliesNamesAscending

Returns a string array that contains all names of the FontFamily objects currently available in the system. Names are returned in the ascending order.

GenericDefault

Gets a generic default FontFamily.

GenericFamily

Gets generic font family type.

GenericMonospace

Gets a generic monospace FontFamily.

GenericSansSerif

Gets a generic sans serif FontFamily.

GenericSerif

Gets a generic serif FontFamily.

IsFixedPitch

Gets whether this font family has fixed pitch fonts.

IsOk

Gets whether this font family is valid.

Name

Gets the name of this FontFamily.

SkiaTypeface

Gets SKTypeface for this object.

Methods

GetFamily(GenericFontFamily?)

Gets FontFamily for the specified GenericFontFamily enumeration.

GetName(GenericFontFamily?)

Gets name of the font family specified with GenericFontFamily enum.

IsFamilyValid(string)

Gets whether font family is installed on this computer.

IsFixedPitchFontFamily(string)

Gets whether specified font family has only fixed pitch fonts.

RemoveNonSkiaFonts(IEnumerable<string>)

Filters fonts and returns only compatible with SKiaSharp.

Reset()

Resets all loaded font families.

SetFontFamilyName(GenericFontFamily, string?)

Sets name of the font family specified with GenericFontFamily enum.