[OpenJDK 2D-Dev] Freetype font rasteriser

Igor Nekrestyanov Igor.Nekrestyanov at Sun.COM
Wed Aug 8 16:13:25 UTC 2007


Hi,
>> Just wondering if anyone has any comments/bugs/patches etc on the 
>> freetype replacement
>> for the encumbered font rasteriser that we finally put out last week?
>
> I haven't had a chance to go over it in much detail (I've been busy 
> with other non-openjdk work), but the only bug I've found so far is in 
> positioning rotated text.  The jfig editor 
> (http://tams-www.informatik.uni-hamburg.de/applets/jfig/) is a good 
> test; with the new font code, glyphs are spaced too tightly and the 
> baseline is uneven when a rotation is set.
Thanks for reporting this.

Another known problem is usage of embedded bitmaps in the LCD mode.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6587560

It will be good to file bugs for observed problems.
Until OpenJDK get own bug database - use 
http://bugs.sun.com/bugdatabase/ to report them.

And we also looking for fixes :)
> I'm also curious as to why getGlyphOutline retrieves a Freetype 
> outline and iterates though it "manually", rather than defining simple 
> callback functions and letting Freetype do the work via 
> FT_Outline_Decompose - but functionally it should be the same.
True. Initially i had some subtle reasons to do this and they probably 
not applicable anymore (because i can not recall them).
I had plan to rewrite this but never got to this. Priority was to 
refactor architecture without breaking everything and
because of this freetype glue code did not enough attention.

Feel free to suggest (or even better submit) improvements.
Now it is much easier to accept contributions for this part of code.

-igor




More information about the 2d-dev mailing list