Re: Font display problem on Linux

From: Joe Beanfish (joebeanfish_at_nospam.duh)
Date: 10/27/04


Date: Wed, 27 Oct 2004 14:09:35 -0400

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.

>> 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.



Relevant Pages

  • Re: Which JVM to use under Windows?
    ... latest production JDK to develop with. ... Java Sound into the J2SE), ... I am talking about Windows environment at the moment. ... releasing an app. ...
    (comp.lang.java.programmer)
  • Re: Simple math within Virtual PC 7 totally broken
    ... primarially written in Java so I can't give them out. ... BUT I know I've seen it doing some basic windows operations while installing windows 2000 or installing programs or something like that. ... A percentage of a network copy?! ... a Java app on Windows on Virtual PC, then why doesn't he run that app on the ...
    (microsoft.public.mac.virtualpc)
  • Re: Font Component
    ... I found that if I close my app and then run it again, the fonts appear in my ... Could this be because I am running my app as the shell? ... >components and see how the registry key is setup. ... > Windows XP Embedded Supplemental Toolkit Covering XPe SP2 ...
    (microsoft.public.windowsxp.embedded)
  • Re: Problems with screens
    ... If it fixes the issue and you don't want all the extra fonts then backtrack ... removing one at a time to find the one that is needed by your app. ... > On start the main windows maximizes to full screen and sets as "Stay On ... > Are there any differences in windows creating and displaying I should ...
    (microsoft.public.windowsxp.embedded)
  • Re: Cross-compile to Linux
    ... >> much better than a Mono app, hey, even office runs under wine and I ... For those that would like to use the Java ... "File->Open" on windows and it sounds ok, but if you go to another ... If you buy an app designed for windows and you run it on linux, ...
    (borland.public.delphi.non-technical)