IDWriteTextLayout2.SetOpticalAlignment

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

interface IDWriteTextLayout2
HRESULT
SetOpticalAlignment

Meta