[OpenJDK 2D-Dev] Font question

Roman Kennke roman.kennke at aicas.com
Wed Apr 16 21:14:50 UTC 2008


Hi there,

I have a problem related to fonts. As you might know, I'm hacking on the
OpenJDK challenge thing and try to implement an external toolkit/J2D
pipeline based on external and internal interfaces etc. Progress is
pretty good so far, as can be seen here:

http://kennke.org/blog/2008/04/16/caciocavallo-prototype/

However, there seems to be a problem related to fonts. To me, it looks
like they are not hinted properly. My TextRenderer implementation is
very simple and straightforward:

http://kennke.org/~hg/hgwebdir.cgi/caciocavallo-ng/file/943a30f0ce78/src/gnu/java/awt/peer/x/EscherTextRenderer.java

But I guess it is not really the problem, because the pixels are already
arriving badly there.

Is there another point that controls this behaviour? Something in
FontConfiguration or FontManager maybe? (BTW: I re-engineered the
FontManager stuff - and other - quite a bit, but if you point me to a
place in the current OpenJDK version, I could map it to mine).

For completeness, the code to the toolkit is here:
http://kennke.org/~hg/hgwebdir.cgi/caciocavallo-ng/
You'd also need Escher:
http://escher.sourceforge.net/hg/escher-trunk/
and our patches to the OpenJDK tree:
http://kennke.org/~hg/hgwebdir.cgi/openjdk-patches/

Cheers, Roman

-- 
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-0
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt




More information about the 2d-dev mailing list