10 #ifndef DWRITE_2_H_INCLUDED 11 #define DWRITE_2_H_INCLUDED 18 interface IDWriteFontFallback;
83 interface DWRITE_DECLARE_INTERFACE("D3E0E934-22A0-427E-AAE4-7D9574B59DB1") IDWriteTextRenderer1 :
public IDWriteTextRenderer
117 STDMETHOD(DrawGlyphRun)(
118 _In_opt_
void* clientDrawingContext,
119 FLOAT baselineOriginX,
120 FLOAT baselineOriginY,
125 _In_opt_ IUnknown* clientDrawingEffect
157 STDMETHOD(DrawUnderline)(
158 _In_opt_
void* clientDrawingContext,
159 FLOAT baselineOriginX,
160 FLOAT baselineOriginY,
163 _In_opt_ IUnknown* clientDrawingEffect
190 STDMETHOD(DrawStrikethrough)(
191 _In_opt_
void* clientDrawingContext,
192 FLOAT baselineOriginX,
193 FLOAT baselineOriginY,
196 _In_opt_ IUnknown* clientDrawingEffect
229 STDMETHOD(DrawInlineObject)(
230 _In_opt_
void* clientDrawingContext,
234 _In_ IDWriteInlineObject* inlineObject,
237 _In_opt_ IUnknown* clientDrawingEffect
240 using IDWriteTextRenderer::DrawGlyphRun;
241 using IDWriteTextRenderer::DrawUnderline;
242 using IDWriteTextRenderer::DrawStrikethrough;
243 using IDWriteTextRenderer::DrawInlineObject;
262 STDMETHOD(SetVerticalGlyphOrientation)(
279 STDMETHOD(SetLastLineWrapping)(
280 BOOL isLastLineWrappingEnabled
286 STDMETHOD_(
BOOL, GetLastLineWrapping)() PURE;
297 STDMETHOD(SetOpticalAlignment)(
316 STDMETHOD(SetFontFallback)(
317 IDWriteFontFallback* fontFallback
323 STDMETHOD(GetFontFallback)(
324 __out IDWriteFontFallback** fontFallback
350 STDMETHOD(GetMetrics)(
354 using IDWriteTextLayout::GetMetrics;
363 STDMETHOD(SetVerticalGlyphOrientation)(
380 STDMETHOD(SetLastLineWrapping)(
381 BOOL isLastLineWrappingEnabled
387 STDMETHOD_(
BOOL, GetLastLineWrapping)() PURE;
398 STDMETHOD(SetOpticalAlignment)(
417 STDMETHOD(SetFontFallback)(
418 IDWriteFontFallback* fontFallback
424 STDMETHOD(GetFontFallback)(
425 __out IDWriteFontFallback** fontFallback
435 interface DWRITE_DECLARE_INTERFACE("553A9FF3-5693-4DF7-B52B-74806F7F2EB9") IDWriteTextAnalyzer2 :
public IDWriteTextAnalyzer1
455 STDMETHOD(GetGlyphOrientationTransform)(
478 STDMETHOD(GetTypographicFeatures)(
481 _In_opt_z_ WCHAR
const* localeName,
483 _Out_
UINT32* actualTagCount,
507 STDMETHOD(CheckTypographicFeature)(
510 _In_opt_z_ WCHAR
const* localeName,
513 _In_reads_(glyphCount)
UINT16 const* glyphIndices,
514 _Out_writes_(glyphCount)
UINT8* featureApplies
517 using IDWriteTextAnalyzer1::GetGlyphOrientationTransform;
552 STDMETHOD(MapCharacters)(
553 IDWriteTextAnalysisSource* analysisSource,
556 _In_opt_ IDWriteFontCollection* baseFontCollection,
557 _In_opt_z_
wchar_t const* baseFamilyName,
561 _Out_range_(0, textLength)
UINT32* mappedLength,
562 _COM_Outptr_result_maybenull_ IDWriteFont** mappedFont,
575 interface DWRITE_DECLARE_INTERFACE("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE") IDWriteFontFallbackBuilder :
public IUnknown
591 STDMETHOD(AddMapping)(
594 _In_reads_(targetFamilyNamesCount) WCHAR
const** targetFamilyNames,
595 UINT32 targetFamilyNamesCount,
596 _In_opt_ IDWriteFontCollection* fontCollection =
NULL,
597 _In_opt_z_ WCHAR
const* localeName =
NULL,
598 _In_opt_z_ WCHAR
const* baseFamilyName =
NULL,
609 STDMETHOD(AddMappings)(
610 IDWriteFontFallback* fontFallback
620 STDMETHOD(CreateFontFallback)(
621 _COM_Outptr_ IDWriteFontFallback** fontFallback
628 #ifndef D3DCOLORVALUE_DEFINED 649 #define D3DCOLORVALUE_DEFINED 650 #endif // D3DCOLORVALUE_DEFINED 665 STDMETHOD_(
BOOL, IsColorFont)() PURE;
681 STDMETHOD_(
BOOL, IsColorFont)() PURE;
688 STDMETHOD_(
UINT32, GetColorPaletteCount)() PURE;
695 STDMETHOD_(
UINT32, GetPaletteEntryCount)() PURE;
714 STDMETHOD(GetPaletteEntries)(
746 STDMETHOD(GetRecommendedRenderingMode)(
759 using IDWriteFontFace1::GetRecommendedRenderingMode;
833 STDMETHOD(GetCurrentRun)(
841 interface DWRITE_DECLARE_INTERFACE("F9D711C3-9777-40AE-87E8-3E5AF9BF0948") IDWriteRenderingParams2 :
public IDWriteRenderingParams1
861 STDMETHOD(GetSystemFontFallback)(
862 _COM_Outptr_ IDWriteFontFallback** fontFallback
872 STDMETHOD(CreateFontFallbackBuilder)(
873 _COM_Outptr_ IDWriteFontFallbackBuilder** fontFallbackBuilder
904 STDMETHOD(TranslateColorGlyphRun)(
905 FLOAT baselineOriginX,
906 FLOAT baselineOriginY,
912 _COM_Outptr_ IDWriteColorGlyphRunEnumerator** colorLayers
928 STDMETHOD(CreateCustomRenderingParams)(
930 FLOAT enhancedContrast,
931 FLOAT grayscaleEnhancedContrast,
932 FLOAT clearTypeLevel,
936 _COM_Outptr_ IDWriteRenderingParams2** renderingParams
939 using IDWriteFactory::CreateCustomRenderingParams;
940 using IDWriteFactory1::CreateCustomRenderingParams;
959 STDMETHOD(CreateGlyphRunAnalysis)(
966 FLOAT baselineOriginX,
967 FLOAT baselineOriginY,
968 _COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis
971 using IDWriteFactory::CreateGlyphRunAnalysis;
interface DWRITE_DECLARE_INTERFACE("D3E0E934-22A0-427E-AAE4-7D9574B59DB1") IDWriteTextRenderer1 interface DWRITE_DECLARE_INTERFACE("5F174B49-0D8B-4CFB-8BCA-F1CCE9D06C67") IDWriteTextFormat1 interface DWRITE_DECLARE_INTERFACE("1093C18F-8D5E-43F0-B064-0917311B525E") IDWriteTextLayout2 interface DWRITE_DECLARE_INTERFACE("553A9FF3-5693-4DF7-B52B-74806F7F2EB9") IDWriteTextAnalyzer2 interface DWRITE_DECLARE_INTERFACE("EFA008F9-F7A1-48BF-B05C-F224713CC0FF") IDWriteFontFallback interface DWRITE_DECLARE_INTERFACE("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE") IDWriteFontFallbackBuilder struct _D3DCOLORVALUE D3DCOLORVALUE
The text renderer interface represents a set of application-defined callbacks that perform rendering ...
Choose grid fitting base on the font's gasp table information.
Definition: dwrite_2.h:49
DWRITE_OPTICAL_ALIGNMENT
How to align glyphs to the margin.
Definition: dwrite_2.h:24
FLOAT b
Definition: dwrite_2.h:640
The DWRITE_UNDERLINE structure contains information about the size and placement of underlines....
Definition: dwrite.h:3111
D3DCOLORVALUE DWRITE_COLOR_F
Definition: dwrite_2.h:652
Always disable grid fitting, using the ideal glyph outlines.
Definition: dwrite_2.h:54
Definition: glslang_tab.cpp:129
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9939
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
DWRITE_VERTICAL_GLYPH_ORIENTATION
The desired kind of glyph orientation for the text. The client specifies this to the analyzer as the ...
Definition: dwrite_1.h:579
FLOAT dvG
Definition: dwrite_2.h:637
FLOAT baselineOriginY
Definition: dwrite_2.h:784
Range of Unicode codepoints.
Definition: dwrite_1.h:819
The DWRITE_GLYPH_RUN_DESCRIPTION structure contains additional properties related to those in DWRITE_...
Definition: dwrite.h:3075
#define DWRITE_DECLARE_INTERFACE(iid)
Definition: dwrite.h:25
DWRITE_FONT_FEATURE_TAG
Typographic feature of text supplied by the font.
Definition: dwrite.h:1877
#define NULL
Pointer to 0.
Definition: gctypes.h:65
FLOAT dvR
Definition: dwrite_2.h:633
Overall metrics associated with text after layout. All coordinates are in device independent pixels (...
Definition: dwrite.h:3309
DWRITE_OUTLINE_THRESHOLD
Specifies the policy used by GetRecommendedRenderingMode to determine whether to render glyphs in out...
Definition: dwrite_1.h:516
FLOAT r
Definition: dwrite_2.h:632
The DWRITE_STRIKETHROUGH structure contains information about the size and placement of strikethrough...
Definition: dwrite.h:3172
Align to the default metrics of the glyph.
Definition: dwrite_2.h:29
The IDWriteFont interface represents a physical font in a font collection.
Definition: dwrite_2.h:768
The interface implemented by the text analyzer's client to provide text to the analyzer....
Definition: dwrite.h:3021
FLOAT baselineOriginX
Location at which to draw this glyph run.
Definition: dwrite_2.h:783
_Maybenull_ DWRITE_GLYPH_RUN_DESCRIPTION * glyphRunDescription
Optional glyph run description.
Definition: dwrite_2.h:778
f32 a2
Definition: gx_regdef.h:5096
interface IDWriteFontFace IDWriteFontFace
Definition: d2d1_3.h:31
#define F0(x, y, z)
Definition: sha256.c:166
DWRITE_RENDERING_MODE
Represents a method of rendering glyphs.
Definition: dwrite.h:902
UINT16 paletteIndex
Zero-based index of this layer's color entry in the current color palette, or 0xFFFF if this layer is...
Definition: dwrite_2.h:801
The DWRITE_MATRIX structure specifies the graphics transform to be applied to rendered glyphs.
Definition: dwrite.h:967
unsigned int BOOL
Definition: gctypes.h:51
DWRITE_PIXEL_GEOMETRY
Font file loader interface handles loading font file resources of a particular type from a key....
Definition: dwrite.h:877
DWRITE_FONT_WEIGHT
The font weight enumeration describes common values for degree of blackness or thickness of strokes o...
Definition: dwrite.h:167
uint32_t UINT32
Definition: coretypes.h:10
Association of text and its writing system script as well as some display attributes.
Definition: dwrite.h:2347
FLOAT g
Definition: dwrite_2.h:636
Align glyphs to the margins. Without this, some small whitespace may be present between the text and ...
Definition: dwrite_2.h:37
uint16_t UINT16
Definition: coretypes.h:11
interface IDWriteRenderingParams IDWriteRenderingParams
Definition: d2d1.h:52
FLOAT dvA
Definition: dwrite_2.h:645
GLuint GLenum GLenum transform
Definition: glext.h:10314
DWRITE_TEXT_ANTIALIAS_MODE
The root factory interface for all DWrite objects.
Definition: dwrite_1.h:1877
DWRITE_GLYPH_RUN glyphRun
Glyph run to render.
Definition: dwrite_2.h:773
interface IDWriteTextFormat IDWriteTextFormat
Definition: d2d1.h:50
Overall metrics associated with text after layout. All coordinates are in device independent pixels (...
Definition: dwrite_2.h:67
DWRITE_GLYPH_ORIENTATION_ANGLE
How the glyph is oriented to the x-axis. This is an output from the text analyzer,...
Definition: dwrite_1.h:603
DWRITE_COLOR_F runColor
Color to use for this layer, if any. This is the same color that IDWriteFontFace2::GetPaletteEntries ...
Definition: dwrite_2.h:794
FLOAT a
Definition: dwrite_2.h:644
DWRITE_FONT_STYLE
The font style enumeration describes the slope style of a font face, such as Normal,...
Definition: dwrite.h:322
FLOAT heightIncludingTrailingWhitespace
The height of the formatted text taking into account the trailing whitespace at the end of each line,...
Definition: dwrite_2.h:74
DWRITE_GRID_FIT_MODE
Whether to enable grid-fitting of glyph outlines (a.k.a. hinting).
Definition: dwrite_2.h:44
FLOAT dvB
Definition: dwrite_2.h:641
The text renderer interface represents a set of application-defined callbacks that perform rendering ...
Definition: d3d8types.h:57
Enable grid fitting, adjusting glyph outlines for device pixel display.
Definition: dwrite_2.h:59
DWRITE_MEASURING_MODE
The measuring method used for text layout.
Definition: dcommon.h:35
DWRITE_FONT_STRETCH
The font stretch enumeration describes relative change from the normal aspect ratio as specified by a...
Definition: dwrite.h:260
uint8_t UINT8
Definition: coretypes.h:12