// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ namespace Win32.Graphics.DirectWrite; /// /// IDWriteFontFace4 [Guid("27f2a904-4eb8-441d-9678-0563f53e3e2f")] [NativeTypeName("struct IDWriteFontFace4 : IDWriteFontFace3")] [NativeInheritance("IDWriteFontFace3")] public unsafe partial struct IDWriteFontFace4 : INativeGuid { public static ref readonly Guid IID_IDWriteFontFace4 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { 0x04, 0xA9, 0xF2, 0x27, 0xB8, 0x4E, 0x1D, 0x44, 0x96, 0x78, 0x05, 0x63, 0xF5, 0x3E, 0x3E, 0x2F }; Debug.Assert(data.Length == Unsafe.SizeOf()); return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); } } #if NET6_0_OR_GREATER static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace4)); #else public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace4)); #endif public void** lpVtbl; /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(0)] public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) { return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] [return: NativeTypeName("ULONG")] public uint AddRef() { return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] [return: NativeTypeName("ULONG")] public uint Release() { return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public new FontFaceType GetType() { return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) { return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public uint GetIndex() { return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] public FontSimulations GetSimulations() { return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] public Bool32 IsSymbolFont() { return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] public void GetMetrics(FontMetrics* fontFaceMetrics) { ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceMetrics); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] public ushort GetGlyphCount() { return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) { return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(11)] public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) { return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(12)] public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) { return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] public void ReleaseFontTable(void* tableContext) { ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), tableContext); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) { return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(15)] public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) { return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(16)] public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics) { return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(17)] public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) { return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] public void GetMetrics(FontMetrics1* fontMetrics) { ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontMetrics); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics) { return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(20)] public void GetCaretMetrics(CaretMetrics* caretMetrics) { ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), caretMetrics); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) { return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(22)] public Bool32 IsMonospacedFont() { return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(23)] public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) { return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(24)] public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) { return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(25)] public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) { return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(26)] public Bool32 HasKerningPairs() { return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) { return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(28)] public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) { return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(29)] public Bool32 HasVerticalGlyphVariants() { return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(30)] public Bool32 IsColorFont() { return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(31)] public uint GetColorPaletteCount() { return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(32)] public uint GetPaletteEntryCount() { return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(33)] public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries) { return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(34)] public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) { return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(35)] public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) { return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceReference); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(36)] public void GetPanose(Panose* panose) { ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), panose); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(37)] public FontWeight GetWeight() { return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(38)] public FontStretch GetStretch() { return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(39)] public FontStyle GetStyle() { return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(40)] public HResult GetFamilyNames(IDWriteLocalizedStrings** names) { return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(41)] public HResult GetFaceNames(IDWriteLocalizedStrings** names) { return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(42)] public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) { return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(43)] public Bool32 HasCharacter(uint unicodeValue) { return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(44)] public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) { return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(45)] public Bool32 IsCharacterLocal(uint unicodeValue) { return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(46)] public Bool32 IsGlyphLocal(ushort glyphId) { return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(47)] public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) { return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(48)] public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) { return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(49)] public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats) { return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(50)] public GlyphImageFormats GetGlyphImageFormats() { return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(51)] public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext) { return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(52)] public void ReleaseGlyphImageData(void* glyphDataContext) { ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphDataContext); } }