Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 9 to 9 | ||||||||
Overview | ||||||||
Changed: | ||||||||
< < | When designing graphical images in APPX there are 9 fonts pre-configured with the Desktop Client that are part of the Java installation within the client. In order to use custom fonts not included with the installation, such as bar codes, there are a few steps that must be taken. Follow these steps and you should be able to make use of custom fonts on your PDF outputs. Again, not all custom fonts will work and you may have to try more that one font to find one that does work | |||||||
> > | When designing graphical images in APPX there are 9 fonts pre-configured with the Desktop Client that are part of the Java installation within the client. In order to use custom fonts not included with the installation, such as bar codes, there are a few steps that must be taken. Follow these steps and you should be able to make use of custom fonts on your PDF outputs. Again, not all custom fonts will work and you may have to try more that one font to find one that does work. | |||||||
Custom Fonts on a Windows Server | ||||||||
Added: | ||||||||
> > | There are multiple ways to install and use a font on a Windows Server
Install as Windows Font | |||||||
The easiest way to include a custom font is to install the font on your Windows server. The steps to install the font will be different depending on the desktop OS release. The steps below are for Windows XP Professional.
| ||||||||
Line: 22 to 25 | ||||||||
| ||||||||
Added: | ||||||||
> > | On more recent versions of Windows, you may be able to simply double click the font file. This will display the font, and there will be an 'Install' button to install the font. | |||||||
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).
| ||||||||
Line: 29 to 34 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
SET --- WIDGET NAME = VENDOR BAR CODE READ --- WIDGET HOLD 1 FT 0 BY WIDGET NAME T SET --- II = 10 T SET --- WIDGET FONT = --- II T REWRITE --- WIDGET FAIL 0The font will be embedded in the PDF document so the custom font should be viewable and printable on all systems whether the font is installed on the system or not. | |||||||
> > | Install Font in a Folder | |||||||
Changed: | ||||||||
< < | We have found that not all fonts work on Windows using the above approach. In that case, you can try an alternative approach which will allow APPX to directly access the font file in the directory where it is located. You will need to add an entry to the Windows registry which will provide a search path that APPX will use to find your font files. The following steps should be used to add the necessary registry entry: | |||||||
> > | Alternatively, you can install the font in a folder of your choosing, then tell the PDF printing software where to find the font. You will need to add an entry to the Windows registry which will provide a search path that APPX will use to find your font files. You can download one of the attached files at the bottom of the page (either 32 bit or 64 bit depending on your Windows version), edit the path and then simply double click the file to install the change in your registry. | |||||||
Changed: | ||||||||
< < | ||||||||
> > | You can also use the following steps to manually change the registry: | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | 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: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | You will also need to define a Named Resource for each font file with the following attributes: | |||||||
| ||||||||
Changed: | ||||||||
< < |
SET --- WIDGET NAME = VENDOR BAR CODE READ --- WIDGET HOLD 1 FT 0 BY WIDGET NAME T SET --- II = 10 T SET --- WIDGET FONT = --- II T REWRITE --- WIDGET FAIL 0 | |||||||
> > |
Install Font in a Folder (Method 2)An alternative mechanism is to create a PDFlib resource file that defines the searchpath. Here is a sample file:PS-Resources-1.0 SearchPath C:\WINDOWS\Font C:\MyCustomFonts .The file must begin with a line that says: PS-Resources-1.0 Then, each section begins with a resource name (in this case, SearchPath), followed by the values assigned to that resource (C:\WINDOWS\Font and C:\MyCustomFonts), and the section is terminated with a line containing only a period. The format of the resource file (along with a list of the resources you can define) is described in section 3.1.3 here: http://www.pdflib.com/fileadmin/pdflib/pdf/manuals/PDFlib-7-tutorial.pdf According to that document the resource file is read from the following search path: $PDFLIBRESOURCEFILE (or %PDFLIBRESOURCE% on Windows) $PWD/upr $PWD/pdflib.upr $PWD is the current-working-directory of the Appx process: since that can be different for each user, we would recommend using the PDFLIBRESOURCEFILE environment variable (which you can set in the appx.env file). | |||||||
Custom Fonts on a Unix or Linux ServerFollow these instructions to install a custom font. This should also work in APPX 4.2.x. This example will refer to the Free3of9.ttf bar code font. | ||||||||
Line: 77 to 91 | ||||||||
| ||||||||
Added: | ||||||||
> > |
Using the Font in Appx | |||||||
| ||||||||
Line: 111 to 128 | ||||||||
-- GaryRogers - 2010-06-01 | ||||||||
Added: | ||||||||
> > |
|