Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mozilla anti-aliased font?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Jeevz
Bodhisattva
Bodhisattva


Joined: 15 Apr 2002
Posts: 195
Location: Boston, MA

PostPosted: Tue Apr 23, 2002 11:30 pm    Post subject: Mozilla anti-aliased font? Reply with quote

Can Mozilla render anti-aliased fonts? If so, how?

:?:
Back to top
View user's profile Send private message
zerogeny
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2002
Posts: 85

PostPosted: Wed Apr 24, 2002 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Damasz
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 91
Location: Groningen, the Netherlands

PostPosted: Wed Apr 24, 2002 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Jeevz
Bodhisattva
Bodhisattva


Joined: 15 Apr 2002
Posts: 195
Location: Boston, MA

PostPosted: Wed Apr 24, 2002 2:17 pm    Post subject: Reply with quote

Ok, I will try this tonight and let you know how it goes. Thanks for the help and advice!
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Apr 25, 2002 4:14 pm    Post subject: truetype font hinter Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Fri Apr 26, 2002 5:29 am    Post subject: Reply with quote

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... 8)
Back to top
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Fri Apr 26, 2002 5:34 am    Post subject: Reply with quote

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... 8)


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
View user's profile Send private message
prolific
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 237

PostPosted: Fri Apr 26, 2002 6:11 am    Post subject: Reply with quote

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.. :P
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Apr 28, 2002 5:13 pm    Post subject: Reply with quote

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





PostPosted: Mon Apr 29, 2002 2:26 am    Post subject: Reply with quote

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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum