ugly fonts in java apps

Doug Poland doug at polands.org
Wed Aug 27 11:51:37 PDT 2003


Robert Swindells said:
>
> Miroslav Kes wrote:
>>I'm running FreeBSD native JDK 1.4.1 on 5.1R and I
>>have question concerning fonts. Fonts that are
>>displayed in Java applications (Eclipse for example)
>>on my machine look too ugly (unsharp, rough - my eyes
>>get tired quite soon reading it) comparing to fonts
>> of native apps. (KDE).
>
>>The corresponding section of my XF86Config looks like:
>
>>Section "Files"
>>   RgbPath      "/usr/X11R6/lib/X11/rgb"
>>   ModulePath   "/usr/X11R6/lib/modules"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/URW/"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/local/"
>>   FontPath     "/usr/X11R6/lib/X11/fonts/mozilla/"
>>EndSection
>>
>>Can anybody tell me what's the problem?
>
> My guess would be that the X server is trying to
> scale the fonts from the 75dpi directory instead
> of using the URW or Type 1 ones.
>
> I use the following in my XF86Config:
>
> FontPath	"/usr/X11R6/lib/X11/fonts/misc:unscaled"
> FontPath	"/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
> FontPath	"/usr/X11R6/lib/X11/fonts/URW"
> FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
> FontPath	"/usr/X11R6/lib/X11/fonts/Speedo"
> FontPath	"/usr/X11R6/lib/X11/fonts/misc"
> FontPath	"/usr/X11R6/lib/X11/fonts/75dpi"
>
> Robert Swindells
>
I'm having a different font problem with java apps (Eclipse)
but I'm wondering if it's related to this.  My dialog and menu
fonts are huge.  Is modifying the X11 FontPath the prefered
technique for tweaking the fonts in java apps?

Thanks,
Doug


More information about the freebsd-java mailing list