LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 09-24-2006, 11:24 AM   #1
ryan_border
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
Fonts in Xgl 3D windows


Hoping you guys can help me debug a wierd problem.

Suse 10.1. Xgl/compiz, including the latest (as of this morning) patches for what seemed to be all the relevant packages. Gnome. Nvidia Fx 5200 (I know not the best card), with very new Nvidia drivers.

In general, gnome/xgl/compiz is all working great. 3D cube is functional, all the 3D effects seem to be there. Most apps are functioning fine. Performance seems very good (no real slow-down with Xgl).

However, I have some OpenGL apps that I need to run. Typically these apps have one or more (usually tcl/tk) control windows, and a 3D rendered graphics window for display. Within the 3D rendered windows, my fonts are all messed up. These are typically things like labels for an axis (very simple fonts) in the 3D Window. Instead of the correct font, I'm getting junk, or sometimes a block of repeated characters (more junk).

If I shut down Xgl, these apps run fine, and do not have the font problem.

I haven't noticed any font related issues in my other apps; it's just these openGL apps. And only in the rendered window.

Any ideas on where to look? Could it have something to do with trying to render the fonts through 2 layers of 3D abstraction (the app itself + Xgl)?

Any help would be appreciated.

Thanks-
Ryan.
 
Old 09-24-2006, 08:37 PM   #2
ryan_border
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
More info.

I have kde installed alongside gnome. I didn't do any of the "tricks" required to enable Xgl with kde. Created a new account, and logged in using kde with it. Xgl is not enabled in this desktop; but the fonts _are_ messed up.

Might have a big clue to the root cause:

ryan@linux01:/var/log> grep -i font Xorg.0.log
(WW) The directory "/usr/X11R6/lib/X11/fonts/Speedo" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/PEX" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/cyrillic" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/misc" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/75dpi" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/100dpi" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin2/Type1" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/latin7/75dpi" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/baekmuk" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/japanese" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/kwintv" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/misc" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/75dpi" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/ucs/100dpi" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/misc" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/75dpi" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/100dpi" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/hellas/Type1" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/xtest" does not exist.
Entry deleted from font path.
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/local,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,/usr/X11R6/lib/X11/fonts/truetype,/usr/X11R6/lib/X11/fonts/uni:unscaled,/usr/X11R6/lib/X11/fonts/CID,/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled,/opt/kde3/share/fonts"
X.Org Font Renderer : 0.4
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.so
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.so
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Type1
(II) Loading font CID
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.so
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font FreeType
(II) Initializing built-in extension XFree86-Bigfont
Could not init font path element /usr/X11R6/lib/X11/fonts/local, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID, removing from list!


And sure enough, those files aren't there:

ryan@linux01:/var/log> ls -l /usr/X11R6/lib/X11/fonts
total 198
drwxr-xr-x 2 root root 79768 2006-09-23 21:09 100dpi
drwxr-xr-x 2 root root 79768 2006-09-23 21:09 75dpi
drwxr-xr-x 2 root root 184 2006-09-23 21:09 CID
drwxr-xr-x 3 root root 1488 2006-09-23 21:09 encodings
drwxr-xr-x 2 root root 184 2006-09-23 21:09 local
drwxr-xr-x 3 root root 25792 2006-09-23 21:09 misc
drwxr-xr-x 2 root root 15136 2006-09-23 21:09 truetype
drwxr-xr-x 2 root root 2024 2006-09-23 21:09 Type1
drwxr-xr-x 2 root root 256 2006-09-24 08:02 uni
lrwxrwxrwx 1 root root 28 2006-09-23 19:59 URW -> /usr/share/ghostscript/fonts
drwxr-xr-x 2 root root 568 2006-09-23 20:09 util
ryan@linux01:/var/log>


ryan@linux01:/usr/X11R6/lib/X11/fonts> ls
100dpi 75dpi CID encodings local misc truetype Type1 uni URW util
ryan@linux01:/usr/X11R6/lib/X11/fonts> find . -name "latin*" -print
ryan@linux01:/usr/X11R6/lib/X11/fonts>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2003 in Xen w/bonus XGL wavell2003 Suse/Novell 5 04-10-2007 10:56 AM
Fonts looking like Windows gyodai Linux - General 3 02-12-2006 01:59 PM
Windows fonts Cyric Slackware 7 10-07-2004 10:59 AM
Windows fonts and 9.1 cuzzle Mandriva 4 09-14-2003 02:31 AM
Windows Fonts crash89 Linux - General 4 02-06-2002 10:21 PM


All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration