Hi Phil,

On 08/05/2010 05:47 PM, Phil Race wrote:
There's two public API changes in here and you can get away without
either of them.
So I believe you wouldn't need the changes in SunFontManager,
FontUIResource, or Font.java

Eg in PangoFonts you can write something like :

Font f = new Font(family, style, ((int)dsize+0.5));
f = f.deriveFont((float)dsize); // already public API
FontUIResource fuir = new FontUIResource(f); // already public API

And something similar would need to be done in FontUtilities

The two extra font objects that are created really will not matter as a
Font
is a small object and its lazily mapped to a real font.

-phil.

Thank you very much for your feedback.

Here is an updated webrev that does things the way you suggested:
http://cr.openjdk.java.net/~omajid/webrevs/gtk-floating-point-font-size-support/webrev.01/

Thanks,
Omair

Reply via email to