Difference: UsingCustomFonts (10 vs. 11)

Revision 112014-02-25 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXDeveloper"

Defining Custom Fonts

Line: 21 to 21
 
  • From the File menu, choose "Install New Font..."
  • Use the Add Fonts selector to find the font
  • Click on OK. This will install the font.
Added:
>
>
  • Reboot the server!! The font might not be recognized by the PDF printing software until after a reboot.
 After you have installed a font you must tell Appx the name of the font, not the name of the font file. For example, the "Free 3 of 9" font is distributed in a file named "free3of9.ttf", but the name of the font is actually "Free 3 of 9 Regular". (you can also use "Free 3 of 9"). To find the font name, open the font file (free3of9.ttf) with Font Viewer (the easiest way to do that is to simply double-click on the font file in the Windows file manager).

  • Log into APPX and select Application Design for the app you where you will be using the custom font.
Line: 52 to 53
 
  • Double-click searchpath and enter the path to the directory where you placed the font file. If the font is placed in the default font directory on Windows XP the entry would be c:\WINDOWS\Font. Multiple directories can be entered by separating them with a semicolon.
  • Exit regedit
  • You will also need to define a Named Resource for each font file with the following attributes:
  • Changed:
    <
    <
    • Select the ROLLOVER SELECTED state. If you are using Appx 5.2 or later, choose FONT instead.
    >
    >
    • Select the ROLLOVER SELECTED state. If you are using Appx 5.2 or later, choose FONT instead.
     
    • Set the Location Type to SERVER FILE
    • Enter the name of the font file without an extension in the Location Data field (free3of9, for example).
  • On your output process image define a field and set these GUI Attributes:
  • Line: 72 to 73
     
    • Place the font file (Free3of9.ttf) in the Resource directory for one of your applications.
    • Log into APPX and select Application Design for the app you where you will be using the custom font.
    • Select Name Resources and define a resource with:
    Changed:
    <
    <
      • Select the ROLLOVER SELECTED state. If you are using Appx 5.2 or later, choose FONT instead.
    >
    >
      • Select the ROLLOVER SELECTED state. If you are using Appx 5.2 or later, choose FONT instead.
     
      • Set the Location Type to DESIGN FILE
      • Enter the font file name without the extension as the Location Data (free3of9, for example). Remember that file names are case sensitive. The font name is cached in your session. If you need to correct the name, log off & on again so Appx will pick up the new name.
    • On your image define a field and set these GUI Attributes:
    Line: 99 to 100
     "enable" means that you want to enable logging
    "remove" means that you want PDFlib to remove any log file (of the same name) before starting
    The "classes" clause specifies the information you want to log (and the level of detail for each category)

    It would be helpful to include the log generated by this process when reporting PDF output issues.

    Added:
    >
    >
    If the log shows that PDFlib is unable to find your installed font, try rebooting the server.
     

    Comments:

    Read what other users have said about this page or add your own comments.

     
    This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
    Ideas, requests, problems regarding TWiki? Send feedback