[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.FontFace

FontFace Class

IDWriteFontFace

Implements
Namespace: GrapeCity.Documents.DX.DirectWrite
Assembly: GcDocs.DX.Windows.dll
Syntax
[Guid("5f49804d-7024-4d43-bfa9-d25984f53849")]
public class FontFace : ComObject, IDisposable, IUnknown

Constructors

Name Description
FontFace(IntPtr)

Initializes a new instance of the FontFace class.

Properties

Name Description
Metrics

GetMetrics

Methods

Name Description
Create(Factory, FontFaceType, FontFile[], int, FontSimulations)

Creates an object that represents a font face.

Create(Font)

Creates a font face object for the font.

GetDesignGlyphMetrics(short[], bool)

Obtains ideal (resolution-independent) glyph metrics in font design units.

GetDesignGlyphMetrics(short[], int, GlyphMetrics[], Bool)

HRESULT IDWriteFontFace::GetDesignGlyphMetrics([In, Buffer] const unsigned short* glyphIndices,[In] unsigned int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[In] BOOL isSideways)

GetFaceType()

DWRITE_FONT_FACE_TYPE IDWriteFontFace::GetType()

GetFiles()

Obtains the font files representing a font face.

GetFiles(ref int, FontFile[])

HRESULT IDWriteFontFace::GetFiles([InOut] unsigned int* numberOfFiles,[Out, Buffer, Optional] IDWriteFontFile** fontFiles)

GetGdiCompatibleGlyphMetrics(float, float, Matrix3x2?, Bool, short[], int, GlyphMetrics[], Bool)

HRESULT IDWriteFontFace::GetGdiCompatibleGlyphMetrics([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In, Buffer] const unsigned short* glyphIndices,[In] unsigned int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[In] BOOL isSideways)

GetGdiCompatibleGlyphMetrics(float, float, Matrix3x2?, bool, short[], bool)

Obtains glyph metrics in font design units with the return values compatible with what GDI would produce.

GetGdiCompatibleMetrics(float, float, Matrix3x2?)

HRESULT IDWriteFontFace::GetGdiCompatibleMetrics([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[Out] DWRITE_FONT_METRICS* fontFaceMetrics)

GetGlyphCount()

unsigned short IDWriteFontFace::GetGlyphCount()

GetGlyphIndices(int[])

Returns the nominal mapping of UCS4 Unicode code points to glyph indices as defined by the font 'CMAP' table.

GetGlyphIndices(int[], int, short[])

HRESULT IDWriteFontFace::GetGlyphIndices([In, Buffer] const unsigned int* codePoints,[In] unsigned int codePointCount,[Out, Buffer] unsigned short* glyphIndices)

GetGlyphRunOutline(float, short[], float[], GlyphOffset[], bool, bool, ISimplifiedGeometrySink)

Computes the outline of a run of glyphs by calling back to the outline sink interface.

GetGlyphRunOutline(float, IntPtr, IntPtr, IntPtr, int, bool, bool, IGeometrySink)

Computes the outline of a run of glyphs by calling back to the outline sink interface.

GetIndex()

unsigned int IDWriteFontFace::GetIndex()

GetMetrics(out FontMetrics)

void IDWriteFontFace::GetMetrics([Out] DWRITE_FONT_METRICS* fontFaceMetrics)

GetRecommendedRenderingMode(float, float, MeasuringMode, RenderingParams)

HRESULT IDWriteFontFace::GetRecommendedRenderingMode([In] float emSize,[In] float pixelsPerDip,[In] DWRITE_MEASURING_MODE measuringMode,[In] IDWriteRenderingParams* renderingParams,[Out] DWRITE_RENDERING_MODE* renderingMode)

GetSimulations()

DWRITE_FONT_SIMULATIONS IDWriteFontFace::GetSimulations()

IsSymbolFont()

BOOL IDWriteFontFace::IsSymbolFont()

ReleaseFontTable(IntPtr)

void IDWriteFontFace::ReleaseFontTable([In] void* tableContext)

TryGetFontTable(int, out DataPointer, out IntPtr)

Finds the specified OpenType font table if it exists and returns a reference to it. The function accesses the underlying font data through the C1.Win.DX.DirectWrite.FontFileStream interface implemented by the font file loader.

TryGetFontTable(int, IntPtr, out int, out IntPtr)

HRESULT IDWriteFontFace::TryGetFontTable([In] unsigned int openTypeTableTag,[Out, Buffer] const void** tableData,[Out] unsigned int* tableSize,[Out] void** tableContext,[Out] BOOL* exists)

Operators

Name Description
explicit operator FontFace(IntPtr)

Performs an explicit conversion from IntPtr to FontFace.