Difference: UsingCustomFonts (12 vs. 13)

Revision 132014-05-18 - KorryD

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

Defining Custom Fonts

Line: 26 to 26
 
  • Log into APPX and select Application Design for the app you where you will be using the custom font.
  • Select Named Resources and define a resource with:
Changed:
<
<
    • 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 font name (not .ttf file name) as the Location Data (Free 3 of 9 Regular, for example). Important: The font name is case sensitive, and it is cached in your session. If you need to correct the name, log off & on again so Appx will pick up the new name.
>
>
    • 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 font name (not the .ttf file name) as the Location Data (Free 3 of 9 Regular, for example). Important: The font name is case sensitive, and it 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:
    • Select the Control Type of Label
    • In Resource enter the application and name you set in the above step
    • Leave the Font blank
Changed:
<
<
    • Enter a name in the Name field (VENDOR BAR CODE in this example)
>
>
    • Enter a name in the Name field ( VENDOR BAR CODE in this example)
 
  • In the Pre-Display event point enter the following code:
      SET      --- WIDGET NAME                =      VENDOR BAR CODE
      READ     --- WIDGET                 HOLD 1 FT 0 BY WIDGET NAME

Line: 47 to 47
 
  • On your APPX server, open a command prompt or Run dialog box and run regedit (be very, very careful when editing the Windows registry as mistakes can possibly disable your computer)
  • Changed:
    <
    <
    • Navigate to HKEYS_LOCAL_MACHINE\SOFTWARE
    • Add new keys for PDFlib\PDFlib\7.0.3
    • Add a new string for searchpath
    • 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.
    >
    >
    • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE
    • Add new keys for PDFlib\PDFlib\7.0.3
    • Add a new string named searchpath
    • NOTE: on 64-bit Windows hosts (such as Windows 7), the key should be named HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PDFlib\PDFlib\7.0.3\searchpath
    • 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.
    • 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).
    >
    >
    • 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, free3of9.ttf ).
     
  • On your output process image define a field and set these GUI Attributes:
    • Select the Widget Control Type of Label
    • In the Resource field, enter the application and the name of the Named Resource that you set in the above step
    • Leave the Font blank
  • Changed:
    <
    <
    • Enter a name in the Name field (VENDOR BAR CODE in this example)
    >
    >
    • Enter a name in the Name field ( VENDOR BAR CODE in this example)
     
  • In the Pre-Display event point enter the following code:
  •       SET      --- WIDGET NAME                =      VENDOR BAR CODE
          READ     --- WIDGET                 HOLD 1 FT 0 BY WIDGET NAME
    T     SET      --- II                         =      10
    
    
    Line: 73 to 74
     
    • 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.
      • Set the Location Type to DESIGN FILE
    >
    >
      • 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:
      • Select the Control Type of Label
      • In Resource enter the application and name you set in the above step
      • Leave the Font blank
    Changed:
    <
    <
      • Enter a name in the Name field (VENDOR BAR CODE in this example)
    >
    >
      • Enter a name in the Name field ( VENDOR BAR CODE in this example)
     
    • In the Pre-Display event point enter the following code:
          SET      --- WIDGET NAME                =      VENDOR BAR CODE
          READ     --- WIDGET                 HOLD 1 FT 0 BY WIDGET NAME
    
    
     
    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