public Font getFont(string fontName)
Gets a Font instance of the requested font
Contracts
in
{
assert (fontName.length > 0);
}
Parameters
fontName | a valid font name |
Returns
when getFont() succeeds, it returns the instance of a Font object. Otherwise, it returns null and error-handler is called.
public Font getFont(
string fontName,
string encodingName)
Gets a Font instance of the requested font
Contracts
in
{
assert (fontName.length > 0);
assert (encodingName.length > 0);
}
Parameters
fontName | a valid font name |
encodingName | a valid encoding name |
Returns
when getFont() succeeds, it returns the instance of a Font object. Otherwise, it returns null and error-handler is called