Focal Point
[SOLVED] Adding Fonts to WebFOCUS Reporting

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8811006122

April 03, 2007, 02:32 PM
Tom F
[SOLVED] Adding Fonts to WebFOCUS Reporting
Does IBI allow sites to add fonts. Our company's recommendations is using AGarmond and Myriad Pro which I can't find anywhere in WebFOCUS

This message has been edited. Last edited by: Kerry,
April 03, 2007, 02:56 PM
Tom Flynn
Tom F,

From the IBI website:

quote:
How to add FONTs to FORMAT PDF output?
Case: 81131043 Product: WebFOCUS Release: 436 SP2 Primary OS: UNIX Date: 03/05/05
Case information refers to the Product, Release, and OS for which this question was asked. The solution may apply to other Products, Releases, and Operating Systems.

Problem:

How to add FONTs to FORMAT PDF output?


Solution:

The steps for adding additional PDF fonts are as follows:

1. Copy the test.pfb and the test.afm files to the //ibi/srv51/home/etc
directory. Please note that if using FTP, the PFB file is BINARY while the
AFM file is ASCII.

2. Modify the PDF.FTM file with the following:
font=Helvetica Condensed Light, style=normal, metricsfile=TEST AFM *,
fontfile=TEST PFB *,$

3. Within the stylesheet, the notation would be:
FONT='Helvetica Condensed Light'

An example would be as follows:
TABLE FILE CAR
PRINT CAR CAR
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=N1, FONT='Helvetica Condensed Light',$
TYPE=DATA, COLUMN=N2, FONT=HELVETICA,$
ENDSTYLE
END

For additional information on this, please see the Creating Reports With
WebFOCUS Language 5.2.0(dn4500513.0303) manual on page 8-10.



quote:

Instructions to setup various fonts can be found in Chapter 9 of the Creating
Reports with WebFOCUS Language, Version
7 Release 1 (DN4500695.0905) which can be retrieved using the URL:

http://documentation.informationbuilders.com/masterinde...rlang/wf71crlang.pdf



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
April 03, 2007, 02:57 PM
Lenny Ward
If you are talking about fonts for a PDF you can install post script fonts on your report server and make them available to WebFOCUS.

The font files go in \ibi\srv??\home\etc folder

You add the references to the fonts in PDF.FMP


(Production: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
(Test: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
April 03, 2007, 03:44 PM
Darin Lee
I also responded to a post for this a couple weeks back. To simplify things, I have added an app folder (which is included in the APP PATH) and store all of our custom fonts in this directory along with a copy of the PDF.FMP that has been modified to include references to our new fonts. That way I have access to them as application files instead of having to wade through system directories.
A couple things to remember - these must be Adobe PostScript Type1 fonts which include both .PFB and .AFM files. WF cannot use TrueType fonts, but there are utilities (such as ttf2pt1) to convert them to Type 1 fonts. These work for both .PS and .PDF output.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
April 03, 2007, 04:27 PM
Lenny Ward
Darin,

Adding a FOLDER to the APP PATH sounds like a good idea. Because I have them in a system folder my fonts and PDF.FMP file get wiped out every time I upgrade WebFOCUS.

Lenny


(Production: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
(Test: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
April 03, 2007, 04:40 PM
Darin Lee
Just need to make sure that when you upgrade, the font map files (PDF.FMP) is still valid for that version - but it hasn't changed for several versions now.
The manual says they need to be in the system folder, but somewhere along the way, I read that they only need to be in the EDAPATH, so this works good. We also keep our company logos and other images that we put on our reports in this same application folder


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
April 12, 2007, 01:42 PM
Tom F
Thanks for the ideas. At this time, we are not going to persue the process.
January 29, 2009, 10:17 AM
Ian Dalton
Is there any easy way of converting a TTF font to a Type 1 font. I found a utility on the net but it's difficult to use and quite old ?


_______________________
*** WebFOCUS 8.1.05M ***
January 29, 2009, 12:03 PM
Darin Lee
Easiest way I've found is the TTF2PT1 utility which may be the one to which you refer. It is a little difficult to figure out at first, but once you get the syntax right for creating your font files, it's the same every time and works pretty slick. I've been using the same tool for probably eight years now. Let me know if you need help figuring out the utility. I think I have a powerpoint on the process.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
January 30, 2009, 08:20 AM
Ian Dalton
Many thanks Darin. After a bit of fiddling I got it to work fine, but if you could email me the Powerpoint describing the process that would be great.


_______________________
*** WebFOCUS 8.1.05M ***