IDWriteFontFace2.GetRecommendedRenderingMode

<summary> Determines the recommended text rendering and grid-fit mode to be used based on the font, size, world transform, and measuring mode. </summary> <param name="fontEmSize">Logical font size in DIPs.</param> <param name="dpiX">Number of pixels per logical inch in the horizontal direction.</param> <param name="dpiY">Number of pixels per logical inch in the vertical direction.</param> <param name="transform">Specifies the world transform.</param> <param name="outlineThreshold">Specifies the quality of the graphics system's outline rendering, affects the size threshold above which outline rendering is used.</param> <param name="measuringMode">Specifies the method used to measure during text layout. For proper glyph spacing, the function returns a rendering mode that is compatible with the specified measuring mode.</param> <param name="renderingParams">Rendering parameters object. This parameter is necessary in case the rendering parameters object overrides the rendering mode.</param> <param name="renderingMode">Receives the recommended rendering mode.</param> <param name="gridFitMode">Receives the recommended grid-fit mode.</param> <remarks> This method should be used to determine the actual rendering mode in cases where the rendering mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT, and the actual grid-fit mode when the rendering params object is DWRITE_GRID_FIT_MODE_DEFAULT. </remarks> <returns> Standard HRESULT error code. </returns>

interface IDWriteFontFace2
HRESULT
GetRecommendedRenderingMode
(
,
FLOAT dpiX
,
FLOAT dpiY
,
const(DWRITE_MATRIX)* transform
,,
DWRITE_OUTLINE_THRESHOLD outlineThreshold
,
DWRITE_MEASURING_MODE measuringMode
,
IDWriteRenderingParams renderingParams
,
DWRITE_RENDERING_MODE* renderingMode
,
)

Meta