Function BlamRendering::DirectX::Drawing::DWDrawText(std::wstring, std::wstring, float, int, int, D2D1_COLOR_F, IDWriteFontCollection *, bool, D2D1_RECT_F)¶
Defined in File drawing.h
Function Documentation¶
-
HRESULT
BlamRendering::DirectX::Drawing
::
DWDrawText
(std::wstring text, std::wstring font_name, float size, int x, int y, D2D1_COLOR_F color, IDWriteFontCollection *font_collection, bool auto_calculate_area, D2D1_RECT_F area)¶ Draws a string using DirectWrite.
- Return
S_OK
if the item was drawn successfully, otherwise returns an error code.- Parameters
text
: - The text to draw.font
: - The name of the font to use. Can be the name of any installed system font.size
: - The size to draw the text at.x
: - The X coordinate at which to draw the text. Only used ifauto_calculate_area
is set totrue
.y
: - The Y coordinate at which to draw the text. Only used ifauto_calculate_area
is set totrue
.color
: - The color to use for the text.font_collection
: - Pointer to the custom font collection containing the desired font.auto_calculate_area
: - Whether or not to automatically calculate the text area.area
: - The area to draw the text within. Only used ifauto_calculate_area
is set tofalse
.