View previous topic :: View next topic |
Author |
Message |
Jeevz Bodhisattva
Joined: 15 Apr 2002 Posts: 195 Location: Boston, MA
|
Posted: Tue Apr 23, 2002 11:30 pm Post subject: Mozilla anti-aliased font? |
|
|
Can Mozilla render anti-aliased fonts? If so, how?
|
|
Back to top |
|
|
zerogeny Tux's lil' helper
Joined: 17 Apr 2002 Posts: 85
|
Posted: Wed Apr 24, 2002 1:36 am Post subject: |
|
|
the question is would you want to?
it doesnt look very good at all.
i would help you out but i dont remember the link, sorry. _________________ Searched the web for zerogeny.
Results 1 - 1 of 1. Search took 0.05 seconds |
|
Back to top |
|
|
Damasz Tux's lil' helper
Joined: 24 Apr 2002 Posts: 91 Location: Groningen, the Netherlands
|
Posted: Wed Apr 24, 2002 11:46 am Post subject: |
|
|
I also found the anti alias fonts in Mozilla to be very ugly until I changed pref("font.FreeType2.unhinted", true); to false. My truetype fonts look very good now.
I changed the following lines in my /usr/lib/mozilla/defaults/pref/unix.js:
pref("font.FreeType2.enable", true);
pref("font.FreeType2.unhinted", false);
pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/TTF");
pref("font.directory.truetype.2", "/usr/X11R6/lib/X11/fonts/truetype");
pref("font.directory.truetype.3", "/usr/X11R6/lib/X11/fonts/freefont");
pref("font.directory.truetype.4", "/usr/X11R6/lib/X11/fonts/sharefont");
pref("font.directory.truetype.5", "/usr/X11R6/lib/X11/fonts/windows");
The paths will probably be different on your installation.
Finally I use the Microsoft-verdana as my default font. (if the fontname starts with a capital, it will be anti aliased)
Hope this helps! |
|
Back to top |
|
|
Jeevz Bodhisattva
Joined: 15 Apr 2002 Posts: 195 Location: Boston, MA
|
Posted: Wed Apr 24, 2002 2:17 pm Post subject: |
|
|
Ok, I will try this tonight and let you know how it goes. Thanks for the help and advice! |
|
Back to top |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Apr 25, 2002 4:14 pm Post subject: truetype font hinter |
|
|
The ugliness of anti-aliased fonts in X comes from freetypes autohinter, it does try to interpret the hinting by guessing.
There is a correct alogrithm in freetype that uses a patented algorithm (hello apple ...) to render the anti-aliasements correctly.
Ever wondered why AA fonts look so good on mac or on QNX ?
btw .. any way to ENABLE the alogrithem in freetype2 by a emerge switch ? (it is there, but disabled by a #define ...)
Luckily there are no software patents here (yet ! ) |
|
Back to top |
|
|
Guest
|
Posted: Fri Apr 26, 2002 5:29 am Post subject: |
|
|
i heard about that #define thingy before, havent tried it.
you would have to unpack the freetype tar and change that line and repack it and then emerge it i would think. i cant be bothered... |
|
Back to top |
|
|
dice Guru
Joined: 21 Apr 2002 Posts: 577
|
Posted: Fri Apr 26, 2002 5:34 am Post subject: |
|
|
Anonymous wrote: | i heard about that #define thingy before, havent tried it.
you would have to unpack the freetype tar and change that line and repack it and then emerge it i would think. i cant be bothered... |
Without having looked at the code, I imagine you can enable it by adding a -DUSE_PATENTED_ALGORITHM_BUT_DONT_TELL_THE_LAWYERS_CUZ_THEY_WILL_EAT_YOUR_CHILDREN to the compile options in the ebuild. Or something along those lines, anyway |
|
Back to top |
|
|
prolific Apprentice
Joined: 19 Apr 2002 Posts: 237
|
Posted: Fri Apr 26, 2002 6:11 am Post subject: |
|
|
Try this.. Im using Galeon and it makes the text appear a little better. However, it is no where near how the text in konquerer looks... Gnome is total shit btw..
http://phpc-rr10.st-and.ac.uk/~josh/gdkxft/
Cant wait for 2.0 to come out.. |
|
Back to top |
|
|
Guest
|
Posted: Sun Apr 28, 2002 5:13 pm Post subject: |
|
|
the freetype ebuild changes the line in the source code to enable the bytecode interpreter so you dont have to do it yourself |
|
Back to top |
|
|
helleymullet Guest
|
Posted: Mon Apr 29, 2002 2:26 am Post subject: |
|
|
I'd like some more information on this. I am trying to get Truetype running in Mozilla, and for one brief brief moment, I had it. Here is what I did:
1) Edited /usr/lib/mozilla/defaults/pref/unix.js to look like this:
Code: |
// TrueType
pref("font.FreeType2.enable", true);
pref("font.Freetype2.shared-library", "libfreetype.so.6");
// if libfreetype was built without hinting compiled in
// it is best to leave hinting off
pref("font.FreeType2.autohinted", false);
pref("font.FreeType2.unhinted", false);
// below a certian pixel size anti-aliased fonts produce poor results
pref("font.antialias.min", 10);
pref("font.embedded_bitmaps.max", 1000000);
pref("font.scale.tt_bitmap.dark_text.min", 64);
pref("font.scale.tt_bitmap.dark_text.gain", "0.8");
// sample prefs for TrueType font dirs
pref("font.directory.truetype.1", "/usr/share/fonts/monotype/TrueType");
pref("font.directory.truetype.2", "/usr/X11R6/lib/X11/fonts/TTF");
pref("font.directory.truetype.3", "/usr/X11R6/lib/X11/fonts/truetype");
|
Then when I started mozilla, I could see it compiling in a bunch of fonts from those directories. When I checked the fonts section, all the Truetype fonts were capitalized. I couldn't believe that it worked.
Then I changed it to the fonts I wanted, killed and restarted Mozilla, and ever since then, all the fonts with capitalized letters are gone. I can't get em back and I'm completely lost.
Any ideas? |
|
Back to top |
|
|
|