IDWriteTextLayout2

<summary> The text layout interface represents a block of text after it has been fully analyzed and formatted.

All coordinates are in device independent pixels (DIPs). </summary>

Members

Functions

GetFontFallback
HRESULT GetFontFallback(IDWriteFontFallback* fontFallback)

<summary> Get the current font fallback object. </summary>

GetLastLineWrapping
BOOL GetLastLineWrapping()

<summary> Get whether or not the last word on the last line is wrapped. </summary>

GetMetrics
HRESULT GetMetrics(DWRITE_TEXT_METRICS1* textMetrics)

<summary> GetMetrics retrieves overall metrics for the formatted string. </summary> <param name="textMetrics">The returned metrics.</param> <returns> Standard HRESULT error code. </returns> <remarks> Drawing effects like underline and strikethrough do not contribute to the text size, which is essentially the sum of advance widths and line heights. Additionally, visible swashes and other graphic adornments may extend outside the returned width and height. </remarks>

GetOpticalAlignment
DWRITE_OPTICAL_ALIGNMENT GetOpticalAlignment()

<summary> Get how the glyphs align to the edges the margin. </summary>

GetVerticalGlyphOrientation
DWRITE_VERTICAL_GLYPH_ORIENTATION GetVerticalGlyphOrientation()

<summary> Get the preferred orientation of glyphs when using a vertical reading direction. </summary>

SetFontFallback
HRESULT SetFontFallback(IDWriteFontFallback fontFallback)

<summary> Apply a custom font fallback onto layout. If none is specified, layout uses the system fallback list. </summary> <param name="fontFallback">Custom font fallback created from IDWriteFontFallbackBuilder::CreateFontFallback or IDWriteFactory2::GetSystemFontFallback.</param> <returns> Standard HRESULT error code. </returns>

SetLastLineWrapping
HRESULT SetLastLineWrapping(BOOL isLastLineWrappingEnabled)

<summary> Set whether or not the last word on the last line is wrapped. </summary> <param name="isLastLineWrappingEnabled">Line wrapping option.</param> <returns> Standard HRESULT error code. </returns>

SetOpticalAlignment
HRESULT SetOpticalAlignment(DWRITE_OPTICAL_ALIGNMENT opticalAlignment)

<summary> Set how the glyphs align to the edges the margin. Default behavior is to align glyphs using their default glyphs metrics which include side bearings. </summary> <param name="opticalAlignment">Optical alignment option.</param> <returns> Standard HRESULT error code. </returns>

SetVerticalGlyphOrientation
HRESULT SetVerticalGlyphOrientation(DWRITE_VERTICAL_GLYPH_ORIENTATION glyphOrientation)

<summary> Set the preferred orientation of glyphs when using a vertical reading direction. </summary> <param name="glyphOrientation">Preferred glyph orientation.</param> <returns> Standard HRESULT error code. </returns>

Meta