PdfFontResource Constructor (String, String, String, String) |
Namespace: RadPdf.Integration
public PdfFontResource( string displayName, string cssName, string trueTypeName, string trueTypeUnicodeName )
If a displayName is used containing the words "Arial", "Courier", "Helvetica" or "Times", RAD PDF may automatically substitute one of the four default fonts if the default fonts are not removed using Remove(PdfFontResource) or Clear.
The cssName parameter can be a single client side font resource or several font names as a "fallback" system. If the client's browser does not support the first font, it tries the next font, in order from left to right. It is typically best to end with a generic family (e.g. sans-serif, serif, monospace). In most cases, font family names may be either quoted (e.g. 'Courier New', 'Courier'), or unquoted (e.g. Courier New, Courier). Font family names containing most punctuation characters and digits should be quoted or escaped. Meaning that the string literal "39 Tall Text" will not work in some browsers; instead "\'39 Tall Text\'" should be used.
The trueTypeName and trueTypeUnicodeName parameters must be the exact name of a TrueType font family installed on the server running RAD PDF. The font must have permissions allowing the font to be embedded.
new FontResource("Comic Sans", "Comic Sans, Arial, sans-serif", "Comic Sans MS", "Comic Sans MS");