United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6694480 Two small inefficiencies in getting font strikes for transformed fonts.
JDK-6694480 : Two small inefficiencies in getting font strikes for transformed fonts.

Details
Type:
Bug
Submit Date:
2008-04-25
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports

Sub Tasks

Description
Whilst tracking down an un-related bug, two possible
improvements in strike creation were noticed.

(1) Font.getItalicAngle() internally passed its
font transform to the code that looks up the strike,
but this was interpreted by the called code as the
device transform - which the font does not have
access to.

So the strike creation code used the font transform
as both the font transform and the device transform,
and so when a font transform is present it would
likely lead to an additional strike being created.

This doesn't cause an API-observable problem, because
the code that returns the italic angle uses user
space values, with the device transform removed.

(2) The second inefficiency is that translation components,
which do not affect the actual glyphs or their metrics,
are being used in the case where there is a font transform.
To increase the likelihood of matches, we should remove
the translation from the strike look up.

                                    

Comments
EVALUATION

For (1) use identity
For (2) remove the translation from the strike.
                                     
2008-04-25



Hardware and Software, Engineered to Work Together