Jump to content

Font confusion on Mandrake 10.1


kde-head
 Share

Recommended Posts

I really cant figure out why this is happening.

 

Below is The Register website when I view it in Konqueror - note how the text is "blocky"

 

fontproblem-konqueror.jpg

 

And yet, when I load up Gnome based Epiphany browser in KDE I get smoother fonts. Note that Epiphany is using a "san-serif" font

fontproblem-epiphany.jpg

 

 

However, when I look in the KDE font config area , I dont see a "sans-serif" font

 

fontproblem-kdefonts.jpg

 

Any idea what's going on here? The Register website stylesheet is using

font-family: Helvetica, Arial, sans-serif;

 

maybe because of that "sans-serif" bit , Konqueror isn't finding a font and using a blocky non-aliasing fallback ?

 

My system is Mandrake 10.1 , upgraded from 10.0

 

[moved from Installing Mandrake by spinynorman]

Link to comment
Share on other sites

you should install various Windows fonts. alot of web sites are set up to use Windows TTF fonts, & others. if you have dual boot with Windows, you can do that with MCC->system->fonts & install them from your Windows partition. or, if you don't dual boot, you can go to a Windows install & burn the Windows \fonts folder to a CD & use MCC to get them that way. also, there are various Windows fonts available in contrib, & somewhere in this forum are links to websites with Windows font packages.

 

Chris

Link to comment
Share on other sites

It's not that -I've got those Windows fonts installed already. And the blocky font problem only occured after I upgraded from 10.0 to 10.1.

 

My best guess is that it has to do with the move from XFree to XOrg

 

If anyone out there has done a fresh install of 10.1 Official , could you post your

/etc/fonts/local.cf file?

Link to comment
Share on other sites

cat /etc/fonts/local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--
 Enable sub-pixel rendering
       <match target="font">
               <test qual="all" name="rgba">
                       <const>unknown</const>
               </test>
               <edit name="rgba" mode="assign"><const>rgb</const></edit>
       </match>
-->
</fontconfig>

Link to comment
Share on other sites

strange - that font config makes my fonts even worse. i added autohint and antialiasing settings.

 

but that Register site still looks blocky. this is getting frustrating.

 

<match target="font" >

                  <edit mode="assign" name="autohint" >

                  <bool>true</bool>

                  </edit>

        </match>

        <!-- Antialias -->

        <match target="font" >

                <test compare="more" name="size" qual="any" >

                <double>8</double>

                </test>

                <test compare="less" name="size" qual="any" >

                <double>15</double>

                </test>

                  <edit mode="assign" name="antialias" >

                  <bool>true</bool>

                  </edit>

        </match>

Link to comment
Share on other sites

Konqueror is respecting the Reg's bad font settings and using a (bad) font to satisfy them. There's no easy way around this, really. The hacky solution is to go and kill all the ugly X fonts, which is an ugly idea but works. The slightly more elegant solution is just to brute force fontconfig into replacing ugly fonts with sans; this post - http://www.mail-archive.com/fonts@xfree86.org/msg01428.html - gives details of how. I use this to forcibly replace practically every font you often come across (arial, verdana, helvetica, lucida etc) with its Vera equivalent. It's cleaner to make these modifications in /etc/fonts/local.conf (for systemwide) or ~/.fonts.conf (for one user) than directly in /etc/fonts/fonts.conf .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...