[]
IDWriteFont
[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32737")]
public class Font : ComObject, IDisposable, IUnknown
Initializes a new instance of the Font class.
public Font(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetMetrics
public FontMetrics Metrics { get; }
HRESULT IDWriteFont::CreateFontFace([Out, Fast] IDWriteFontFace** fontFace)
public FontFace CreateFontFace()
HRESULT IDWriteFont::GetFaceNames([Out] IDWriteLocalizedStrings** names)
public LocalizedStrings GetFaceNames()
HRESULT IDWriteFont::GetFontFamily([Out] IDWriteFontFamily** fontFamily)
public FontFamily GetFontFamily()
HRESULT IDWriteFont::GetInformationalStrings([In] DWRITE_INFORMATIONAL_STRING_ID informationalStringID,[Out] IDWriteLocalizedStrings** informationalStrings,[Out] BOOL* exists)
public bool GetInformationalStrings(InformationalStringId informationalStringID, out LocalizedStrings informationalStrings)
informationalStringID
InformationalStringIdinformationalStrings
LocalizedStringsvoid IDWriteFont::GetMetrics([Out] DWRITE_FONT_METRICS* fontMetrics)
public void GetMetrics(out FontMetrics fontMetrics)
fontMetrics
FontMetricsDWRITE_FONT_SIMULATIONS IDWriteFont::GetSimulations()
public FontSimulations GetSimulations()
DWRITE_FONT_STRETCH IDWriteFont::GetStretch()
public FontStretch GetStretch()
DWRITE_FONT_STYLE IDWriteFont::GetStyle()
public FontStyle GetStyle()
DWRITE_FONT_WEIGHT IDWriteFont::GetWeight()
public FontWeight GetWeight()
HRESULT IDWriteFont::HasCharacter([In] unsigned int unicodeValue,[Out] BOOL* exists)
public bool HasCharacter(int unicodeValue)
unicodeValue
intBOOL IDWriteFont::IsSymbolFont()
public bool IsSymbolFont()
Performs an explicit conversion from System.IntPtr to Font.
public static explicit operator Font(IntPtr nativePointer)
nativePointer
System.IntPtr