[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.FontFace1

Class FontFace1

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

IDWriteFontFace1

[Guid("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf")]
public class FontFace1 : FontFace, IDisposable, IUnknown
Inheritance
object
FontFace1
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

FontFace1(IntPtr)

Initializes a new instance of the FontFace1 class.

public FontFace1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

CaretMetrics

GetCaretMetrics

public CaretMetrics CaretMetrics { get; }

Property Value

CaretMetrics

Metrics

GetMetrics

public FontMetrics1 Metrics { get; }

Property Value

FontMetrics1

Methods

GetCaretMetrics(out CaretMetrics)

void IDWriteFontFace1::GetCaretMetrics([Out] DWRITE_CARET_METRICS* caretMetrics)

public void GetCaretMetrics(out CaretMetrics caretMetrics)

Parameters

caretMetrics CaretMetrics

GetDesignGlyphAdvances(int, short[], int[], Bool)

HRESULT IDWriteFontFace1::GetDesignGlyphAdvances([In] unsigned int glyphCount,[In, Buffer] const unsigned short* glyphIndices,[Out, Buffer] int* glyphAdvances,[In] BOOL isSideways)

public void GetDesignGlyphAdvances(int glyphCount, short[] glyphIndices, int[] glyphAdvances, Bool isSideways)

Parameters

glyphCount int
glyphIndices short[]
glyphAdvances int[]
isSideways Bool

GetGdiCompatibleGlyphAdvances(float, float, Matrix3x2?, Bool, Bool, int, short[], int[])

HRESULT IDWriteFontFace1::GetGdiCompatibleGlyphAdvances([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In] BOOL isSideways,[In] unsigned int glyphCount,[In, Buffer] const unsigned short* glyphIndices,[Out, Buffer] int* glyphAdvances)

public void GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2? transform, Bool useGdiNatural, Bool isSideways, int glyphCount, short[] glyphIndices, int[] glyphAdvances)

Parameters

emSize float
pixelsPerDip float
transform Matrix3x2?
useGdiNatural Bool
isSideways Bool
glyphCount int
glyphIndices short[]
glyphAdvances int[]

GetGdiCompatibleMetrics(float, float, Matrix3x2?, out FontMetrics1)

HRESULT IDWriteFontFace1::GetGdiCompatibleMetrics([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[Out] DWRITE_FONT_METRICS1* fontMetrics)

public void GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2? transform, out FontMetrics1 fontMetrics)

Parameters

emSize float
pixelsPerDip float
transform Matrix3x2?
fontMetrics FontMetrics1

GetKerningPairAdjustments(int, short[], int[])

HRESULT IDWriteFontFace1::GetKerningPairAdjustments([In] unsigned int glyphCount,[In, Buffer] const unsigned short* glyphIndices,[Out, Buffer] int* glyphAdvanceAdjustments)

public void GetKerningPairAdjustments(int glyphCount, short[] glyphIndices, int[] glyphAdvanceAdjustments)

Parameters

glyphCount int
glyphIndices short[]
glyphAdvanceAdjustments int[]

GetMetrics(out FontMetrics1)

void IDWriteFontFace1::GetMetrics([Out] DWRITE_FONT_METRICS1* fontMetrics)

public void GetMetrics(out FontMetrics1 fontMetrics)

Parameters

fontMetrics FontMetrics1

GetRecommendedRenderingMode(float, float, float, Matrix3x2?, Bool, OutlineThreshold, MeasuringMode)

HRESULT IDWriteFontFace1::GetRecommendedRenderingMode([In] float fontEmSize,[In] float dpiX,[In] float dpiY,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL isSideways,[In] DWRITE_OUTLINE_THRESHOLD outlineThreshold,[In] DWRITE_MEASURING_MODE measuringMode,[Out] DWRITE_RENDERING_MODE* renderingMode)

public RenderingMode GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2? transform, Bool isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode)

Parameters

fontEmSize float
dpiX float
dpiY float
transform Matrix3x2?
isSideways Bool
outlineThreshold OutlineThreshold
measuringMode MeasuringMode

Returns

RenderingMode

GetUnicodeRanges(int, UnicodeRange[])

HRESULT IDWriteFontFace1::GetUnicodeRanges([In] unsigned int maxRangeCount,[Out, Buffer, Optional] DWRITE_UNICODE_RANGE* unicodeRanges,[Out] unsigned int* actualRangeCount)

public int GetUnicodeRanges(int maxRangeCount, UnicodeRange[] unicodeRanges)

Parameters

maxRangeCount int
unicodeRanges UnicodeRange[]

Returns

int

HasKerningPairs()

BOOL IDWriteFontFace1::HasKerningPairs()

public bool HasKerningPairs()

Returns

bool

IsMonospacedFont()

BOOL IDWriteFontFace1::IsMonospacedFont()

public bool IsMonospacedFont()

Returns

bool

Operators

explicit operator FontFace1(IntPtr)

Performs an explicit conversion from System.IntPtr to FontFace1.

public static explicit operator FontFace1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

FontFace1