Re: Font display problem on Linux

From: Last2Know (grokkalot_at_yahoo.com)
Date: 10/27/04


Date: Tue, 26 Oct 2004 21:56:12 -0500

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?

> 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.
Though overall I agree that the GUI libs are the worst
aspect of Java.



Relevant Pages

  • Bug report on Font.canDisplay
    ... SDN members can obtain fully licensed Java IDEs ... Java Developer Bug Report Review Team ... It treats displaying a non-descript blob or box ... I understand the problem is the fonts LIE. ...
    (comp.lang.java.programmer)
  • Re: Font display problem on Linux
    ... They all render fonts in bad to useless ways. ... >> Including the Java admin tool for my Linux based NAS appliance. ... > each JVM installation, because all the good ones are proprietary ... Yes I have the right to those Windows supplied ...
    (comp.os.linux.development.apps)
  • Re: Font display problem on Linux
    ... >> ones that come with Windows. ... app would be worse. ... figure out what fonts the app might be asking for. ... >> java thingy for getting temporary numbers. ...
    (comp.os.linux.development.apps)
  • Re: new Fonts in 1.4?
    ... Helvetica, Courier, TimesRoman, and Symbol are built in Java. ... system fonts installed on current machine. ...
    (comp.lang.java.gui)
  • Re: Underline Position
    ... installed on this machine (under Windows 2000). ... the Fonts tab, and indeed the fonts setting is by no means easy to find! ... On the Advanced tab, click Printing Defaults... ... >>o Download TrueType fonts as outline soft fonts. ...
    (microsoft.public.word.printingfonts)