Re: [OpenJDK 2D-Dev] Fonts rendering in openjdk

2010-05-19 Thread Phil Race
On 5/17/2010 5:44 AM, Aekold Helbrass wrote: Attachments: snapshot11 - tiny java app with DejaVu Sans Mono, Plain, 12 size font. snapshot12 - the same font of size 10 in KWrite. I assume that size (and roundness) difference is because of 72 DPI in Java and 96 in KDE, but difference in antialiasin

Re: [OpenJDK 2D-Dev] Fonts rendering in openjdk

2010-05-17 Thread Phil Race
Expanding a little on Roman's comments : freetype is a font scaler or rasteriser. eg It takes a TrueType font and returns to its requester a bitmap or greymap image, or a path describing the glyph shape. Its role does not extend to rendering (ie putting the results of rasterisation on a surfac

Re: [OpenJDK 2D-Dev] Fonts rendering in openjdk

2010-05-17 Thread Phil Race
On 5/17/2010 5:44 AM, Aekold Helbrass wrote: Hi again! Thanx for you fast and informative responses! But now I am a bit confused. Roman tells that Freetype does the rendering, but there is significant difference between Qt apps and Java apps. See screenthos in attachments. I think you mis

Re: [OpenJDK 2D-Dev] Fonts rendering in openjdk

2010-05-17 Thread Aekold Helbrass
Phil, thanx for your replies. I'll start digging into freetype. Uploaded screenshots to picasa if you're interested: http://picasaweb.google.com/Helbrass/Screenshots?feat=directlink On 5/17/10, Phil Race wrote: > On 5/17/2010 5:44 AM, Aekold Helbrass wrote: >> Hi again! >> >> Thanx for you fast

Re: [OpenJDK 2D-Dev] Fonts rendering in openjdk

2010-05-17 Thread Aekold Helbrass
Hi again! Thanx for you fast and informative responses! But now I am a bit confused. Roman tells that Freetype does the rendering, but there is significant difference between Qt apps and Java apps. See screenthos in attachments. I found native code that works with freetype and changed glyph load

Re: [OpenJDK 2D-Dev] Fonts rendering in openjdk

2010-05-15 Thread Roman Kennke
Hello, > I want to hack into the sources of font rendering of openjdk, and I'm > a bit confused now. So help me please understand how it works. Links > are appreciated too. > > I read that freetype is used for fonts scaling, but after debugging it > looks like freetype is used only to get font me

[OpenJDK 2D-Dev] Fonts rendering in openjdk

2010-05-15 Thread Aekold Helbrass
Good day All! I want to hack into the sources of font rendering of openjdk, and I'm a bit confused now. So help me please understand how it works. Links are appreciated too. I read that freetype is used for fonts scaling, but after debugging it looks like freetype is used only to get font metrics