LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Fonts (https://www.linuxquestions.org/questions/slackware-14/fonts-529902/)

12345 02-17-2007 09:04 AM

Fonts
 
I installed MS fonts with KDE's Font Installer (administration mode) and have some problems. The fonts are not as clear as i would expect, but something else is bothering me, the fonts in any web browser, they are somehow strange.

Fonts in Firefox (bookmark bar, navigation bar,....) are huge. I can change this in userChrome.css, but is there another way to have "normal" fonts?

Here is a screenshot from OOo http://xs.to/xs.php?h=xs312&d=07076&f=OOo.png (1.1MB)
And here is a screenshot from FF: http://xs312.xs.to/xs312/07076/google2.png (1.1MB)
How it looks like in windows: http://xs312.xs.to/xs312/07076/win33.png

~/.fonts.conf output
Code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="rgba" >
  <const>none</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
  <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
  <const>hintmedium</const>
  </edit>
 </match>
 <match target="font" >
  <test compare="more" name="weight" >
  <const>medium</const>
  </test>
  <edit mode="assign" name="autohint" >
  <bool>false</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
  <bool>true</bool>
  </edit>
 </match>
</fontconfig>


xorg.conf output:
Code:

#    ModulePath "/usr/X11R6/lib/modules"

    FontPath        "/usr/X11R6/lib/X11/fonts/misc:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/TTF"
    FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
    FontPath        "/usr/X11R6/lib/X11/fonts/CID"
    FontPath        "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/local"
    FontPath        "/usr/X11R6/lib/X11/fonts/Speedo"
    FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
    FontPath        "/usr/local/share/fonts"
EndSection

- - - - - - - - - - - - - - - - -

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "Philips107P"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync  30-97

#    HorizSync        30-64        # multisync
#    HorizSync        31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync        15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 50-160

  # 1152x864 @ 85.00 Hz (GTF) hsync: 77.10 kHz; pclk: 119.65 MHz
  Modeline "1152x864_85.00"  119.65  1152 1224 1352 1552  864 865 868 907 
-HSync +Vsync

 DisplaySize 322 241

EndSection

- - - - - - - - - - - - - - - - - -

# Device configured by xorgconfig:

Section "Device"
    Identifier  "Radeon9200"
    Driver      "radeon"
    #VideoRam    131072
    # Insert Clocks lines here if appropriate
Option "UseEdidDpi"  "false"
Option "Dpi"          "91 x 91"

EndSection

I added the DisplaySize 322 241, Option "UseEdidDPI" "false" and Option "DPI" "91 x 91".
I think that the DPI option does not work properly, because no matter what i write dowon it is always the same. But when i start x with "startx -- -dpi 108" for expample, the fonts are bigger, with smaller setting the fonts are smaller.

Am i missing something?
I would like to have the fonts like they are in Windows or even better.

Thanks for your help.

uselpa 02-17-2007 09:59 AM

Have a look at this.

Concerning the bytecode interpreter, for Slackware 11 at least, you can build it easily by using Pat's Slackbuild and uncommenting one single line.

12345 02-18-2007 08:23 AM

No matter what I do, Firefox refuses to show specified fonts. I want that every page shows its specified font type, so i didn't disable "allow documents to use other fonts". Google fonts are so small, that i can't even see what's written in bold. Linuxquestion fonts are too big,... Fonts in menus are distorted, especially X, C, Y.

I installed Firefox 2.0.0.1 from linuxpackages.

Is there a way to restore the original setting and original fonts?

thanks

XavierP 02-18-2007 08:59 AM

I always use this howto for Slackware fonts.

pdw_hu 02-18-2007 09:31 AM

for GTK apps (ff for ex.) you can create/edit a .gtkrc-2.0 and add:
gtk-font-name = "Lucida Sans 9" (or any other fontname/size)


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