Click or drag to resize
CanvasFontSet Class
Represents a grouping of fonts.
Inheritance Hierarchy
SystemObject
  Microsoft.Graphics.Canvas.TextCanvasFontSet

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public sealed class CanvasFontSet : IDisposable

The CanvasFontSet type exposes the following members.

Constructors
  NameDescription
Public methodCanvasFontSet
Initializes a new instance of the CanvasFontSet class from an application URI.
Top
Properties
  NameDescription
Public propertyFonts
Gets a collection representing the individual fonts in the set.
Top
Methods
  NameDescription
Public methodCountFontsMatchingProperty
Returns a count of how many times a given property value occurs in the set.
Public methodDispose
Releases all resources used by the CanvasFontSet.
Public methodGetMatchingFonts(CanvasFontProperty)
Gets a subset of fonts matching the specified criteria.
Public methodGetMatchingFonts(String, FontWeight, FontStretch, FontStyle)
Gets a subset of fonts within the given WWS family prioritized by WWS distance.
Public methodGetPropertyValues(CanvasFontPropertyIdentifier)
Returns all unique property values in the set, which can be used for purposes such as displaying a family list or tag cloud.
Public methodGetPropertyValues(UInt32, CanvasFontPropertyIdentifier)
Returns the property values of a specific font item index.
Public methodGetPropertyValues(CanvasFontPropertyIdentifier, String)
Returns all unique property values in the set, which can be used for purposes such as displaying a family list or tag cloud.
Public methodStatic memberGetSystemFontSet
Gets a grouping of all the fonts available locally on the system.
Public methodTryFindFontFace
Gets the index of the matching font face in the font set, with the same file, face index, and simulations.
Top
Remarks

When using Direct2D interop, this Win2D class corresponds to the DirectWrite interface IDWriteFontSet.

See Also