Difference: UsingCustomFonts (18 vs. 19)

Revision 192017-06-28 - AlKalter

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

Defining Custom Fonts

Line: 31 to 31
 
  • 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.
>
>
    • Select the FONT state. If you are using Appx 5.1 or older, choose ROLLOVER SELECTED 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 cached in your session. If you need to correct the name, log off & on again so Appx will pick up the new name.

Install Font in a Folder

Line: 47 to 47
 
  • Double-click searchpath and enter the path to the directory where you placed the font file. 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 FONT state. If you are using Appx 5.1 or earlier, choose ROLLOVER SELECTED instead.
 
  • Set the Location Type to SERVER FILE
  • Enter the name of the font file without an extension in the Location Data field. Important: 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.

Line: 57 to 57
 
  • 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.
Changed:
<
<
  • Select Name Resources and define a resource with:
    • Select the ROLLOVER SELECTED state. If you are using Appx 5.2 or later, choose FONT instead.
>
>
  • Select Named Resources and define a resource with:
    • Select the FONT state. If you are using Appx 5.1 or earlier, choose ROLLOVER SELECTED 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.
Changed:
<
<

Install Font in a Folder (Platform Independant)

>
>

Install Font in a Folder (Platform Independent)

  An alternative mechanism is to create a PDFlib resource file that defines the searchpath. You can use this approach on either Windows or Linux. Here is a sample file:
Line: 87 to 87
 This file can be placed anywhere you like, and you must define the environment variable PDFLIBRESOURCEFILE to point at that file. We recommend setting the environment variable in the appx.env file.

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 FONT state. If you are using Appx 5.1 or earlier, choose ROLLOVER SELECTED instead.
 
  • Set the Location Type to SERVER FILE
  • Enter the name of the font file without an extension in the Location Data field. Important: The font name is case sensitive on Linux platforms, 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.

Using the Font in Appx

 
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