Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Phil Race
Roman Kennke wrote: Hi Igor, What style of font is it? Is it plain or bold? I think the font itself is plain. I guess Swing tries to have a bold one. I tried using FreeSansBold.ttf instead, and it looks similar crappy, only bolder ;-) How prototype looks on your system running your clean

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Phil Race
Yeah .. Swing is turning it on by picking up the desktop settings. See http://java.sun.com/javase/6/docs/api/java/awt/Toolkit.html#getDesktopProperty(java.lang.String) and the link to "AWT Desktop Properties". -phil. Roman Kennke wrote: Hi Phil, Anti-aliasing is on by default for the X11

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Roman Kennke
Hi Phil, > > Anti-aliasing is on by default for the X11 pipeline, right? I wonder, > > because I find this code in X11SurfaceData.validatePipe(): > > No. Its not on anywhere by default. Oh? So it must be swing turning it on, because when I startup a Swing app, I clearly get AA text. But not with

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Phil Race
Roman, Roman Kennke wrote: Anti-aliasing is on by default for the X11 pipeline, right? I wonder, because I find this code in X11SurfaceData.validatePipe(): No. Its not on anywhere by default. The Java2D default is OFF. And turning AA on by default for X11 kills remote X11, but that's another c

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Roman Kennke
Hi Phil, > > http://kennke.org/~roman/swingdemo.png > > > > This might be using different fonts, I'm not sure which fonts are used > > by default for DIALOG, etc. But OTOH, I don't have many fonts on my > > system and none of them looks good on the cacio pipeline. > > On Ubuntu its using DejaVu

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Roman Kennke
Hi Igor, > Can you prototype run Font2DTest? > Will be interesting to compare to openjdk in for couple of different > fonts/sizes and rasterization modes. Ok, this is interesting. I can now run Font2DTest, and you know what? It looks just fine. At least with plain fonts: http://kennke.org/~roma

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Phil Race
Roman, Roman Kennke wrote: http://kennke.org/~roman/swingdemo.png This might be using different fonts, I'm not sure which fonts are used by default for DIALOG, etc. But OTOH, I don't have many fonts on my system and none of them looks good on the cacio pipeline. On Ubuntu its using DejaVu Sa

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Roman Kennke
Hi Igor, > What style of font is it? Is it plain or bold? I think the font itself is plain. I guess Swing tries to have a bold one. I tried using FreeSansBold.ttf instead, and it looks similar crappy, only bolder ;-) > How prototype looks on your system running your clean openjdk build? You mea

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Igor Nekrestyanov
Looking at your screenshot again i started to doubt it is because of outlines - i do not see any dropouts and these are common if geometric code does scan conversion. What style of font is it? Is it plain or bold? We do change processing logic for styled text (request outline, style it and then

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Roman Kennke
Hi Igor, > >>> 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: > >>> > >>> > >> The only control for font hinting is how the rasteriser - freetype - is

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Igor Nekrestyanov
Hi Roman, 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: The only control for font hinting is how the rasteriser - freetype - is compiled. If your copy of libf

Re: [OpenJDK 2D-Dev] Font question

2008-04-17 Thread Roman Kennke
Hi Phil, > > 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.

Re: [OpenJDK 2D-Dev] Font question

2008-04-16 Thread Phil Race
Roman, Roman Kennke wrote: 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:/