πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #709

Re: Font Scaling problem on rotation with JDK 1.4.1

#709
From: Alex Waller
Date: Fri, 28 Feb 2003 16:27
64 lines
4502 bytes
Hello,
    Thanks for the Agile2D lead. I'll look into that but this doesn't really
help my situation. That situation being that where I am working all applications
produced will be using the "standard" Sun Java2D and 1.4.1_01 on a Windows
platform. This is why I moved over (or at least I'm trying to move over) to
1.4.1 from the Borland 1.3.1 JDK that I originally developed on. To me it looks
like the graphics "performance" improvements Sun has put into the Java2D with
1.4.1 have "broken" what use to work nicely for me in 1.3.1. I was looking for
some possible work around. I've tried sending this mail to comp.lang.java.help
but I cann't seem to get my message posted there.

Nieva wrote:

> Hi,
>  yeaj seem to come from a FontRasterizer trouble...
>
> Obviously the MRJ use Quartz, which have its own native rasterizer
> (providing real and complete aliasing corection tnx to Quartz Extreme ).
>
> By the way did you tried with agile2D (OpenGL Renderer for Java2D) plugged ?
> http://www.cs.umd.edu/hcil/agile2d/
>
> -SLK
>
> "Alex Waller" <waller@fnal.gov> a οΏ½crit dans le message de news:
> 3E5E9A3D.579AEE93@fnal.gov...
> > Hello,
> >
> >     I realized that I posted this to the wrong newsgroup. It is better
> > suited for the  API newsgroup ... more specifally Graphics2D.
> >
> >     I'm using JBuilder 7 Personal Edition on a Windows 2K system. Up
> > until recently I've been using the JBuilder 1.3.1 JDK. I down loaded
> > Sun's JDK 1.4.1 and configured the JDK via the Tool menu. I've
> > discovered a big difference in the way rotated text gets scaled. I've
> > tried searching the Borland archives but have not found anything
> > pertaining to this particular problem with fonts.
> >     The 1.3.1 JDK seems to do a much better job at rendering rotated
> > text when one makes a window (or panel) long and narrow (the text looks
> > stretched but not ugly). I have some plotting code which can create
> > several (plot) panels on a window and this long, narrow plot can be
> > exactly my situation. The rotated text is the Y-axis label. The 1.4.1
> > JDK from Sun does not seem to scale very nicely at all. There sometimes
> > are large gaps between characters in words. Sometimes single characters
> > within words are much larger than others. Sometimes (depending on how
> > the panel gets sized) the letters turn out all blotchy. Really ugly.
> > I've also checked the Sun site and have not seen any mention of this
> > problem.
> >     Last evening I tried this on my Macintosh at home. Here we have
> > another non Sun 1.3.1 JDK but on a different platform. It worked pretty
> > much like the Borland 1.3.1 JDK on the Windows platform at work. (A nit
> > picking difference has to do with improper clipping of the text on the
> > Mac platform with my test program but I'm not worried right now about
> > that problem on the Mac.)
> >     Some extra added info that might help. It seems to be associated
> > with the screen rendering of fonts. A plot procedure that I have can
> > print several (plot) panels (JPanel) that are in a window to a single
> > page. The rotated fonts seem to come out OK on the printer under JDK
> > 1.4.1 (again they looked stretched out but not illegible).
> >     I include source code below which demonstrates this problem. After
> > the window is displayed make the window long and narrow and watch what
> > happens to the rotated (Y-axis) text.
> >     ... or this all work OK for others??
> >
Technical Details
Message-ID: <3E5F8DD5.1D8BEBC2@fnal.gov>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3E5E9A3D.579AEE93@fnal.gov> <3e5f6ec5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,cf44819e3d9d8f62
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-02-28 08:33:50 PST
Message-ID: <3E5F8DD5.1D8BEBC2@fnal.gov>
Date: Fri, 28 Feb 2003 10:27:01 -0600
From: Alex Waller <waller@fnal.gov>
Organization: Fermilab
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Font Scaling problem on rotation with JDK 1.4.1
References: <3E5E9A3D.579AEE93@fnal.gov> <3e5f6ec5@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 131.225.130.145
X-Trace: newsgroups.borland.com 1046449596 131.225.130.145 (28 Feb 2003 08:26:36 -0800)
Lines: 65
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail