Font weight values and utility methods More...
|
| const int |
THIN = 100 |
| |
| const int |
EXTRA_LIGHT = 200 |
| |
| const int |
LIGHT = 300 |
| |
| const int |
NORMAL = 400 |
| |
| const int |
MEDIUM = 500 |
| |
| const int |
SEMI_BOLD = 600 |
| |
| const int |
BOLD = 700 |
| |
| const int |
EXTRA_BOLD = 800 |
| |
| const int |
BLACK = 900 |
| |
Font weight values and utility methods
◆ FromType1FontWeight()
| static int iText.IO.Font.Constants.FontWeights.FromType1FontWeight |
( |
String |
weight |
) |
|
|
inlinestatic |
Parses font weight constant to corresponding value.
-
Parameters
-
-
Returns
-
corresponding weight int value
◆ NormalizeFontWeight()
| static int iText.IO.Font.Constants.FontWeights.NormalizeFontWeight |
( |
int |
fontWeight |
) |
|
|
inlinestatic |
Normalize font weight to either THIN or BLACK.
-
Parameters
-
| fontWeight |
font weight int value |
-
Returns
-
either THIN or BLACK based on a given weight value