Margin Alignment Enum
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies how side bearing values in per-character typography are handled when aligning to a text container boundary.
public enum class OpticalMarginAlignment
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)] enum class OpticalMarginAlignment
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)] public enum OpticalMarginAlignment
Public Enum OpticalMarginAlignment
Windows 10 (introduced in 10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced in v1.0)
Use side bearings that come from font typography values. This is the default.
Don't use side bearings that come from font typography values, and align the side of the glyph to where the "ink" part of the glyph begins.
When fonts of different sizes are aligned vertically in the same or nearby containers, the advance width and side bearing of the characters can cause the alignment to appear ragged. This can be prevented by setting a property that uses OpticalMarginAlignment to use the TrimSideBearings constant.
Submit and view feedback for