C# Class iTextSharp.text.FontFactoryImp

If you are using True Type fonts, you can declare the paths of the different ttf- and ttc-files to this class first and then create fonts in your code using one of the getFont method without having to enter a path as parameter.
Inheritance: IFontProvider
Afficher le fichier Open project: mapo80/iTextSharp-Monotouch

Méthodes publiques

Méthode Description
FontFactoryImp ( ) : System

Creates new FontFactory

GetFont ( string fontname ) : Font

Constructs a Font-object.

GetFont ( string fontname, float size ) : Font

Constructs a Font-object.

GetFont ( string fontname, float size, BaseColor color ) : Font

Constructs a Font-object.

GetFont ( string fontname, float size, int style ) : Font

Constructs a Font-object.

GetFont ( string fontname, float size, int style, BaseColor color ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, bool embedded ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, bool embedded, float size ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, bool embedded, float size, int style ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, bool embedded, float size, int style, BaseColor color ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, bool embedded, float size, int style, BaseColor color, bool cached ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, float size ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, float size, int style ) : Font

Constructs a Font-object.

GetFont ( string fontname, string encoding, float size, int style, BaseColor color ) : Font

Constructs a Font-object.

IsRegistered ( string fontname ) : bool

Checks if a certain font is registered.

Register ( string path ) : void

Register a ttf- or a ttc-file.

Register ( string path, string alias ) : void

Register a ttf- or a ttc-file and use an alias for the font contained in the ttf-file.

RegisterDirectories ( ) : int
RegisterDirectory ( String dir ) : int
RegisterDirectory ( String dir, bool scanSubdirectories ) : int
RegisterFamily ( String familyName, String fullName, String path ) : void

Method Details

FontFactoryImp() public méthode

Creates new FontFactory
public FontFactoryImp ( ) : System
Résultat System

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname ) : Font
fontname string the name of the font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, float size ) : Font
fontname string the name of the font
size float the size of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, float size, BaseColor color ) : Font
fontname string the name of the font
size float the size of this font
color BaseColor the BaseColor of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, float size, int style ) : Font
fontname string the name of the font
size float the size of this font
style int the style of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, float size, int style, BaseColor color ) : Font
fontname string the name of the font
size float the size of this font
style int the style of this font
color BaseColor the BaseColor of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding ) : Font
fontname string the name of the font
encoding string the encoding of the font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, bool embedded ) : Font
fontname string the name of the font
encoding string the encoding of the font
embedded bool true if the font is to be embedded in the PDF
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, bool embedded, float size ) : Font
fontname string the name of the font
encoding string the encoding of the font
embedded bool true if the font is to be embedded in the PDF
size float the size of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, bool embedded, float size, int style ) : Font
fontname string the name of the font
encoding string the encoding of the font
embedded bool true if the font is to be embedded in the PDF
size float the size of this font
style int the style of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, bool embedded, float size, int style, BaseColor color ) : Font
fontname string the name of the font
encoding string the encoding of the font
embedded bool true if the font is to be embedded in the PDF
size float the size of this font
style int the style of this font
color BaseColor the BaseColor of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, bool embedded, float size, int style, BaseColor color, bool cached ) : Font
fontname string the name of the font
encoding string the encoding of the font
embedded bool true if the font is to be embedded in the PDF
size float the size of this font
style int the style of this font
color BaseColor the BaseColor of this font
cached bool true if the font comes from the cache or is added to the cache if new, false if the font is always created new
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, float size ) : Font
fontname string the name of the font
encoding string the encoding of the font
size float the size of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, float size, int style ) : Font
fontname string the name of the font
encoding string the encoding of the font
size float the size of this font
style int the style of this font
Résultat Font

GetFont() public méthode

Constructs a Font-object.
public GetFont ( string fontname, string encoding, float size, int style, BaseColor color ) : Font
fontname string the name of the font
encoding string the encoding of the font
size float the size of this font
style int the style of this font
color BaseColor the BaseColor of this font
Résultat Font

IsRegistered() public méthode

Checks if a certain font is registered.
public IsRegistered ( string fontname ) : bool
fontname string the name of the font that has to be checked
Résultat bool

Register() public méthode

Register a ttf- or a ttc-file.
public Register ( string path ) : void
path string the path to a ttf- or ttc-file
Résultat void

Register() public méthode

Register a ttf- or a ttc-file and use an alias for the font contained in the ttf-file.
public Register ( string path, string alias ) : void
path string the path to a ttf- or ttc-file
alias string the alias you want to use for the font
Résultat void

RegisterDirectories() public méthode

public RegisterDirectories ( ) : int
Résultat int

RegisterDirectory() public méthode

public RegisterDirectory ( String dir ) : int
dir String
Résultat int

RegisterDirectory() public méthode

public RegisterDirectory ( String dir, bool scanSubdirectories ) : int
dir String
scanSubdirectories bool
Résultat int

RegisterFamily() public méthode

public RegisterFamily ( String familyName, String fullName, String path ) : void
familyName String
fullName String
path String
Résultat void