Bug 31213 - [PATCH] AFP Renderer
Summary: [PATCH] AFP Renderer
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.2
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 07:35 UTC by Pete Townsend
Modified: 2012-04-01 06:29 UTC (History)
0 users



Attachments
Zip file of AFP Renderer source code (93.45 KB, patch)
2004-09-14 07:36 UTC, Pete Townsend
Details | Diff
Zip source code file as binary file (93.45 KB, application/octet-stream)
2004-09-14 07:38 UTC, Pete Townsend
Details
Fix bug with 300 dpi fonts in the AFPFontReader (93.59 KB, application/octet-stream)
2004-09-14 22:35 UTC, Pete Townsend
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pete Townsend 2004-09-14 07:35:34 UTC
A donation of code for an AFP Renderer.
Comment 1 Pete Townsend 2004-09-14 07:36:50 UTC
Created attachment 12722 [details]
Zip file of AFP Renderer source code
Comment 2 Pete Townsend 2004-09-14 07:38:20 UTC
Created attachment 12723 [details]
Zip source code file as binary file
Comment 3 Pete Townsend 2004-09-14 07:39:15 UTC
AFP RENDERER READ ME
====================

In order to use the AFP Renderer please follow the instrauctions below:

1) The renderer uses the actual AFP (MODCA) font resources in order to determine
the font metrics, therefore you must have access to the font files. Note that it
is not possible to ship the renderer with these fonts as they are licenced by
IBM (or thrid party font providers). The font files required depend on the fonts
you are using but you will require the code page file and character set files.
The application assumes that a code page file has a .CDP suffix and character
set files have the suffix of the DPI (for example .240).

2) Define the fonts you are using in the afp-fonts.xml file an instance of this
XML document may contain definitions for an arbitrary number of fonts that are
available to the AFP renderer. Please see the example below which would require
the following files to be available in the classpath under the installed-fonts
path attribute "afp-font-resources":

	T1V10285.CDP (code page file)
	C0G21A00.240 (character set file)
	C0G31A00.240 (character set file)
	C0G41A00.240 (character set file)
	C0G51A00.240 (character set file)
	C0G21AB0.240 (character set file)
	C0G31AB0.240 (character set file)
	C0G41AB0.240 (character set file)
	C0G51AB0.240 (character set file)

<installed-fonts path="afp-font-resources">
	<afp-font id="any" codepage="T1V10285" encoding="Cp1146" dpi="240">
		<pointsize id="10">
			<characterset weight="normal" style="normal" font="C0G21A00"/>
			<characterset weight="normal" style="italic" font="C0G31A00"/>
			<characterset weight="bold" style="normal" font="C0G41A00"/>
			<characterset weight="bold" style="italic" font="C0G51A00"/>
		</pointsize>
		<pointsize id="11">
			<characterset weight="normal" style="normal" font="C0G21AA0"/>
			<characterset weight="normal" style="italic" font="C0G31AA0"/>
			<characterset weight="bold" style="normal" font="C0G41AA0"/>
			<characterset weight="bold" style="italic" font="C0G51AA0"/>
		</pointsize>
		<pointsize id="12">
			<characterset weight="normal" style="normal" font="C0G21AB0"/>
			<characterset weight="normal" style="italic" font="C0G31AB0"/>
			<characterset weight="bold" style="normal" font="C0G41AB0"/>
			<characterset weight="bold" style="italic" font="C0G51AB0"/>
		</pointsize>
	</afp-font>
</installed-fonts>

3) You can download a free AFP viewer from: 

http://www.barrsystems.com/product/afpviewer/default.asp

This view may also ship with some afp font resources so that you can use these
for testing, your own fonts to it's resources and so use it as a complete test
harness.
Comment 4 Pete Townsend 2004-09-14 22:35:12 UTC
Created attachment 12735 [details]
Fix bug with 300 dpi fonts in the AFPFontReader
Comment 5 Glen Mazza 2004-09-17 10:41:24 UTC
Thank you!  It will someday need to be converted into 1.0, but we will keep this
bug open for others to see and incorporate into their 0.20.x code.

Glen
Comment 6 Clay Leeds 2004-09-29 15:19:19 UTC
From: 	  Pete Townsend
Subject: 	AFP Renderer on Sourceforge
Date: 	September 29, 2004 2:54:06 AM PDT
To: 	  fop-dev@xml.apache.org

Dear fop-dev,

The AFP renderer has now been added to sourceforge http://afp-renderer.sourceforge.net and a 
release is available for download compatible with FOP 0.20.5, please could you close the patch on 
bugzilla 31213 (or direct them to the above link) so that people don't get hold of an out of date 
version. If Web Maestro Clay could add a link to the sourceforge site that would be great, and perhaps 
publicise to your user mailing list?

There is some basic documentation which I'll continue to enhance, and I plan to migrate to the latest 
release when available. At that point I'll be in contact again to see if you wish to take the renderer in 
house.

Regards, Pete.
Comment 7 Glenn Adams 2012-04-01 06:29:10 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed