[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.FontFamily

Class FontFamily

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteFontFamily

[Guid("da20d8ef-812a-4c43-9802-62ec4abd7add")]
public class FontFamily : FontList, IDisposable, IUnknown
Inheritance
object
FontFamily
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

FontFamily(IntPtr)

Initializes a new instance of the FontFamily class.

public FontFamily(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

GetFamilyNames()

HRESULT IDWriteFontFamily::GetFamilyNames([Out] IDWriteLocalizedStrings** names)

public LocalizedStrings GetFamilyNames()

Returns

LocalizedStrings

GetFirstMatchingFont(FontWeight, FontStretch, FontStyle)

HRESULT IDWriteFontFamily::GetFirstMatchingFont([In] DWRITE_FONT_WEIGHT weight,[In] DWRITE_FONT_STRETCH stretch,[In] DWRITE_FONT_STYLE style,[Out] IDWriteFont** matchingFont)

public Font GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style)

Parameters

weight FontWeight
stretch FontStretch
style FontStyle

Returns

Font

GetMatchingFonts(FontWeight, FontStretch, FontStyle)

HRESULT IDWriteFontFamily::GetMatchingFonts([In] DWRITE_FONT_WEIGHT weight,[In] DWRITE_FONT_STRETCH stretch,[In] DWRITE_FONT_STYLE style,[Out] IDWriteFontList** matchingFonts)

public FontList GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style)

Parameters

weight FontWeight
stretch FontStretch
style FontStyle

Returns

FontList

Operators

explicit operator FontFamily(IntPtr)

Performs an explicit conversion from System.IntPtr to FontFamily.

public static explicit operator FontFamily(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

FontFamily