[OpenJDK 2D-Dev] Font rendering issue
Mario Torre
neugens at limasoftware.net
Fri May 28 15:46:29 UTC 2010
Il giorno mer, 19/05/2010 alle 14.34 -0700, Phil Race ha scritto:
Hi Phil,
> BTW Its not just ascent and descent, there's problems on the left and
> right sometimes
> as logical left and advance don't necessarily encompass all the pixels.
I noticed this as well, like this screenshot proves:
http://www.limasoftware.net/neugens/downloads/stuff/font2dbug/horiz.png
> What I'd like to have is a small test case that demonstrates exactly
> this so I can follow the chain.
> Mario sounds to have that, right down to specific font and size and
> using the same mnemonic
> positioning logic as swing.
I prepared my test case on the assumption that the bounding box was
wrong, but swing doesn't use the bounding box for rendering, so this
test case is not 100% correct.
Nevertheless, this made me look at what I believe it's the right thing,
because there I noticed that the leading was wrong.
I've uploaded a small test case, where only one font is tested, my
original test case let you select the font from a combo box list with
all the font installed, but because it had more swing logic, I felt like
it was too much distracting.
It's trivial to change this test to get a font name and size from the
command line, please tell me if you want me to do this.
Depending on the fonts on your system, you may see the same result or
not, so here is the image of what I get for reference:
http://www.limasoftware.net/neugens/downloads/stuff/font2dbug/bounds.png
On the right is OpenJDK.
Thanks,
Mario
--
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF
Proud GNU Classpath developer: http://www.classpath.org/
Read About us at: http://planet.classpath.org
OpenJDK: http://openjdk.java.net/projects/caciocavallo/
Please, support open standards:
http://endsoftpatents.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SmallFontTest.java
Type: text/x-java
Size: 2174 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20100528/1b6b2050/SmallFontTest.java>
More information about the 2d-dev
mailing list