iText 9.3.0 API
iText.IO.Font.Constants.FontWeights Class Reference

Font weight values and utility methods More...

Static Public Member Functions

static int  FromType1FontWeight (String weight)
  Parses font weight constant to corresponding value. More...
 
static int  NormalizeFontWeight (int fontWeight)
  Normalize font weight to either THIN or BLACK. More...
 

Static Public Attributes

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
 

Detailed Description

Font weight values and utility methods

Member Function Documentation

◆ FromType1FontWeight()

static int iText.IO.Font.Constants.FontWeights.FromType1FontWeight ( String  weight )
inlinestatic

Parses font weight constant to corresponding value.

Parameters
weight weight constant
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