FontWeight
The weight of a font face, on the standard 100 – 900 scale used by OpenType’s wght axis and by CSS’s font-weight. Assigned to FontStyle.Weight. A FontStyle has no font name, so the face is the package’s choice.
Note BETA 1045
The text is drawn in Segoe UI, in three weights only: 100 to 500 alike, in its regular face; 600 in Segoe UI Semibold; and 700 to 900 alike, in Segoe UI Bold. So tbThin, tbExtraLight, tbLight and tbMedium draw as tbNormal, and tbExtraBold and tbHeavy as tbBold, though Windows has Segoe UI Light and Black.
| Constant | Value | Description |
|---|---|---|
| tbThin | 100 | The thinnest weight (also called Hairline). |
| tbExtraLight | 200 | Also known as Ultra Light. |
| tbLight | 300 | A noticeably thinner stroke than the regular weight. |
| tbNormal | 400 | The default weight. Also known as Regular. Newly-constructed FontStyle objects start here. |
| tbMedium | 500 | Slightly heavier than tbNormal. |
| tbSemiBold | 600 | Heavier still; also known as Demi Bold. |
| tbBold | 700 | The standard bold weight. |
| tbExtraBold | 800 | Also known as Ultra Bold. |
| tbHeavy | 900 | The heaviest weight. Also known as Black. |
tbNormal is also a member of WindowState and Customtate, so written alone it is ambiguous (TB5073), even where a FontWeight is expected. Qualify it with the enumeration’s name:
Dim weight As FontWeight = FontWeight.tbNormal