LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Bitmap fonts, but not Helvetica (https://www.linuxquestions.org/questions/debian-26/bitmap-fonts-but-not-helvetica-364419/)

mschutte 09-18-2005 02:51 AM

Bitmap fonts, but not Helvetica
 
Hi everybody, I have a little Debian font problem. I am using 3.1 (»Sarge«) with fontconfig/defoma/pango, and I wanted to get a bitmap font in KDE's Konsole. I created /etc/fonts/local.conf and added the following lines to force the use of bitmap fonts:
Code:

<selectfont>
  <acceptfont>
  <pattern>
    <patelt name="scalable"><bool>false</bool></patelt>
  </pattern>
  </acceptfont>
 </selectfont>

Ok, now I can use the Terminus font. But: Many websites use Helvetica (LQ too), and it's a really ugly bitmap font. I want to
(1) substitute Helvetica with Nimbus Sans L (which looks the same, but is scalable), or
(2) only allow Terminus, and disable other bitmap fonts, or
(3) only allow fixed-width bitmap fonts,
whatever works best. I've tried for a long time now, but I couldn't get a solution. Please help me.

Thanks in advance,
mschutte

Dead Parrot 09-18-2005 06:36 AM

Could it be possible that you're making things more complicated than necessary? Have you tried setting up your fonts with the available Debian tools? I'm not much of a fonts expert but here's what I usually do to set up fonts in Debian (and so far I've been happy with the results :)):

(1) Install msttcorefonts (needs contrib enabled in /etc/apt/sources.list)

(2) Rearrange the "Files" section in /etc/X11/XF86Config-4 (or /etc/X11/xorg.conf) to look something like this (for larger screen resolutions you might prefer 100dpi fonts to come before 75dpi):

FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/Type1"

(3) Run "dpkg-reconfigure libpango1.0-common" (as root)
--> Entrust font management to defoma

(4) Run "dpkg-reconfigure fontconfig" (as root)
--> Turn on Autohinter
--> Enable bitmapped fonts

(5) Run "fc-cache -fv" (as root)

(6) Restart X server (by hitting Control-Alt-BackSpace)

As I said, I'm not much of a fonts expert, but I think rearranging the "Files" section in (2) to look for truetype fonts first makes Firefox to show LQ with antialiased fonts although I made bitmapped fonts available in (4). Anyway, this seems to work for me. :)

mschutte 09-18-2005 10:41 AM

Now the fonts look completely different, and Konqueror still uses Helvetica... But thank you, anyway. (The reason could be that I did not, and do not want to, install the Microsoft fonts :))

So, I am still assured that a 'Helvetica -> Nimbus Sans L' mapping would be the best way.

-- mschutte


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