CanvasFontSimulations Enumeration |
Namespace: Microsoft.Graphics.Canvas.Text
[FlagsAttribute] public enum CanvasFontSimulations
Member name | Value | Description | |
---|---|---|---|
None | 0 | Indicates that no simulations are applied to the font face. | |
Bold | 1 | Indicates that algorithmic emboldening is applied to the font face. | |
Oblique | 2 | Indicates that algorithmic italicization is applied to the font face. |
Simulations are for when an app wants bold or italic faces of a font, but the font does not come built-in with bold or italic faces. A simulation will automatically generate a bold and/or italic face for that font, using an algorithm. The simulation may incur a performance cost, and may lack the visual quality of a face designed by the font author. However, simulations can be used to stylize a wide variety of fonts.
Bold and oblique simulations can be combined, via bitwise OR operation.