22#include <kiwano/render/DirectX/D2DDeviceResources.h>
30interface DWRITE_DECLARE_INTERFACE("b293e798-9916-4096-a3c1-e5d4039dfa64") ITextRenderer :
public IDWriteTextRenderer
33 static KGE_API HRESULT Create(_Out_ ITextRenderer * *ppTextRenderer, _In_ ID2D1DeviceContext * pContext);
35 STDMETHOD(DrawTextLayout)
36 (_In_ IDWriteTextLayout * pTextLayout,
float fOriginX,
float fOriginY, _In_opt_ ID2D1Brush* pDefaultFillBrush,
37 _In_opt_ ID2D1Brush* pDefaultOutlineBrush,
float fDefaultOutlineWidth,
38 _In_opt_ ID2D1StrokeStyle* pDefaultStrokeStyle) PURE;
40 STDMETHOD_(uint32_t, GetLastPrimitivesCount)() PURE;