XRFontWeight (Compact 2013)

3/28/2014

This enumeration contains values that indicate the thickness of a font, as measured by the lightness or heaviness of the strokes.

Syntax

enum XRFontWeight{
    XRFontWeight_Thin=100,
    XRFontWeight_ExtraLight=200,
    XRFontWeight_Light=300,
    XRFontWeight_Normal=400,
    XRFontWeight_Medium=500,
    XRFontWeight_SemiBold=600,
    XRFontWeight_Bold=700,
    XRFontWeight_ExtraBold=800,
    XRFontWeight_Black=900,
    XRFontWeight_ExtraBlack=950,
};

Members

  • XRFontWeight_Thin
    Weight class 100
  • XRFontWeight_ExtraLight
    Weight class 200
  • XRFontWeight_Light
    Weight class 300
  • XRFontWeight_Normal
    Weight class 400
  • XRFontWeight_Medium
    Weight class 500
  • XRFontWeight_SemiBold
    Weight class 600
  • XRFontWeight_Bold
    Weight class 700
  • XRFontWeight_ExtraBold
    Weight class 800
  • XRFontWeight_Black
    Weight class 900
  • XRFontWeight_ExtraBlack
    Weight class 950

Remarks

A font weight describes the visual weight of a font. Varying the line thickness of the strokes in the glyphs of a font is the primary way to craft fonts of different weights in a font family, but there are also other factors involved.

The members of XRFontWeight correspond to the usWeightClass definition in the OpenType specification. The usWeightClass represents an integer value between 1 and 999. Lower values indicate lighter weights; higher values indicate heavier weights.

.NET Framework Equivalent

System.Windows.FontWeights

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
IXRControl::GetFontWeight
IXRControl::SetFontWeight
IXRTextElement::GetFontWeight
IXRTextElement::SetFontWeight
IXRTextBlock::GetFontWeight
IXRTextBlock::SetFontWeight