History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FVG-302
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Donszelmann
Reporter: Steffen Greiffenberg
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
FreeHEP Vector Graphics

Fix for Font.getAttributes() in JDK 1.6

Created: 06/Feb/07 11:07 AM   Updated: 06/Feb/07 01:12 PM
Component/s: PS, SVG, PDF, EMF
Affects Version/s: 2.0
Fix Version/s: 2.1

File Attachments: 1. Text File 2007-02-07.txt (16 kb)



 Description  « Hide
The method Font.getAttributes() doesn't put all TextAttributes in the method result, Not clear why, but it seems to be an Sun JDK 1.6.0-b105 bug. I've inserted a method "getAttributes(font)" for the GenericTagHandler and FontUtilities classes. The redundancy is needed to avoid circular package dependency. This methods implement the old JDK 1.6 behaviour.

We should test all new Sun releases if we can remove the hack and use Font.getAttributes() instead.


Regards
Steffen

 All   Comments   Change History      Sort Order:
Mark Donszelmann - 06/Feb/07 01:12 PM
Applied patch. Revision 10516.

Changed FontUtilities to be in graphics2d, so there are no deps fom 2d to io.
Removed getAttributes from GenericTagHandler.