Performance Considerations | Fonts And Text

Type 1 fonts can be used by using AddType1Font method of the Document Object, specifying the path to the metrics file (.PFM or .AFM) and font file (.PFB) in the constructor. You can then use that font anywhere a font is specified, such as AddLabel and AddTextArea methods of Page or Container Page Elements like AreaGroup.

[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}" -->
<%
    ' Create a Type 1 font.
    Dim MyDocument
    Dim MyPage
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )
    Set MyPage = MyDocument.AddPage()
    Dim MyType1Font
    MyType1Font = MyDocument.AddType1Font( "C:\SY______.PFM", "C:\SY______.PFB" )
    ' Use the Type 1 font in a text area Page Element.
    MyPage.AddTextArea "Text", 0, 0, 200, 12, , MyType1Font, 12 
    MyDocument.DrawToWeb
    Set MyPage = Nothing
    Set MyDocument = Nothing
%>

Type 1 Font Reuse

When using the same Type 1 font many times within the same document, it is important to create the Type1Font object only once, and use it wherever needed. Doing this will prevent the font from being embedded in the document multiple times.

When a Type1Font object is initialized, resources are required to parse the font. For fonts that are to be used across multiple documents, the Type1Font class can be initialized and set to a static (Shared in VB) member variable. This static member variable can then be used anywhere the font is required.

See Also 

Performance Considerations | Fonts And Text