Table of Contents

Class FontNames

Namespace
iText.IO.Font
Assembly
itext.io.dll
public class FontNames
Inheritance
FontNames
Inherited Members

Constructors

FontNames()

public FontNames()

Fields

allNames

protected IDictionary<int, IList<string[]>> allNames

Field Value

IDictionary<int, IList<string[]>>

Methods

AllowEmbedding()

public virtual bool AllowEmbedding()

Returns

bool

GetCidFontName()

public virtual string GetCidFontName()

Returns

string

GetFamilyName()

public virtual string[][] GetFamilyName()

Returns

string[][]

GetFamilyName2()

Get extra family name if exists.

public virtual string[][] GetFamilyName2()

Returns

string[][]

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

GetFontName()

public virtual string GetFontName()

Returns

string

GetFontStretch()

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

public virtual string GetFontStretch()

Returns

string

One of FontStretches values.

GetFontWeight()

public virtual int GetFontWeight()

Returns

int

GetFullName()

public virtual string[][] GetFullName()

Returns

string[][]

GetMacStyle()

protected virtual int GetMacStyle()

Returns

int

GetNames(int)

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

public virtual string[][] GetNames(int id)

Parameters

id int

the name id to retrieve in OpenType notation

Returns

string[][]

not empty String[][] if any names exists, otherwise null.

GetStyle()

public virtual string GetStyle()

Returns

string

GetSubfamily()

public virtual string GetSubfamily()

Returns

string

IsBold()

public virtual bool IsBold()

Returns

bool

IsCondensed()

public virtual bool IsCondensed()

Returns

bool

IsExtended()

public virtual bool IsExtended()

Returns

bool

IsItalic()

public virtual bool IsItalic()

Returns

bool

IsOutline()

public virtual bool IsOutline()

Returns

bool

IsShadow()

public virtual bool IsShadow()

Returns

bool

IsUnderline()

public virtual bool IsUnderline()

Returns

bool

SetAllNames(IDictionary<int, IList<string[]>>)

protected virtual void SetAllNames(IDictionary<int, IList<string[]>> allNames)

Parameters

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

SetAllowEmbedding(bool)

protected virtual void SetAllowEmbedding(bool allowEmbedding)

Parameters

allowEmbedding bool

SetCidFontName(string)

protected virtual void SetCidFontName(string cidFontName)

Parameters

cidFontName string

SetFamilyName(string)

protected virtual void SetFamilyName(string familyName)

Parameters

familyName string

SetFamilyName(string[][])

protected virtual void SetFamilyName(string[][] familyName)

Parameters

familyName string[][]

SetFamilyName2(string[][])

Set extra family name used for better fonts match.

protected virtual void SetFamilyName2(string[][] familyName2)

Parameters

familyName2 string[][]

family name to set.

SetFontName(string)

protected virtual void SetFontName(string psFontName)

Parameters

psFontName string

SetFontStretch(string)

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

protected virtual void SetFontStretch(string fontStretch)

Parameters

fontStretch string

FontStretches.

SetFontWeight(int)

Sets font weight.

protected virtual void SetFontWeight(int weight)

Parameters

weight int

integer form 100 to 900. See FontWeights.

SetFullName(string)

protected virtual void SetFullName(string fullName)

Parameters

fullName string

SetFullName(string[][])

protected virtual void SetFullName(string[][] fullName)

Parameters

fullName string[][]

SetMacStyle(int)

Sets Open Type head.macStyle.

protected virtual void SetMacStyle(int macStyle)

Parameters

macStyle int

macStyle flag

Remarks

Sets Open Type head.macStyle.

FontMacStyleFlags

SetStyle(string)

protected virtual void SetStyle(string style)

Parameters

style string

SetSubfamily(string)

protected virtual void SetSubfamily(string subfamily)

Parameters

subfamily string

SetSubfamily(string[][])

protected virtual void SetSubfamily(string[][] subfamily)

Parameters

subfamily string[][]

ToString()

public override string ToString()

Returns

string