Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have installed a new system with LFS-5.0 and I can't get fonts working properly with Mozilla. I built it with xft enabled. I have checked this by going to "about:buildconfig" and the option --enable-xft is present. I have freetype 2.1.5 installed and I have installed some windows fonts into the directory: /usr/X11R6/lib/X11/fonts/ttfonts I ran "mkfontscale", "mkfontdir" and a perl script to create font alias. I have edited /usr/lib/mozilla/defaults/pref/unix.js (which is symlinked to /usr/lib/mozilla-1.6b/defaults/pref/unix.js) and changed the relevant parts. It now looks like this:
// if libfreetype was built without hinting compiled in
// it is best to leave hinting off
pref("font.FreeType2.autohinted", true);
pref("font.FreeType2.unhinted", false);
// below a certian pixel size anti-aliased fonts produce poor results
I don't use the Mozilla freetype thing. With XFree86 4.3, you can have this feature across the board. You may need to edit your /etc/fonts/local.conf file:
It just needs to contain the directory that has your TrueType fonts. Then run fc-cache, and I think you should be good to go. For more information, check out: http://www.xfree86.org/4.3.0/fonts2.html
Originally posted by guygriffiths Excellent thanks, that worked a treat. If anyone knows what was wrong I'd be interested to know but that worked perfectly
I'm not sure what was wrong with FreeType - I've never gotten it to work right myself. The only time I got it working at all, everything was bold, and underline wasn't supported for some reason. But XFT works fine for me. For whatever reason, XFree86 doesn't seem to have any standard TTF directory, so you have to tell XFT wherever you put them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.