Skip to content

Latest commit

 

History

History
119 lines (83 loc) · 4.95 KB

nf-d2d1_3-id2d1devicecontext4-drawtext(constwchar_uint32_idwritetextformat_constd2d1_rect_f__id2d1brush_id2d1svgglyphstyle_uint32_d2d1_draw_text_options_dwrite_measuring_mode).md

File metadata and controls

119 lines (83 loc) · 4.95 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d2d1_3.ID2D1DeviceContext4.DrawText(constWCHAR,UINT32,IDWriteTextFormat,constD2D1_RECT_F&,ID2D1Brush,ID2D1SvgGlyphStyle,UINT32,D2D1_DRAW_TEXT_OPTIONS,DWRITE_MEASURING_MODE)
ID2D1DeviceContext4::DrawText(const WCHAR,UINT32,IDWriteTextFormat,const D2D1_RECT_F &,ID2D1Brush,ID2D1SvgGlyphStyle,UINT32,D2D1_DRAW_TEXT_OPTIONS,DWRITE_MEASURING_MODE) (d2d1_3.h)
Draws the text within the given layout rectangle. (overload 2/2)
DrawText
DrawText method [Direct2D]
DrawText method [Direct2D]
ID2D1DeviceContext4 interface
ID2D1DeviceContext4 interface [Direct2D]
DrawText method
ID2D1DeviceContext4.DrawText
ID2D1DeviceContext4.DrawText(const WCHAR
UINT32
IDWriteTextFormat
const D2D1_RECT_F &
ID2D1Brush
ID2D1SvgGlyphStyle
UINT32
D2D1_DRAW_TEXT_OPTIONS
DWRITE_MEASURING_MODE)
ID2D1DeviceContext4::DrawText
ID2D1DeviceContext4::DrawText(const WCHAR
UINT32
IDWriteTextFormat
const D2D1_RECT_F &
ID2D1Brush
ID2D1SvgGlyphStyle
UINT32
D2D1_DRAW_TEXT_OPTIONS
DWRITE_MEASURING_MODE)
d2d1_3/ID2D1DeviceContext4::DrawText
direct2d.id2d1devicecontext4_drawtext_2
direct2d\id2d1devicecontext4_drawtext_2.htm
Direct2D
1B7DA239-9788-44E9-86A8-205E8CCDD065
12/05/2018
DrawText, DrawText method [Direct2D], DrawText method [Direct2D],ID2D1DeviceContext4 interface, ID2D1DeviceContext4 interface [Direct2D],DrawText method, ID2D1DeviceContext4.DrawText, ID2D1DeviceContext4.DrawText(const WCHAR,UINT32,IDWriteTextFormat,const D2D1_RECT_F &,ID2D1Brush,ID2D1SvgGlyphStyle,UINT32,D2D1_DRAW_TEXT_OPTIONS,DWRITE_MEASURING_MODE), ID2D1DeviceContext4::DrawText, ID2D1DeviceContext4::DrawText(const WCHAR,UINT32,IDWriteTextFormat,const D2D1_RECT_F &,ID2D1Brush,ID2D1SvgGlyphStyle,UINT32,D2D1_DRAW_TEXT_OPTIONS,DWRITE_MEASURING_MODE), d2d1_3/ID2D1DeviceContext4::DrawText, direct2d.id2d1devicecontext4_drawtext_2
d2d1_3.h
Windows
D2d1.dll
Windows
19H1
ID2D1DeviceContext4::DrawText
d2d1_3/ID2D1DeviceContext4::DrawText
c++
APIRef
kbSyntax
COM
D2d1.dll
ID2D1DeviceContext4.DrawText

ID2D1DeviceContext4::DrawText(const WCHAR,UINT32,IDWriteTextFormat,const D2D1_RECT_F &,ID2D1Brush,ID2D1SvgGlyphStyle,UINT32,D2D1_DRAW_TEXT_OPTIONS,DWRITE_MEASURING_MODE)

-description

Draws the text within the given layout rectangle.

By default, this method performs baseline snapping and renders color versions of glyphs in color fonts.

-parameters

-param string [in]

Type: const WCHAR*

A pointer to an array of Unicode characters to draw.

-param stringLength

Type: UINT32

The number of characters in string.

-param textFormat [in]

Type: IDWriteTextFormat*

An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction.

-param layoutRect [ref]

Type: const D2D1_RECT_F

The size and position of the area in which the text is drawn.

-param defaultFillBrush [in, optional]

Type: ID2D1Brush*

The brush used to paint the text.

-param svgGlyphStyle [in, optional]

Type: ID2D1SvgGlyphStyle*

Values for context-fill, context-stroke, and context-value that are used when rendering SVG glyphs.

-param colorPaletteIndex

Type: UINT32

The index used to select a color palette within a color font.

-param options

Type: D2D1_DRAW_TEXT_OPTIONS

A value that indicates whether the text should be snapped to pixel boundaries and whether the text should be clipped to the layout rectangle. The default value is D2D1_DRAW_TEXT_OPTIONS_NONE, which indicates that text should be snapped to pixel boundaries and it should not be clipped to the layout rectangle.

-param measuringMode

Type: DWRITE_MEASURING_MODE

A value that indicates how glyph metrics are used to measure text when it is formatted. The default value is DWRITE_MEASURING_MODE_NATURAL.

-see-also

ID2D1DeviceContext4