LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 11-10-2003, 04:00 PM   #1
Filias Cupio
LQ Newbie
 
Registered: Aug 2003
Location: New Zealand
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Fixed some font problems (Debian, emacs, abiword, acroread)


(I haven't posted enough times to be trusted to post URLs, so they are obfuscated with inserted spaces. Sorry about that.)

I had a bunch of font problems with some programs under Debian 3.0 which I know has affected others (http ww w.mail-archive.com/debian-user@lists.debian.org/msg42610.html, http mail.gnu.org/archive/html/help-gnu-emacs/2003-04/msg00616.html) but for which I found no solution by web-search. As I now have it working, I'll say what I did. (Except for 'dia', for which I'm about to post a question in the 'software' forum.)

The problem: starting "emacs" (but not xemacs) I would get an error message:

Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct

and the characters would all display as rectangular boxes. However, xfontsel says the font exists. I have also seen the same symptoms in Abiword, and it has been reported (link above) in acroread.

The solution:

I followed instructions in the font de-uglification HOWTO. (http ww w.tldp.org/HOWTO/FDU/x-config.html) I made three changes:

* Copied some truetype fonts from my windows partition and put them at the front of the X font path.
* Moved 100dpi above 75dpi, and made them unscaled
* Changed my resolution to 100x100 dpi (was something like 90x96) by changing /etc/gdm/gdm.conf

and now it works. I don't know which change was the important one.

Some file diffs:

$ diff -c XF86Config-4.working XF86Config-4
*** XF86Config-4.working Mon Nov 10 14:44:49 2003
--- XF86Config-4 Mon Nov 10 22:17:39 2003
***************
*** 10,21 ****
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/CID/"
- FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
- FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
--- 10,23 ----
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
! FontPath "/usr/local/share/fonts/ttfonts/"
! FontPath "/usr/local/share/fonts/dia/"
! FontPath "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
! FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
! FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
EndSection

Section "Module"


$ diff -c gdm.conf.orig gdm.conf
*** gdm.conf.orig Mon Nov 10 14:56:36 2003
--- gdm.conf Mon Nov 10 14:57:03 2003
***************
*** 127,131 ****

[server-Standard]
name=Standard server
! command=/usr/bin/X11/X -deferglyphs 16 -nolisten tcp
flexible=true
--- 127,131 ----

[server-Standard]
name=Standard server
! command=/usr/bin/X11/X -dpi 100 -deferglyphs 16 -nolisten tcp
flexible=true
 
Old 12-10-2004, 11:59 AM   #2
Andramalech
Member
 
Registered: Nov 2004
Location: Sweden
Distribution: SUSE 11.2
Posts: 52

Rep: Reputation: 15
Re: Fixed some font problems (Debian, emacs, abiword, acroread)

Quote:
Originally posted by Filias Cupio


$ diff -c gdm.conf.orig gdm.conf
*** gdm.conf.orig Mon Nov 10 14:56:36 2003
--- gdm.conf Mon Nov 10 14:57:03 2003
***************
*** 127,131 ****

[server-Standard]
name=Standard server
! command=/usr/bin/X11/X -deferglyphs 16 -nolisten tcp
flexible=true
--- 127,131 ----

[server-Standard]
name=Standard server
! command=/usr/bin/X11/X -dpi 100 -deferglyphs 16 -nolisten tcp
flexible=true

the settings above are not included in the gdm.config i have on my system.. any ideas? :S

system: Debian, kernal version. 2.9.1 i686 sid

thanks everyone
 
Old 01-18-2005, 09:00 PM   #3
ketandesai
LQ Newbie
 
Registered: Jan 2005
Location: long island
Distribution: debian
Posts: 1

Rep: Reputation: 0
Only the font lines re-ordering is needed ?

I think maybe the only change needed is to move the 75dpi and 100dpi lines
in the font config up above the Speedo fonts entry.

I did that and everything started working as far as I can tell.
I didn't even need to add the unscaled setting...
 
Old 04-23-2006, 12:18 PM   #4
gunnarre
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
The only thing I had to do was this:

Code:
cd /usr/lib/X11/
mv fonts fonts_old
ln -s /usr/share/fonts/X11 fonts
done

This might not work for you, but it work on two debian boxes where I did it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xfree86 Problems : could not open default font 'fixed' dj_relentless Linux - General 17 04-13-2009 12:50 PM
Strange Abiword font problem gescom Slackware 1 09-29-2005 06:01 AM
Narrow font for AbiWord Gnute Linux - Software 1 08-21-2005 12:06 AM
Could not init font path element. Could not find default font "fixed" SidA Red Hat 0 06-19-2004 08:42 PM
Emacs & abiword out of my screen and other questions ninadb Slackware 0 02-28-2004 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 08:17 AM.

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
Open Source Consulting | Domain Registration