PDF specifies 14 fonts that are guaranteed to be included with any PDF viewer. As a result, these fonts do not need to be embedded into a PDF document when it is created. The 14 core PDF fonts are accessed through the DPDF_Font Enumeration:
- DPDF_Font_TimesRoman - Times Roman (Times New Roman)
- DPDF_Font_TimesBold - Times (Times New Roman) Bold
- DPDF_Font_TimesItalic - Times (Times New Roman) Italic
- DPDF_Font_TimesBoldItalic - Times (Times New Roman) Bold Italic
- DPDF_Font_Helvetica - Helvetica (Arial)
- DPDF_Font_HelveticaBold - Helvetica (Arial) Bold
- DPDF_Font_HelveticaOblique - Helvetica (Arial) Oblique
- DPDF_Font_HelveticaBoldOblique - Helvetica (Arial) Bold Oblique
- DPDF_Font_Courier - Courier
- DPDF_Font_CourierBold - Courier Bold
- DPDF_Font_CourierOblique - Courier Oblique
- DPDF_Font_CourierBoldOblique - Courier Bold Oblique
- DPDF_Font_Symbol - Symbol
- DPDF_Font_ZapfDingbats - Zapf Dingbats
A core font can be used as follows:
[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}" -->
<%
' Use a core font in a text area Page Element.
Dim MyDocument
Dim MyPage
Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )
Set MyPage = MyDocument.AddPage()
MyPage.AddTextArea "Text", 0, 0, 200, 12, , DPDF_Font_TimesRoman, 12
MyDocument.DrawToWeb
Set MyPage = Nothing
Set MyDocument = Nothing
%>
NOTE: Helvetica is equivalent to the Arial TrueType font included on Windows systems, and Times is equivalent to the Times New Roman TrueType font included on Windows systems. It is much more efficient to use the equivalent core fonts whenever possible.
| See Also |
DPDF_Font Enumeration | Fonts And Text

