IDWriteTextFormat1

<summary> The format of text used for text layout. </summary> <remarks> This object may not be thread-safe and it may carry the state of text format change. </remarks>

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>

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 from 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