HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
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. More...
Public Member Functions | |
FontFactoryImp () | |
Creates new FontFactory More... | |
virtual Font | GetFont (string fontname, string encoding, bool embedded, float size, int style, Color color) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, string encoding, bool embedded, float size, int style, Color color, bool cached) |
Constructs a Font-object. More... | |
virtual Font | GetFont (Properties attributes) |
Constructs a Font-object. More... | |
Font | GetFont (string fontname, string encoding, bool embedded, float size, int style) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, string encoding, bool embedded, float size) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, string encoding, bool embedded) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, string encoding, float size, int style, Color color) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, string encoding, float size, int style) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, string encoding, float size) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, string encoding) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, float size, int style, Color color) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, float size, Color color) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, float size, int style) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname, float size) |
Constructs a Font-object. More... | |
virtual Font | GetFont (string fontname) |
Constructs a Font-object. More... | |
virtual void | Register (Properties attributes) |
void | RegisterFamily (String familyName, String fullName, String path) |
virtual void | Register (string path) |
Register a ttf- or a ttc-file. More... | |
virtual void | Register (string path, string alias) |
Register a ttf- or a ttc-file and use an alias for the font contained in the ttf-file. More... | |
virtual int | RegisterDirectory (String dir) |
int | RegisterDirectory (String dir, bool scanSubdirectories) |
virtual int | RegisterDirectories () |
virtual bool | IsRegistered (string fontname) |
Checks if a certain font is registered. More... | |
Properties | |
virtual ICollection | RegisteredFonts [get] |
Gets a set of registered fontnames. More... | |
virtual ICollection | RegisteredFamilies [get] |
Gets a set of registered font families. More... | |
virtual string | DefaultEncoding [get, set] |
virtual bool | DefaultEmbedding [get, set] |
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.
iTextSharp.text.FontFactoryImp.FontFactoryImp | ( | ) |
Creates new FontFactory
|
virtual |
|
virtual |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
size | the size of this font |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
size | the size of this font |
style | the style of this font |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
embedded | true if the font is to be embedded in the PDF |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
embedded | true if the font is to be embedded in the PDF |
size | the size of this font |
Font iTextSharp.text.FontFactoryImp.GetFont | ( | string | fontname, |
string | encoding, | ||
bool | embedded, | ||
float | size, | ||
int | style | ||
) |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
embedded | true if the font is to be embedded in the PDF |
size | the size of this font |
style | the style of this font |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
embedded | true if the font is to be embedded in the PDF |
size | the size of this font |
style | the style of this font |
color | the Color of this font |
cached | true if the font comes from the cache or is added to the cache if new, false if the font is always created new |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
size | the size of this font |
|
virtual |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
size | the size of this font |
style | the style of this font |
|
virtual |
Checks if a certain font is registered.
fontname | the name of the font that has to be checked |
|
virtual |
|
virtual |
Register a ttf- or a ttc-file.
path | the path to a ttf- or ttc-file |
|
virtual |
Register a ttf- or a ttc-file and use an alias for the font contained in the ttf-file.
path | the path to a ttf- or ttc-file |
alias | the alias you want to use for the font |
|
virtual |
Register fonts in some probable directories. It usually works in Windows, Linux and Solaris.
|
virtual |
Register all the fonts in a directory.
dir | the directory |
int iTextSharp.text.FontFactoryImp.RegisterDirectory | ( | String | dir, |
bool | scanSubdirectories | ||
) |
Register all the fonts in a directory and possibly its subdirectories.
dir | the directory |
scanSubdirectories | recursively scan subdirectories if true</true> |
the number of fonts registered
2.1.2
void iTextSharp.text.FontFactoryImp.RegisterFamily | ( | String | familyName, |
String | fullName, | ||
String | path | ||
) |
Register a font by giving explicitly the font family and name.
familyName | the font family |
fullName | the font name |
path | the font path |
|
getset |
|
getset |
|
get |
Gets a set of registered font families.
a set of registered font families
|
get |
Gets a set of registered fontnames.
a set of registered fontnames