Table of Contents

Class FontList1

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll
[Guid("DA20D8EF-812A-4C43-9802-62EC4ABD7ADE")]
public class FontList1 : FontList
Inheritance
FontList1
Inherited Members

Constructors

FontList1(nint)

public FontList1(nint nativePtr)

Parameters

nativePtr nint

Methods

GetFont(int, out Font3)

Gets a font given its zero-based index.

public void GetFont(int listIndex, out Font3 font)

Parameters

listIndex int

Zero-based index of the font in the font list.

font Font3

A reference to a memory block that receives a reference to a Font3 interface for the newly created font object.

GetFontFaceReference(int, out FontFaceReference)

Gets a font face reference given its zero-based index.

public void GetFontFaceReference(int listIndex, out FontFaceReference fontFaceReference)

Parameters

listIndex int

Zero-based index of the font in the font list.

fontFaceReference FontFaceReference

A reference to a memory block that receives a reference to a FontFaceReference interface for the newly created font face reference object.

GetFontLocality(int)

Gets the current location of a font given its zero-based index.

public Locality GetFontLocality(int listIndex)

Parameters

listIndex int

Zero-based index of the font in the font list.

Returns

Locality

Returns a Locality-typed value that specifies the location of the specified font.

Remarks

For fully local files, the result will always be DWRITE_LOCALITY_LOCAL. For streamed files, the result depends on how much of the file has been downloaded. GetFont fails if the locality is DWRITE_LOCALITY_REMOTE and potentially fails if DWRITE_LOCALITY_PARTIAL.

Operators

explicit operator FontList1(nint)

public static explicit operator FontList1(nint nativePtr)

Parameters

nativePtr nint

Returns

FontList1