You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/07/04 14:20:47 UTC
DO NOT REPLY [Bug 45342] New: AFP Renderer does not properly handle
AFP fonts with relative metric
https://issues.apache.org/bugzilla/show_bug.cgi?id=45342
Summary: AFP Renderer does not properly handle AFP fonts with
relative metric
Product: Fop
Version: 0.94
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: styryx@seznam.cz
Created an attachment (id=22215)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22215)
changed AFPFontReader.java
I've tried to use AFP renderer along with AFP fonts with relative metrics,
which results in wrong alignment of text. For both Outline fonts (scalable) and
Raster fonts.
After some debugging I've updated the
org.apache.fop.render.afp.fonts.AFPFontReader.java file to process these fonts
correctly, I attach the updated Java file below. (the main problem is, that AFP
fonts have two measurement unit setting, which should be both considered for
fonts with relative metric - metric resolution and shape resolution; and the
factor to be applied to measurement values depends on the pointsize in some
cases)
In the source file there is also repaired one other problem - there was bug,
that the font reader did not process the last font orientation, it is repaired
in the method processFontPosition().
The changes were made on the source file from FOP version 0.95.beta.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45342] [PATCH] AFP Renderer does not properly
handle AFP fonts with relative metric
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45342
Jeremias Maerki <je...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Keywords| |PatchAvailable
Summary|AFP Renderer does not |[PATCH] AFP Renderer does
|properly handle AFP fonts |not properly handle AFP
|with relative metric |fonts with relative metric
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45342] [PATCH] AFP Renderer does not properly
handle AFP fonts with relative metric
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45342
Jeremias Maerki <je...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Jeremias Maerki <je...@apache.org> 2009-02-09 07:37:03 PST ---
Emil, thanks a lot for your patch. Apologies for not processing it earlier.
I've only noticed it recently. I've applied it with modifications:
http://svn.apache.org/viewvc?rev=742564&view=rev
The values your patch produced were too big by factors of more than 1000. I've
had to change some of that code. I've tested now with various fonts (with fixed
and relative metrics) and I'm happy with the results. Please verify also on
your side. Maybe you have different fonts that behave differently. If that is
so, we may have to take a closer look. Let me know if there are any remaining
problems.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45342] AFP Renderer does not properly handle AFP
fonts with relative metric
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45342
Emil Maskovsky <st...@seznam.cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22215|0 |1
is obsolete| |
--- Comment #1 from Emil Maskovsky <st...@seznam.cz> 2008-11-28 03:15:43 PST ---
Created an attachment (id=22958)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22958)
Patch against current trunk
I've created patch against current trunk. I tested it to work correctly with
fonts with absolute and relative metrics, outline and raster AFP fonts.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45342] [PATCH] AFP Renderer does not properly
handle AFP fonts with relative metric
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45342
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #3 from Glenn Adams <gl...@skynav.com> 2012-04-01 06:38:13 UTC ---
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45342] AFP Renderer does not properly handle AFP
fonts with relative metric
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45342
Emil Maskovsky <st...@seznam.cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|general |fonts
Version|0.94 |all
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.