SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I upgraded XFree86 to 4.4 today, and it did something to my fonts. They AA works just fine, but the fonts are all "off" a little, see here for example: http://home.comcast.net/~texture/fonts.jpg
They used to look like the ones on the right, except the antialiasing was better. Now, they look like the ones on the left. I tried removing X totally and installing it from the .tgz files like was suggested in the other thread about it but it didn't work, what can I do? Please help!
I did the upgrade to 4.4 using swaret and had no problems at all, including all Japanese fonts. Might try and run 'fc-cache -fv' and double check that the directories your fonts are in are correctly listed in your XF86Config file.
Can you do me a favor, post your /etc/fonts/fonts.conf and /etc/fonts/local.conf? I've run fc-cache a bunch of times and I'm using the same XF86Config as before so I have no idea on earth what could be wrong.
FWIW, here is my fonts.conf file. I have not edited anything manually.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<!--
DO NOT EDIT THIS FILE.
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
LOCAL CHANGES BELONG IN 'local.conf'.
The intent of this standard configuration file is to be adequate for
most environments. If you have a reasonably normal environment and
have found problems with this configuration, they are probably
things that others will also want fixed. Please submit any
problems to the fontconfig bugzilla system located at fontconfig.org
Note that the normal 'make install' procedure for fontconfig is to
replace any existing fonts.conf file with the new version. Place
any local customizations in local.conf which this file references.
Keith Packard
-->
<!-- Font directory list configured on Sun Mar 21 21:50:27 PST 2004 -->
<!--
Mark common families with their generics so we'll get
something reasonable
-->
<!--
Serif faces
-->
<alias>
<family>Bitstream Vera Serif</family>
<family>Times</family>
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<family>FreeSerif</family>
<default><family>serif</family></default>
</alias>
<!--
Sans-serif faces
-->
<alias>
<family>Bitstream Vera Sans</family>
<family>Helvetica</family>
<family>Arial</family>
<family>Verdana</family>
<family>Nimbus Sans L</family>
<family>Luxi Sans</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
<family>Baekmuk Dotum</family>
<family>SimSun</family>
<family>FreeSans</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>Bitstream Vera Sans Mono</family>
<family>Courier</family>
<family>Courier New</family>
<family>Andale Mono</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<family>NSimSun</family>
<family>FreeMono</family>
<default><family>monospace</family></default>
</alias>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>sans-serif</string>
</edit>
</match>
<!--
Some Asian fonts misadvertise themselves as monospaced when
in fact they are dual-spaced (half and full). This makes
FreeType very confused as it forces all widths to match.
Undo this magic by disabling the width forcing code -->
<match target="font">
<test name="family"><string>GulimChe</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<!--
The Bitstream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table. Fix this
by disabling hinting manually at smaller sizes (< 8ppem)
-->
<!--
Load local system customization file
-->
<include ignore_missing="yes">local.conf</include>
<!--
Alias well known Type1 font names to metric equivalent TrueType fonts
-->
<alias>
<family>Times</family>
<accept><family>Times New Roman</family></accept>
</alias>
<alias>
<family>Helvetica</family>
<accept><family>Arial</family></accept>
</alias>
<alias>
<family>Courier</family>
<accept><family>Courier New</family></accept>
</alias>
<!--
Artificial oblique for fonts without an italic or oblique version
-->
<match target="font">
<!-- check to see if the font is roman -->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the pattern requested non-roman -->
<test target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix><double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now -->
<edit name="slant" mode="assign">
<const>oblique</const>
</edit>
</match>
<config>
<!--
These are the default Unicode chars that are expected to be blank
in fonts. All other blank chars are assumed to be broken and
won't appear in the resulting charsets
-->
<blank>
<int>0x0020</int> <!-- SPACE -->
<int>0x00a0</int> <!-- NO-BREAK SPACE -->
<int>0x00ad</int> <!-- SOFT HYPHEN -->
<int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
<int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
<int>0x1680</int> <!-- OGHAM SPACE MARK -->
<int>0x2000</int> <!-- EN QUAD -->
<int>0x2001</int> <!-- EM QUAD -->
<int>0x2002</int> <!-- EN SPACE -->
<int>0x2003</int> <!-- EM SPACE -->
<int>0x2004</int> <!-- THREE-PER-EM SPACE -->
<int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
<int>0x2006</int> <!-- SIX-PER-EM SPACE -->
<int>0x2007</int> <!-- FIGURE SPACE -->
<int>0x2008</int> <!-- PUNCTUATION SPACE -->
<int>0x2009</int> <!-- THIN SPACE -->
<int>0x200a</int> <!-- HAIR SPACE -->
<int>0x200b</int> <!-- ZERO WIDTH SPACE -->
<int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
<int>0x200d</int> <!-- ZERO WIDTH JOINER -->
<int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
<int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
<int>0x2028</int> <!-- LINE SEPARATOR -->
<int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
<int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
<int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
<int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
<int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
<int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
<int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
<int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
<int>0x2060</int> <!-- WORD JOINER -->
<int>0x2061</int> <!-- FUNCTION APPLICATION -->
<int>0x2062</int> <!-- INVISIBLE TIMES -->
<int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
<int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
<int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
<int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
<int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
<int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
<int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
<int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
<int>0x3164</int> <!-- HANGUL FILLER -->
<int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
<int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
<int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
<int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
<int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
</blank>
<!--
Rescan configuration every 30 seconds when FcFontSetList is called
-->
<rescan>
<int>30</int>
</rescan>
</config>
Hi wynd, I have the same problem and I'm going crazy with it.....
I reinstalled X many times but nothing, it seems X messed up the font rendering of my browsers ( opera and konq) and the php pages look very weird...
Can u post a more complete description of your solution, please?
Did U edit the ftoption.h files , before or after the freetype compilation?
which version of freetype U compiled?
U can also send info to fedemang@libero.it
thank U for your collaboration
Mangus
I'm still having problems with messed up fonts as well. This is what I've tried:
1. removepkg all the xfree packages, and reinstall (this is Xfree4.4 from current)
2. start kde, see the wide spaced helvetica fonts. also tried removing and installing again the kde packages. this is kde 3.2.1 from current.
3. then compile freetype2 with the hinting enabled.
4. start x and kde again, still see the wide spaced helvetica fonts. Run fc-cache etc. Also tried deleting a lot of temp kde files in case a kde config file wasn't being written properly. Confirmed that antialiasing is enabled in the KDE control center.
5. I've confirmed that the /etc/fonts/fonts.conf & local.conf config files are ok and the font paths are correct in /etc/X11/XF86Config.
6. I've checked the X log (/var/log/Xfreesomething). When I first upgraded to Xfree86 4.4, there were errors that my fonts.dir files couldn't be read. I used mkdontscale and mkfontdir to recreate those files, and those errors went away. However, I still have errors that "font renderer already registered" for various fonts.
7. I thought it might be something to do with the font server so I tried using the core fonts system and then using xfs (using "FontPath "unix/:7100" in /etc/X11/Xf86Config). I got the same errors in the log and it didn't seem to change how the fonts were rendered.
Fyi I'm using the nvidia driver. I also recompiled that but it didn't seem to affect things. The strange thing, from the X log it looks like it's a generic font problem, but it's really only severely affecting kde, with the wide spaced fonts. other window managers look ok and truetype fonts look like they're being rendered ok in Mozilla.
Ok, this is what I did. I downloaded the latest version of Freetype (2.1.7 I think) and untarred it into mmy home dir. The file I edited was ~/freetype-2.1.7/include/freetype/config/ftoption.h. There is a big section that looks like this:
Code:
/*************************************************************************/
/* */
/* Define TT_CONFIG_OPTION_BYTECODE_INTERPRETER if you want to compile */
/* a bytecode interpreter in the TrueType driver. Note that there are */
/* important patent issues related to the use of the interpreter. */
/* */
/* By undefining this, you will only compile the code necessary to load */
/* TrueType glyphs without hinting. */
/* */
/* Do not #undef this macro here, since the build system might */
/* define it for certain configurations only. */
/* */
/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
Remove the /* and */ from around the #define part to uncomment it, and save and exit. Then go back to ~/freetype-2.1.7 and compile/install it, and restart X and it should work. Things I also did were I deleted all libfreetype.so files before I installed it so it would only use mine, and I did everything without X running just in case. Hope this helps
hi evrybody, I've done also the things described by jeffmccoy and I also dont solved anything. Also recompiled freetype 2.1.7 as Wynd sais but didn't help , Helvetica fonts still rules on my webpages.
This affects seems only php pages opened with konq and opera.
Gnome and firefox seems work well.
May be something with css and qt? or some weird font aliases?
I don't know what to do now, I noticed that downgrading to 4.3.0 solve the problem.. but I would like to give 4.4 a chance and stay tuned with the slack current tree... sob!!!
Mangus
provide better wireless support).
x/xfree86-fonts-scale-4.4.0-noarch-2.tgz: Fixed missing VeraIt.ttf.
(Thanks to Stepan Roh for the bug report).
extra/checkinstall/checkinstall-1.5.3-i486-2.tgz: Recompiled
this could be a good answer... now go on downloading
but my question is: why only few guys have this problem if the package is corrupted? let's give a try
cheers
mangus
Also here all the fonts got messed up seriously after upgrading to XFree86 4.4.0. Tried everything, including the updated slackware font packages, and also compiling/installing the latest freetype package.
The thing that really helped though, was installing the XFree86 freetype module from the 4.3.0 package. Now almost everything is back to normal again (window manager fonts, opera, etc.).
Seem to have some problems with gtk2 applications (e.g. gkrellm) but not sure if that's an application configuration problem or a system font problem.
The freetype module is: /usr/X11R6/lib/modules/fonts/libfreetype.a .
well, I've upgraded to the new current packages as of March 30:
kdelibs-3.2.1-i486-2.tgz
kdenetwork-3.2.1-i486-2.tgz
xfree86-fonts-scale-4.4.0-noarch-2.tgz
as well as the others
and it still doesn't work - I'm still getting the widely spaced fonts in kde.
also, regarding freetype, I've tried compiling with "configure && make" and
"configure --prefix=/usr && make" to see if that would make a difference. But it doesn't seem to - still have the widely spaced fonts.
Have the recent updates from current helped out anyone? If so, could you post your experience?
xfree86-fonts-scale-4.4.0-noarch-2.tgz post-installation script takes VERY VERY long time with CPU load at 99.1% for fc-cache. And I had to kill it. But it works fine till now.
xfree86-cursors is still at 4.3, anybody have an update for that?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.