Method GetBolderFontWeight
- Namespace
- SharpVectors.Renderers.Texts
- Assembly
- SharpVectors.Rendering.Wpf.dll
GetBolderFontWeight(string)
Resolves one step heavier font-weight from a given parent font-weight value.
protected FontWeight GetBolderFontWeight(string fontWeight)
Parameters
fontWeightstringThe parent font-weight value (CSS keyword or numeric string).
Returns
- FontWeight
One step heavier than the input weight.
Remarks
Specification: CSS Font Module Level 3, Section 3.3 (font-weight)
This method implements the "bolder" keyword semantics, moving from the current weight up one step in the CSS weight hierarchy:
- 100 → ExtraLight (200)
- 200 → Light (300)
- 300 → Normal (400)
- 400 → Bold (700)
- 500 → SemiBold (600)
- 600 → Bold (700)
- 700 → ExtraBold (800)
- 800 → Black (900)
- 900+ → UltraBlack (950)
Non-Standard Numeric: Non-standard numeric values increment by ~100 and are rounded to the nearest standard weight.
Default: Empty or invalid input returns Normal (400).