iText 8.0.5 API
iText.IO.Font.FontNames Class Reference

Public Member Functions

virtual String[][]  GetNames (int id)
  Extracts the names of the font in all the languages available. More...
 
virtual String[][]  GetFullName ()
 
virtual String  GetFontName ()
 
virtual String  GetCidFontName ()
 
virtual String[][]  GetFamilyName ()
 
virtual String[][]  GetFamilyName2 ()
  Get extra family name if exists. More...
 
virtual String  GetStyle ()
 
virtual String  GetSubfamily ()
 
virtual int  GetFontWeight ()
 
virtual String  GetFontStretch ()
  Gets font stretch in css notation (font-stretch property). More...
 
virtual bool  AllowEmbedding ()
 
virtual bool  IsBold ()
 
virtual bool  IsItalic ()
 
virtual bool  IsUnderline ()
 
virtual bool  IsOutline ()
 
virtual bool  IsShadow ()
 
virtual bool  IsCondensed ()
 
virtual bool  IsExtended ()
 
override String  ToString ()
 

Package Functions

virtual void  SetFontWeight (int weight)
  Sets font weight. More...
 
virtual void  SetFontStretch (String fontStretch)
  Sets font stretch in css notation (font-stretch property). More...
 
virtual void  SetAllNames (IDictionary< int, IList< String[]>> allNames)
 
virtual void  SetFullName (String[][] fullName)
 
virtual void  SetFullName (String fullName)
 
virtual void  SetFontName (String psFontName)
 
virtual void  SetCidFontName (String cidFontName)
 
virtual void  SetFamilyName (String[][] familyName)
 
virtual void  SetFamilyName2 (String[][] familyName2)
  Set extra family name used for better fonts match. More...
 
virtual void  SetFamilyName (String familyName)
 
virtual void  SetStyle (String style)
 
virtual void  SetSubfamily (String subfamily)
 
virtual void  SetSubfamily (String[][] subfamily)
 
virtual void  SetMacStyle (int macStyle)
  Sets Open Type head.macStyle. More...
 
virtual int  GetMacStyle ()
 
virtual void  SetAllowEmbedding (bool allowEmbedding)
 

Package Attributes

IDictionary< int, IList< String[]> >  allNames
 

Member Function Documentation

◆ GetFamilyName2()

virtual String [][] iText.IO.Font.FontNames.GetFamilyName2 ( )
inlinevirtual

Get extra family name if exists.

Returns
extra family name if exists in the font, null otherwise.

◆ GetFontStretch()

virtual String iText.IO.Font.FontNames.GetFontStretch ( )
inlinevirtual

Gets font stretch in css notation (font-stretch property).

Returns
One of iText.IO.Font.Constants.FontStretches values.

◆ GetNames()

virtual String [][] iText.IO.Font.FontNames.GetNames ( int  id )
inlinevirtual

Extracts the names of the font in all the languages available.

Parameters
id the name id to retrieve in OpenType notation
Returns
not empty String[][] if any names exists, otherwise null.

◆ SetFamilyName2()

virtual void iText.IO.Font.FontNames.SetFamilyName2 ( String  familyName2[][] )
inlinepackagevirtual

Set extra family name used for better fonts match.

Parameters
familyName2 family name to set.

◆ SetFontStretch()

virtual void iText.IO.Font.FontNames.SetFontStretch ( String  fontStretch )
inlinepackagevirtual

Sets font stretch in css notation (font-stretch property).

Parameters
fontStretch

iText.IO.Font.Constants.FontStretches.

◆ SetFontWeight()

virtual void iText.IO.Font.FontNames.SetFontWeight ( int  weight )
inlinepackagevirtual

Sets font weight.

Parameters
weight integer form 100 to 900. See iText.IO.Font.Constants.FontWeights.

◆ SetMacStyle()

virtual void iText.IO.Font.FontNames.SetMacStyle ( int  macStyle )
inlinepackagevirtual

Sets Open Type head.macStyle.

Sets Open Type head.macStyle.

iText.IO.Font.Constants.FontMacStyleFlags

Parameters
macStyle macStyle flag