iText 8.0.2 API
iText.IO.Font.Constants.FontStretches Class Reference

Static Public Member Functions

static String  FromOpenTypeWidthClass (int fontWidth)
  Convert from Open Type font width class notation. More...
 

Static Public Attributes

const String  ULTRA_CONDENSED = "UltraCondensed"
 
const String  EXTRA_CONDENSED = "ExtraCondensed"
 
const String  CONDENSED = "Condensed"
 
const String  SEMI_CONDENSED = "SemiCondensed"
 
const String  NORMAL = "Normal"
 
const String  SEMI_EXPANDED = "SemiExpanded"
 
const String  EXPANDED = "Expanded"
 
const String  EXTRA_EXPANDED = "ExtraExpanded"
 
const String  ULTRA_EXPANDED = "UltraExpanded"
 

Member Function Documentation

◆ FromOpenTypeWidthClass()

static String iText.IO.Font.Constants.FontStretches.FromOpenTypeWidthClass ( int  fontWidth )
inlinestatic

Convert from Open Type font width class notation.

Convert from Open Type font width class notation.

https://www.microsoft.com/typography/otspec/os2.htm#wdc

Parameters
fontWidth Open Type font width.
Returns
one of the FontStretches constants.