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 static class first and then create fonts in your code using one of the static getFont-method without having to enter a path as parameter. More...
Public Member Functions | |
void | RegisterFamily (String familyName, String fullName, String path) |
Static Public Member Functions | |
static Font | GetFont (string fontname, string encoding, bool embedded, float size, int style, Color color) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding, bool embedded, float size, int style, Color color, bool cached) |
Constructs a Font-object. More... | |
static Font | GetFont (Properties attributes) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding, bool embedded, float size, int style) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding, bool embedded, float size) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding, bool embedded) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding, float size, int style, Color color) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding, float size, int style) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding, float size) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, string encoding) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, float size, int style, Color color) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, float size, Color color) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, float size, int style) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname, float size) |
Constructs a Font-object. More... | |
static Font | GetFont (string fontname) |
Constructs a Font-object. More... | |
static void | Register (Properties attributes) |
static void | Register (string path) |
Register a ttf- or a ttc-file. More... | |
static 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... | |
static int | RegisterDirectory (String dir) |
static int | RegisterDirectory (String dir, bool scanSubdirectories) |
static int | RegisterDirectories () |
static bool | Contains (string fontname) |
Checks whether the given font is contained within the object More... | |
static bool | IsRegistered (string fontname) |
Checks if a certain font is registered. More... | |
Static Public Attributes | |
const string | COURIER = BaseFont.COURIER |
This is a possible value of a base 14 type 1 font More... | |
const string | COURIER_BOLD = BaseFont.COURIER_BOLD |
This is a possible value of a base 14 type 1 font More... | |
const string | COURIER_OBLIQUE = BaseFont.COURIER_OBLIQUE |
This is a possible value of a base 14 type 1 font More... | |
const string | COURIER_BOLDOBLIQUE = BaseFont.COURIER_BOLDOBLIQUE |
This is a possible value of a base 14 type 1 font More... | |
const string | HELVETICA = BaseFont.HELVETICA |
This is a possible value of a base 14 type 1 font More... | |
const string | HELVETICA_BOLD = BaseFont.HELVETICA_BOLD |
This is a possible value of a base 14 type 1 font More... | |
const string | HELVETICA_OBLIQUE = BaseFont.HELVETICA_OBLIQUE |
This is a possible value of a base 14 type 1 font More... | |
const string | HELVETICA_BOLDOBLIQUE = BaseFont.HELVETICA_BOLDOBLIQUE |
This is a possible value of a base 14 type 1 font More... | |
const string | SYMBOL = BaseFont.SYMBOL |
This is a possible value of a base 14 type 1 font More... | |
const string | TIMES = "Times" |
This is a possible value of a base 14 type 1 font More... | |
const string | TIMES_ROMAN = BaseFont.TIMES_ROMAN |
This is a possible value of a base 14 type 1 font More... | |
const string | TIMES_BOLD = BaseFont.TIMES_BOLD |
This is a possible value of a base 14 type 1 font More... | |
const string | TIMES_ITALIC = BaseFont.TIMES_ITALIC |
This is a possible value of a base 14 type 1 font More... | |
const string | TIMES_BOLDITALIC = BaseFont.TIMES_BOLDITALIC |
This is a possible value of a base 14 type 1 font More... | |
const string | ZAPFDINGBATS = BaseFont.ZAPFDINGBATS |
This is a possible value of a base 14 type 1 font More... | |
Properties | |
static ICollection | RegisteredFonts [get] |
Gets a set of registered fontnames. More... | |
static ICollection | RegisteredFamilies [get] |
Gets a set of registered font families. More... | |
static string | DefaultEncoding [get] |
static bool | DefaultEmbedding [get] |
static FontFactoryImp | FontImp [get, set] |
If you are using True Type fonts, you can declare the paths of the different ttf- and ttc-files to this static class first and then create fonts in your code using one of the static getFont-method without having to enter a path as parameter.
|
static |
Checks whether the given font is contained within the object
fontname | the name of the font |
|
static |
|
static |
|
static |
Constructs a Font-object.
fontname | the name of the font |
size | the size of this font |
|
static |
Constructs a Font-object.
fontname | the name of the font |
size | the size of this font |
style | the style of this font |
|
static |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
|
static |
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 |
|
static |
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 |
|
static |
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 |
|
static |
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 |
|
static |
Constructs a Font-object.
fontname | the name of the font |
encoding | the encoding of the font |
size | the size of this font |
|
static |
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 |
|
static |
Checks if a certain font is registered.
fontname | the name of the font that has to be checked |
|
static |
|
static |
Register a ttf- or a ttc-file.
path | the path to a ttf- or ttc-file |
|
static |
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 |
|
static |
Register fonts in some probable directories. It usually works in Windows, Linux and Solaris.
|
static |
Register all the fonts in a directory.
dir | the directory |
|
static |
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.FontFactory.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 |
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
static |
This is a possible value of a base 14 type 1 font
|
staticget |
|
staticget |
|
staticgetset |
|
staticget |
Gets a set of registered font families.
a set of registered font families
|
staticget |
Gets a set of registered fontnames.
a set of registered fontnames