IDWriteFactory.CreateGdiCompatibleTextLayout

<summary> CreateGdiCompatibleTextLayout takes a string, format, and associated constraints and produces and object representing the result formatted for a particular display resolution and measuring mode. The resulting text layout should only be used for the intended resolution, and for cases where text scalability is desired, CreateTextLayout should be used instead. </summary> <param name="string">The string to layout.</param> <param name="stringLength">The length of the string.</param> <param name="textFormat">The format to apply to the string.</param> <param name="layoutWidth">Width of the layout box.</param> <param name="layoutHeight">Height of the layout box.</param> <param name="pixelsPerDip">Number of physical pixels per DIP. For example, if rendering onto a 96 DPI device then pixelsPerDip is 1. If rendering onto a 120 DPI device then pixelsPerDip is 120/96.</param> <param name="transform">Optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified the font size and pixelsPerDip.</param> <param name="useGdiNatural"> When set to FALSE, instructs the text layout to use the same metrics as GDI aliased text. When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY. </param> <param name="textLayout">The resultant object.</param> <returns> Standard HRESULT error code. </returns>

interface IDWriteFactory
extern (Windows)
HRESULT
CreateGdiCompatibleTextLayout

Meta