Re: Font display problem on Linux

From: Josh Stern (josh_at_neurovia.umn.edu)
Date: 10/27/04


Date: Wed, 27 Oct 2004 14:38:02 -0500

On Wed, 27 Oct 2004 14:09:35 -0400, Joe Beanfish wrote:

> On Tue, 26 Oct 2004 21:56:12 -0500, Last2Know <grokkalot@yahoo.com> wrote:
>
>> On Tue, 26 Oct 2004 13:19:06 -0400, Joe Beanfish wrote:
>>
>>> On Mon, 25 Oct 2004 22:40:39 -0500, Last2Know <grokkalot@yahoo.com> wrote:
>>>
>>>> On Mon, 25 Oct 2004 13:46:05 -0400, Joe Beanfish wrote:
>>>>
>>>>> On Fri, 22 Oct 2004 19:20:36 +0100, Roger Leigh <${roger}@invalid.whinlatter.uklinux.net.invalid> wrote:
>>>>>
>>>>>> sks@skscci-dot-com.no-spam.invalid (skscci) writes:
>>>>>>
>>>>>>> I have developed a jbuilder application on a Windows 2000 platform
>>>>>>> and it works and displays fine.
>>>>>>>
>>>>>>> I created a jar file and copied it to my Linux system, and when I
>>>>>>> run the application, it works fine, but it doesn't display properly.
>>>>>>>
>>>>>>> The fonts are too large and many of the labels are truncated.
>>>>>>
>>>>>> It's probably your problem: have you hardcoded widget sizes and
>>>>>> positions? If written properly, your interface should resize to
>>>>>> accomodate text of any size.
>>>>>
>>>>> Unfortunately, I don't think I've seen even one "properly written"
>>>>> java app on the web. They all render fonts in bad to useless ways.
>>>>> Including the Java admin tool for my Linux based NAS appliance.
>>>>
>>>> A lot of Java GUI stuff is written in a way that doesn't look
>>>> decent unless the fonts ultimately get mapped to truetype fonts
>>>> or equivalent. These have to be installed specially for a
>>>> each JVM installation, because all the good ones are proprietary
>>>> and can't ship for free with the JVM. Or at least this was
>>>> situation a few years ago.
>>>
>>> I have lots of common true-type fonts installed including all the
>>> ones that come with Windows. Doesn't help much.
>>>
>>> And for Big Brother, Yes I have the right to those Windows supplied
>>> fonts. They're on the other partition with a purchased copy of Windows.
>>
>> So when a Java program running on your JVM requests, say, the
>> "sans serif" font you have that mapped to something like the
>> Arial truetype font, correct?
>
> I wasted a few hours futzing with the font properties file.
> Did little good. In the odd case where I could get at least
> one part of an app looking right some other part or some other
> app would be worse. And it was pure trial and error to even
> figure out what fonts the app might be asking for.

It's difficult to get right without being an expert
or copying the results of somebody else's fiddling.
I tried to find the web page I last referred to for
this but it is no longer hosted.
You might want to try the j2sdk1.4 jvm from sun,
with and without the font.properties file present
to see if it helps and whether the browser or other
app lets you select better looking fonts in each case.
 
>>> Another fun problem is my credit card provider. They have a little
>>> java thingy for getting temporary numbers. It displays all fonts
>>> and widgets ok (they're probably all builtin or bitmaps). But it
>>> insists on resizing the window with every operation. The size is
>>> not even remotely correct. I have to keep resizing the window.
>>> Java the portable programming environment. What a laugh.
>>
>> A badly behaved app can be written in any language.
>
> Oh so true.
>
>> Though overall I agree that the GUI libs are the worst
>> aspect of Java.
>
> Yeah, basically puts Java gui programs in the class of windows apps.
> Works on the developer's machine. Anywhere else is pure luck unless
> they spend 6 months trying it everywhere.

The overall look and performance of SWING is pretty
bad too. If one doesn't care about portability then
the Java bindings for Qt are pretty nice, IMO.



Relevant Pages

  • Re: Java 1.5: Lucida Sans Typewriter font missing for standalone app
    ... Perhaps the solution for me is to purchase this font with a license ... that allows me to redistribute it with my app? ... suppose I use an ahead-of-time compiler to glob the java ... allowed to redistribute that under the JRE licensing agreement? ...
    (comp.lang.java.help)
  • Re: Native gem roundup!
    ... (I'm not too familiar with Java GUI frameworks)... ... Monkeybars app - http://monkeybars.rubyforge.org/) by default on Macs ... Java) or JotBot (http://getjotbot.com/ - JRuby with Monkeybars) ... I brought up RubyCocoa not because I thought it would be ...
    (comp.lang.ruby)
  • Re: POSSIBLE SECURITY PROBLEM in Java 5!
    ... still worked -- but the network activity dropped to zero and it ... Naturally, suspecting a bug, I exited and went to rerun the app, this ... Task Manager showed two Java tasks, ... and killing it should have released the sockets. ...
    (comp.lang.java.programmer)
  • Re: Java on the BSD Desktop?
    ... interactivity we must also put into disscusion Adobe Flash and Adobe Flex ... To my oppinion Java is more suitable for back end solutions. ... I would like to see a native FreeBSD Flash player. ... > First off, in my company we had a Java app (simple app, working with ...
    (freebsd-questions)
  • Re: display problems in W2K TS client / W2K server is VirtPC guest
    ... I noted that I am having the same graphics issues when I run ... > You will have to install the Century Gothic font on the server. ... >> I have just converted a desktop app to be Terminal Services ...
    (microsoft.public.win2000.termserv.apps)