Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 123 to 123 | ||||||||
Read what other users have said about this page or add your own comments.
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | Here is a sample. APPX 5.4.5 on Linux.
-- Joe Ortagus - 2017-07-13[appx@rhel7server data]$ [appx@rhel7server data]$ grep pdflib /usr/local/appx/data/appx.env PDFLIBRESOURCEFILE=/usr/local/appx/data/pdflib.upr PDFLIBLOGGING=filename=/tmp/pdflibdebug.txt enable remove classes={filesearch=9 api=2 resource=9} [appx@rhel7server data]$ [appx@rhel7server data]$ cat /usr/local/appx/data/pdflib.upr PS-Resources-1.0 . SearchPath /usr/local/appx/data/fonts . FontOutline 3 of 9 Barcode=3of9_new.ttf Free 3 of 9 Extended=fre3of9x.ttf Free 3 of 9=free3of9.ttf IDAutomationHC39M=hc39m.ttf . [appx@rhel7server data]$ [appx@rhel7server data]$ ls -1 /usr/local/appx/data/fonts 3of9_new.ttf fre3of9x.ttf free3of9.ttf hc39m.ttf [appx@rhel7server data]$ | |||||||
-- GaryRogers - 2010-06-01
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Defining Custom FontsHow to use custom fonts in PDF outputs |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 13 to 13 | ||||||||
Custom Fonts on a Windows Server | ||||||||
Changed: | ||||||||
< < | There are multiple ways to install and use a font on a Windows Server | |||||||
> > | There are two ways to install and use a font on a Windows Server | |||||||
Install as Windows FontThe 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: 33 to 33 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Install Font in a FolderAlternatively, 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. | ||||||||
Line: 49 to 49 | ||||||||
You will also need to define a Named Resource for each font file with the following attributes:
| ||||||||
Changed: | ||||||||
< < |
Install Font in a Folder (Method 2) | |||||||
> > |
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.
Install Font in a Folder (Platform Independant) | |||||||
Changed: | ||||||||
< < | An alternative mechanism is to create a PDFlib resource file that defines the searchpath. Here is a sample file: | |||||||
> > | 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: | |||||||
Changed: | ||||||||
< < | PS-Resources-1.0 | |||||||
> > | PS-Resources-1.0 | |||||||
Changed: | ||||||||
< < | SearchPath | |||||||
> > | . | |||||||
Changed: | ||||||||
< < | C:\WINDOWS\Font | |||||||
> > | SearchPath | |||||||
Changed: | ||||||||
< < | C:\MyCustomFonts | |||||||
> > | C:\MyCustomFonts | |||||||
Changed: | ||||||||
< < | . | |||||||
> > | . | |||||||
Changed: | ||||||||
< < | The file must begin with a line that says: PS-Resources-1.0 | |||||||
> > | The file must begin with a line that says: PS-Resources-1.0, followed by line containing a single period. | |||||||
Changed: | ||||||||
< < | 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. | |||||||
> > | Then, each section begins with a resource name (in this case, SearchPath), followed by the values assigned to that resource (For example, C:\MyCustomFonts for Windows platforms, or /tmp/myfonts for Linux), 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 | ||||||||
Changed: | ||||||||
< < | According to that document the resource file is read from the following search path:
$PDFLIBRESOURCEFILE (or %PDFLIBRESOURCEFILE% 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.
| |||||||
> > | 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. | |||||||
Added: | ||||||||
> > | You will also need to define a Named Resource for each font file with the following attributes:
| |||||||
Using the Font in Appx
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 75 to 75 | ||||||||
According to that document the resource file is read from the following search path: | ||||||||
Changed: | ||||||||
< < | $PDFLIBRESOURCEFILE (or %PDFLIBRESOURCE% on Windows) | |||||||
> > | $PDFLIBRESOURCEFILE (or %PDFLIBRESOURCEFILE% on Windows) | |||||||
$PWD/upr | ||||||||
Line: 113 to 113 | ||||||||
If you are having trouble getting a custom font to print you can gather debugging information by setting the following environment variable prior to starting an APPX session: | ||||||||
Changed: | ||||||||
< < | Example; copy this to appx.env (windows) before invoking Appx; | |||||||
> > | Windows example; copy this to appx.env before invoking Appx; | |||||||
PDFLIBLOGGING=filename=c:\pdf.log enable remove classes={filesearch=9 api=2 resource=9} |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom FontsHow to use custom fonts in PDF outputs | ||||||||
Changed: | ||||||||
< < | Disclaimer: While these steps work in most cases this implementation of custom fonts is not supported in APPX (not in 4.x or 5.x). Not all True Type fonts will work with PDF output. You may need to try different fonts to find one that works. | |||||||
> > | Disclaimer: While these steps work in most cases this implementation of custom fonts is not supported in APPX (not in 4.x or 5.x). Appx can use vector-based TrueType fonts, but not those based on bitmaps. | |||||||
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, Appx can use vector-based TrueType fonts, but not those based on bitmaps. | |||||||
Custom Fonts on a Windows Server | ||||||||
Line: 65 to 65 | ||||||||
C:\MyCustomFonts . | ||||||||
Changed: | ||||||||
< < | The file must begin with a line that says: PS-Resources-1.0 | |||||||
> > | 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. |
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: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 26 to 26 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
SET --- WIDGET NAME = VENDOR BAR CODE READ --- WIDGET HOLD 1 FT 0 BY WIDGET NAME | ||||||||
Line: 47 to 47 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
SET --- WIDGET NAME = VENDOR BAR CODE READ --- WIDGET HOLD 1 FT 0 BY WIDGET NAME T SET --- II = 10 | ||||||||
Line: 73 to 74 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
SET --- WIDGET NAME = VENDOR BAR CODE READ --- WIDGET HOLD 1 FT 0 BY WIDGET NAME |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 25 to 25 | ||||||||
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).
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 21 to 21 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
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: 52 to 53 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 72 to 73 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
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. |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 25 to 25 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 52 to 52 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 72 to 72 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 92 to 92 | ||||||||
If you are having trouble getting a custom font to print you can gather debugging information by setting the following environment variable prior to starting an APPX session: | ||||||||
Changed: | ||||||||
< < | set PDFLIBLOGGING=filename=c:\pdf.log enable remove classes={filesearch=9 api=2 resource=9} | |||||||
> > | Example; copy this to appx.env (windows) before invoking Appx; PDFLIBLOGGING=filename=c:\pdf.log enable remove classes={filesearch=9 api=2 resource=9} | |||||||
"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) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 21 to 21 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
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). | |||||||
> > | 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: 97 to 97 | ||||||||
"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: | ||||||||
> > | Comments:Read what other users have said about this page or add your own comments. | |||||||
-- GaryRogers - 2010-06-01 \ No newline at end of file |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 74 to 74 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 90 to 90 | ||||||||
The 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.
PDF Debug Logging | ||||||||
Changed: | ||||||||
< < | If you are having trouble getting a custom font to print you can gather debugging information by setting the following environmment variable prior to starting an APPX session: | |||||||
> > | If you are having trouble getting a custom font to print you can gather debugging information by setting the following environment variable prior to starting an APPX session: | |||||||
set PDFLIBLOGGING=filename=c:\pdf.log enable remove classes={filesearch=9 api=2 resource=9}
"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) | ||||||||
Changed: | ||||||||
< < | It would be helpful to include the log generated by this processs when reporting PDF output issues. | |||||||
> > | It would be helpful to include the log generated by this process when reporting PDF output issues. | |||||||
-- GaryRogers - 2010-06-01 |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 15 to 15 | ||||||||
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. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 42 to 42 | ||||||||
T REWRITE --- WIDGET FAIL 0 The 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. | ||||||||
Deleted: | ||||||||
< < | Alternative Windows Font Installation | |||||||
Changed: | ||||||||
< < | If you followed the instructions above and the font failed to print this alternative set if installation instructions may work.
| |||||||
> > | 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:
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
SET --- WIDGET NAME = VENDOR BAR CODE | |||||||
> > |
SET --- WIDGET NAME = VENDOR BAR CODE | |||||||
READ --- WIDGET HOLD 1 FT 0 BY WIDGET NAME | ||||||||
Changed: | ||||||||
< < | T SET --- II = 11 | |||||||
> > | T SET --- II = 10 | |||||||
T SET --- WIDGET FONT = --- II T REWRITE --- WIDGET FAIL 0 | ||||||||
Deleted: | ||||||||
< < | Please note that using this approach the value --- II is set to 11 rather than 10. | |||||||
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: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 15 to 15 | ||||||||
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. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 29 to 29 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 42 to 42 | ||||||||
T REWRITE --- WIDGET FAIL 0 The 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. | ||||||||
Added: | ||||||||
> > | Alternative Windows Font InstallationIf you followed the instructions above and the font failed to print this alternative set if installation instructions may work.
SET --- WIDGET NAME = VENDOR BAR CODE READ --- WIDGET HOLD 1 FT 0 BY WIDGET NAME T SET --- II = 11 T SET --- WIDGET FONT = --- II T REWRITE --- WIDGET FAIL 0Please note that using this approach the value --- II is set to 11 rather than 10. | |||||||
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: 52 to 77 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 65 to 90 | ||||||||
T REWRITE --- WIDGET FAIL 0 The 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. | ||||||||
Added: | ||||||||
> > | PDF Debug LoggingIf you are having trouble getting a custom font to print you can gather debugging information by setting the following environmment variable prior to starting an APPX session: set PDFLIBLOGGING=filename=c:\pdf.log enable remove classes={filesearch=9 api=2 resource=9} "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 processs when reporting PDF output issues. | |||||||
-- GaryRogers - 2010-06-01 \ No newline at end of file |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 51 to 51 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom Fonts | ||||||||
Line: 28 to 28 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Defining Custom FontsHow to use custom fonts in PDF outputs | ||||||||
Changed: | ||||||||
< < | Disclaimer: While these steps work in most cases this implimentation of custom fonts is not supported in APPX (not in 4.x or 5.x). Not all True Type fonts will work with PDF output. You may need to try different fonts to find one that works. | |||||||
> > | Disclaimer: While these steps work in most cases this implementation of custom fonts is not supported in APPX (not in 4.x or 5.x). Not all True Type fonts will work with PDF output. You may need to try different fonts to find one that works. | |||||||
Overview |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Defining Custom FontsHow to use custom fonts in PDF outputs Disclaimer: While these steps work in most cases this implimentation of custom fonts is not supported in APPX (not in 4.x or 5.x). Not all True Type fonts will work with PDF output. You may need to try different fonts to find one that works.OverviewWhen 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 workCustom Fonts on a Windows ServerThe 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.
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).
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. 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.
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. -- GaryRogers - 2010-06-01 |