[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.Font

Class Font

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

IDWriteFont

[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32737")]
public class Font : ComObject, IDisposable, IUnknown
Inheritance
object
Font
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

Font(IntPtr)

Initializes a new instance of the Font class.

public Font(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Metrics

GetMetrics

public FontMetrics Metrics { get; }

Property Value

FontMetrics

Methods

CreateFontFace()

HRESULT IDWriteFont::CreateFontFace([Out, Fast] IDWriteFontFace** fontFace)

public FontFace CreateFontFace()

Returns

FontFace

GetFaceNames()

HRESULT IDWriteFont::GetFaceNames([Out] IDWriteLocalizedStrings** names)

public LocalizedStrings GetFaceNames()

Returns

LocalizedStrings

GetFontFamily()

HRESULT IDWriteFont::GetFontFamily([Out] IDWriteFontFamily** fontFamily)

public FontFamily GetFontFamily()

Returns

FontFamily

GetInformationalStrings(InformationalStringId, out LocalizedStrings)

HRESULT IDWriteFont::GetInformationalStrings([In] DWRITE_INFORMATIONAL_STRING_ID informationalStringID,[Out] IDWriteLocalizedStrings** informationalStrings,[Out] BOOL* exists)

public bool GetInformationalStrings(InformationalStringId informationalStringID, out LocalizedStrings informationalStrings)

Parameters

informationalStringID InformationalStringId
informationalStrings LocalizedStrings

Returns

bool

GetMetrics(out FontMetrics)

void IDWriteFont::GetMetrics([Out] DWRITE_FONT_METRICS* fontMetrics)

public void GetMetrics(out FontMetrics fontMetrics)

Parameters

fontMetrics FontMetrics

GetSimulations()

DWRITE_FONT_SIMULATIONS IDWriteFont::GetSimulations()

public FontSimulations GetSimulations()

Returns

FontSimulations

GetStretch()

DWRITE_FONT_STRETCH IDWriteFont::GetStretch()

public FontStretch GetStretch()

Returns

FontStretch

GetStyle()

DWRITE_FONT_STYLE IDWriteFont::GetStyle()

public FontStyle GetStyle()

Returns

FontStyle

GetWeight()

DWRITE_FONT_WEIGHT IDWriteFont::GetWeight()

public FontWeight GetWeight()

Returns

FontWeight

HasCharacter(int)

HRESULT IDWriteFont::HasCharacter([In] unsigned int unicodeValue,[Out] BOOL* exists)

public bool HasCharacter(int unicodeValue)

Parameters

unicodeValue int

Returns

bool

IsSymbolFont()

BOOL IDWriteFont::IsSymbolFont()

public bool IsSymbolFont()

Returns

bool

Operators

explicit operator Font(IntPtr)

Performs an explicit conversion from System.IntPtr to Font.

public static explicit operator Font(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Font