From owner-freebsd-java@FreeBSD.ORG Thu Aug 28 12:26:23 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3721316A4BF for ; Thu, 28 Aug 2003 12:26:23 -0700 (PDT) Received: from galilee.polands.org (CPE-24-208-57-240.new.rr.com [24.208.57.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF35A43FB1 for ; Thu, 28 Aug 2003 12:26:21 -0700 (PDT) (envelope-from doug@polands.org) Received: from email.polands.org (samaria.polands.org [172.16.1.17]) by galilee.polands.org (8.12.9/8.12.9) with SMTP id h7SJQHNP044574; Thu, 28 Aug 2003 14:26:18 -0500 (CDT) (envelope-from doug@polands.org) Received: from 63.104.35.130 (proxying for 164.5.45.79) (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Thu, 28 Aug 2003 14:26:18 -0500 (CDT) Message-ID: <12329.63.104.35.130.1062098778.squirrel@email.polands.org> In-Reply-To: <28805.63.104.35.130.1062075575.squirrel@email.polands.org> References: <28805.63.104.35.130.1062075575.squirrel@email.polands.org> Date: Thu, 28 Aug 2003 14:26:18 -0500 (CDT) From: "Doug Poland" To: "Doug Poland" User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal cc: long cao cc: java@freebsd.org Subject: Re: fonts in eclipse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 19:26:23 -0000 Doug Poland said: > long cao said: >>>> > 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. >>> > >>> > i think i had that problem as well... once i installed ttf fonts >>> > package from ports and copy over [arial?] from ms systems, the >>> > problem went away >>> > >>> > [eclipse initially complained of not being able to find the fonts >>> > and then went to defaults] >>> > >>> > hope this helps >>> > >>> >>> So far, yes it does. However, I cannot find a ttf port on my >>> 4.8-STABLE system. >>> >>> Thanks for your help, >>> >> >> ~ports/x11-fonts/webfonts >> >> the port contains the fonts i was referring to. :) >> > Thanks, unfortunately I still have these huge fonts. This is what > I've done... > > Read the file: /usr/X11R6/lib/X11/doc/README.fonts > Installed the webfonts port > Edited my XF86Config file and removed > > FontPath "/usr/X11R6/lib/X11/fonts/TrueType/" > > Removed the above directory from the file system > Ran fc-cache > Restarted X > setenv GDK_USE_XFT 1 > Started Eclipse and... > Window ->Preferences ->Workbench ->Fonts ->Restore Defaults > > I wonder if this might be a problem with an underlying system, > Eclipse depends on several ports that manipulate fonts... > > % pkg_info -rR /var/db/pkg/eclipse-2.1.1_2/ > Information for eclipse-2.1.1_2: > > Depends on: > Dependency: urwfonts-1.0 > Dependency: jpeg-6b_1 > Dependency: png-1.2.5_2 > Dependency: pkgconfig-0.15.0 > Dependency: freetype2-2.1.4_1 > Dependency: open-motif-2.2.2_1 > Dependency: libiconv-1.9.1_1 > Dependency: tiff-3.5.7_1 > Dependency: expat-1.95.6_1 > Dependency: javavmwrapper-1.4 > Dependency: imake-4.3.0_1 > Dependency: fontconfig-2.2.90_3 > Dependency: XFree86-libraries-4.3.0_5 > Dependency: gettext-0.11.5_1 > Dependency: XFree86-fontEncodings-4.3.0 > Dependency: glib-2.2.2 > Dependency: jdk-1.4.1p3 > Dependency: atk-1.2.4 > Dependency: XFree86-fontScalable-4.3.0 > Dependency: Xft-2.1.2 > Dependency: pango-1.2.3 > Dependency: gtk-2.2.2 > > Also, here's my XF86Config font path: > > 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/webfonts" > Not sure if it's bad form to follow-up on one's own posts but have some new observations. I was taking fonts out of my path one-by-one using xset fp- /path/to/font/ xset fp rehash then launching eclipse. When I took out /usr/X11R6/lib/X11/fonts/misc/ eclipse failed to start and gave me this message.... The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadName (named color or font does not exist)'. (Details: serial 498 error_code 15 request_code 45 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) So it would seem that eclipse is using the fonts in that path. Also, for clarification, the problem I'm having with huge fonts in eclipse is not the customizable fonts in Window ->Preferences.... The huge fonts are the pull-down menus, tab labels, nodes in Navigator tree, etc. Basically any font I *cannot* control from the eclipse interface. Hope that helps... -- Regards, Doug