Anti-Aliased Fonts For GNOME
McVeigh revels in this posting at Gnotices site which reads: "GDKFXT transparently adds anti-aliased font support to GTK+-1.2. Once you have installed it, you can run any (well, nearly any) existing GTK+ binary and see anti-aliased fonts in the GTK widgets. You don't need to recompile GTK+ or your application.'" He adds "I'm running it now -- it it looks great!!"
freshmeat is even getting the jump on /.
;)
I saw this yesterday on fm.net and decided that it really wasn't worth the time to dl/install/fuck with it.
if it is so great I am sure that it will be at some point included in the GNOME base. Until that time I will remain anti anti-aliased
thanks for the info though.
Not to be a stick in the mud, but I didn't notice much, if any, improvement when trying it. Of course I'm already operating at reasonably high resolution to start with, so there's going to be somewhat less room for improvement through anti-aliasing, but it's certainly not dramatic. The other disadvantage is that it's only for the one theme, so you can't take advantage if you want to keep using your existing theme. And, as they mention but don't emphasize, it's only for widgets not for all fonts, so the value was rather limited to start with.
There's no point in questioning authority if you aren't going to listen to the answers.
Basically anti-aliasing (in this case) means the use of grayscale to make better looking text (or graphics).
By using gray pixels around the edge of text, the "jaggyness" of text can be made to appear to be less.
For an illustration look at the top of Apple's home page, http://www.apple.com.
The "text" "Welcome to Apple" at the top is not really text - it is part of a graphic that uses color and grayscale. The characters appear smoother than regular Mac or PC text. Note where it says "What's Hot". It looks much smoother than the regular html text in the headline below it, even though it is about the same size. Note also that anti-aliasing can make text look fuzzy or out of focus.
It is kinda like using interpolation to smooth out a graph.
The higher DPI (dots per inch), the more possible it would be to use this to make better looking text. However, on some systems, this would require new fonts and a complete rewrite of the "engine" that controls writing to the screen. GTK is low-level enough that something like this is able to make all your GTK text anti-aliased.
Anti-aliasing will really show it's merrits in the Web browswer (such as Mozilla that supports anti-aliasing on some platforms) and in graphics, and even some small games.
I never used gmc (or mc, for that matter), I've only tried Nautilus to see how it works, and the same goes for every other filemanager I've tried under Linux. In Linux, I prefer using shellcommands rather that dragn'drop. It's not becuse Linux filemanagers are bad - they aren't.
The weird thing is that under Win or NT, I have little problems with using their filemanager, and under MacOS, I'd feel lost without having directory windows everywhere. When I tried a program that gave me the same interface on Linux, I lost all patience within five minutes.
I think it's something about how you think about your system. I see Linux differently than I see MacOS (or Windows...), so my preferred work habits are different too. I saw the same thing happen with a friend who's a long time Mac developer when he started using Linux. After a while, he went more and more to using a shell instead of a filemanager (though he still mixes those uses after almost a year).
/Janne
Trust the Computer. The Computer is your friend.
Being one who likes to try new things and who already uses fully AA KDE as my desktop, I thought it would be a good thing to download this and try it out.
But it only seems to anti-alias the text on buttons and in menus, not in text input or output panes!? So basically, it anti-aliases the parts of your applications that you look at least.
Not quite what I was hoping for...
STOP . AMERICA . NOW
IMHO, Fonts are a royal pain, and the main reason more people don't adopt Linux. If they could just build true type fonts and anti-aliasing into KDE, and make it work out of the box, then we'd start seeing way more converts.
Really, until recently, no matter how well I got X running, it still looked like crap. It's looking better now that I've got KDE working with ttfs and anti-aliasing, but it's a LONG way from being user friendly.
My 2 cents.
"Would it kill you to put down the toilet seat?" -- Maya Angelou
Some people simply don't get the point. It is very easy to create anti-aliased fonts but the truth is that they don't look that good. They're simply too blurred and 10 and 12pt fonts simply look like crap (as this screenshot attests to that).
t m?fname=%20&fsize=
The reason why Microsoft's fonts look so good is because they are hinted and hand-tuned by humans. This is a painstakingly long process but it produces the best looking fonts. Linux is still lacking a copyright-free font set which looks good. Lots of people run the TT font server and use MS fonts because they are simply top-notch. Hinted fonts are essential when it comes to displaying fonts on the computer screen since reproducing quality and readable outlines on a low frequency, discrete grid is not easy.
Linux community needs to produce a quality set of serif and non-serif hinted fonts. Only then will Linux desktop look as good as MS Windows one.
AA is a step in the right direction but it is not a solution.
If you want to learn more about hinting, my I suggest this link: http://microsoft.com/typography/hinting/hinting.h
The "text" "Welcome to Apple" at the top is not really text - it is part of a graphic that uses color and grayscale. The characters appear smoother than regular Mac or PC text. Note where it says "What's Hot". It looks much smoother than the regular html text in the headline below it, even though it is about the same size.
Not in OmniWeb in OS X it doesn't; everything is beautifully anti-aliased. Which brings up an interesting point: not all anti-aliasing is created equal. This is very noticeable in OS X, which (for legacy reasons) actually has two different algorithms for it. Loading up the same page in IE (which uses QuickDraw) and OmniWeb (which uses CoreGraphics) makes the differences obvious. So, how good is the GTK anti-aliasing? Anyone got a screenshot?
This space unintentionally left unblank.
And here is what your
Try it! Your desktop will look much better, and it won't hurt your eyes anymore. Of course you can tweak the point sizes a little.
[--- PGP key and more on http://www.root42.de ---]
This works fine with Xmms. It took me a whole 2 minutes to download, install (there's a .rpm) and figure out that I had to select the proper theme. Looks perty sweet(better than the screenshot), but it doesn't appear to affect all fonts in gtk programs.
This isn't meant as a troll but does it greatly increases mem and processor usage so everything runs slowly i had that problem w/ gnome and anti aliasing fonts on a 500mHz w/ 128 ram so what use is it for average users not everyone has a 1.2 athlon w/ 512 ram... yea its good to offer but is it fast???
This must be Thursday, I never could get the hang of Thursdays.
Is anyone actually proud of this ugly hack? Call me crazy, but antialising should be supported at the font rendering level, not at the application (or app toolkit) level.
Can someone *please* come up with a spec for overhauling font management in X? Overhauling X in general? Just steal display PDF from Apple/Adobe?
Something??? This is unbelievably crude, and the OSS community should be embarrased.
Sometimes it's best to just let stupid people be stupid.
what's up with this: "Your comment violated the poster comment compression filter. Comment aborted"
The GTK anti-aliasing is still being handled by the FreeType engine, which is IMHO perceptively as good as it gets. But you're begging for the screenshots aren't you? Here are some tiny morsels for you :)
It's not becuse Linux filemanagers are bad - they aren't.
I don't guess they are really all that bad, but I've yet to find one I can tolerate.
under Win or NT, I have little problems with using their filemanager
Me too, I disable all of the buttons, address bars, and other crap (turn off file hiding and extensions... it becomes usable!)
MacOS, I'd feel lost without having directory windows everywhere.
The MacOS does things well too. So did/does the Amiga. In fact, my favorite still today is the "Bland Old Amiga" file management system. It was very simple, yet powerful. Some people thought it was too simple, so along came many tools to spruce it up. Of course, they were OPTIONAL, the way features should be.
I think it's something about how you think about your system.
I tend to agree. 9 out of 10 times I use my BSD machine over a telnet connection. It sits on the other side of the room. The monitor is almost always off, the keyboard is a POS, and the mouse sucks. BUT, I do use it, and frequently. I just tend to use shells most of the time. I hate KDE. I hate Gnome. I hate X. Loath them, even. If they weren't both so emmensely popular with Linux users, I'd say the Unix world had a better chance of a "new killer underdog" popping up out of no-where and totally replacing X, since that's normally the way the computer industry works. But with the attitude of users today, esspecially current day Linux users, a really radical new desktop system for Unix would get flamed down and kicked under in much the same way Microsoft handles their competition: Without mercy.
"Everything you know is wrong. (And stupid.)"
Moderation Totals: Wrong=2, Stupid=3, Total=5.
I haven't seen it pointed out yet, but GDK/GTK 1.3 have had AA enabled for a while now, so this is very much an interim thing while we wait for the big gnome 2.0 release.
I've tried it out a bit and generally liked it. There are some problems with font sizes in certain applications, where the font is now larger than the widget, but then again this may be due to the changed font preferences required. It takes a bit of fudging the configurations in Debian, and make sure you have a symlink /etc/X11/XF86Config to your /etc/X11/XF86Config-4 if you're running XF4.0, or the config script dies.
Didn't anybody notice the humour in this:
Posted by timothy on Sun September 02, 16:04 from the smoothing-the-edges dept. McVeigh revels in this posting...
I've seen at least 3 post claiming that for medium resolution fonts (~10..16 pts) AA sucks. Instead of replying to all of them, I'll post this one comment:
AA can, if overdone make medium sized fonts seem blury and hard to read. In the end, this is not a weakness in the idea of AA but in the implementation. For a good implementation of AA check out BeOS, medium sized fonts are (where) only slightly AA:ed, producing smooth but sharp-looking fonts. I belive this is done by using a single grayscale, and using a bias towards b/w. For very pretty but almost completely unreadable AA-fonts, check out MacOS.
Try out fish, the friendly interactive shell.
I didn't seem to notice any antialiasing either. Looking through the config files and gdkxft_sysinstall script seems to provide some answers.
During install, gdkxft_sysinstall tries to read Xft's font names using xftcache. Unfortunately, xftcache doesn't seem to exist in X 4.0.x for us poor Dead Hat people. For all I know, it may not be in X 4.0.x at all. It is, however, in X 4.1.0. Therefore, I'm not sure the gdkxft_sysinstall script can build a proper XftConfig file in XFree86 4.0.x. The answer's not as simple as installing 4.1.0 binaries out of RawHide; they're linked to a couple other libraries, which also are linked to other libraries... and it's just a mess.
If anyone can pull it off, I'd like to know. I sure would like to try antialiasing my fonts, since I tend to jack the size way up for visibility reasons. Otherwise, I may just have to upgrade to DeadHat 7.2 or Mandrake's next version. Or, I can build 4.1.0 myself. That may turn out to be the most viable option.
Someday, you're going to die. Get over it.
Antialiased fonts are nice, but I'd prefer if someone fixed of the existing broken parts of Gnome instead.
For example, fix the awkward text-selection mechanism in gnome-terminal. It's always half a character off compared to the "industry standard" way this should work. Go look at any Windows or Mac application and copy it's behavior.
Or, implement any of the changes suggested in Sun's recent Gnome usability study. Each of those things are far more important than antialiased fonts.
I appreciate the wonderful work that went into adding the antialiased fonts, but in the future, please concentrate more on fixing the crufty broken parts of Gnome rather than adding flashy new features. Thank you.
Drew Olbrich
Why does this use LD_PRELOAD? Why not just patch GDK directly? Heck, why hasn't Xft support been integrated into a released version of GDK yet?
It's really funny(strange funny), I really like the way anti-aliased fonts look, just so much smoother and make the desktop so very pretty. For years I stared at anti-aliased fonts in windows, then I switched to Linux and didn't have them anymore, which I thought sucked but now I like it better simply because anti-aliased fonts make my eyes hurt. I had no idea what it was before, but, now I know what makes my eyes hurt more than anything while sitting at a computer.
Anyone else dislike anti-aliased fonts for this reason. Granted, some fonts just look absolutely horrible if they're not anti-aliased, but good fonts don't need it.
Sticking feathers up your butt does not make you a chicken - Tyler Durden
Well, just because it's okay for you don't mean its okay for everyone. Some people are just more sensitive to things than others. I think that AA fonts (good implementations, at least) look noticibly better than non-AA ones.
For a great implementation of AA fonts, check out QNX's RtP. The Font Fusion powered Photon has the most god-damn gorgeous fonts in the entire universe. Download RtP just to take an eyeful of the fonts!
A deep unwavering belief is a sure sign you're missing something...
I am the CTO of a company trying (desperately) to switch some people to Linux (all our servers are already Linux boxen), and I think this *is* a big deal. Here's why.
Linux on the desktop is missing, in this order:
1. File Conversion
2. OLE - "cut and paste"
3. Apps ("Office")
4. Proper font support
5. Integration of user interface
6. Speed/efficiency.
7. Platform standards
Now notice, I am not the bad guys.. My home LAN has 7 Linux machines and one Win box. I desperately want to switch my company to OSS as fast as I can. I am hitting the above roadblocks - for a while. I'm pretty confident withing a few years we can overcome all this.
For now, though, IE on Windows looks a whole lot better than Konqueror/Netscape/Mozilla on KDE or Gnome, largely due to fonts. That's what my colleague the CFO notices - this is therefore a major announcement.
Michael
---
BDOS ERR ON A:>
Getting AA right is more than just \alpha blending. The rasterisation of the character to decide how to use the extra subpixles is non-trivial (I believe that microsoft or truetype has a patent or two on this). It makes a big difference for characters where the pixel is a large fraction of the character size.
Just to clarify something that may not be so clear - the gray pixels that AA adds isn't really interpolation per se - i.e. it doesn't make a guess based on the pixels around it.
Antialiasing approximates the colour of the pixel based on the proportion covered by the imaginary vector curve passing through that pixel.
For example, with no antialiasing, if a pixel would be partially covered by the mathematical vector curve of the font - the renderer would display a white pixel if 50% of that pixel was covered by the curve.
With antialiasing however, it's not an either/or black/white situation. If a pixel is partially covered by the edge vector of the glyph, it determines the colour to display for that pixel based on the proportion of the pixel covered. So if the imaginary curve of the font covered a small piece (say 10% worth) on the corner of the pixel, then the pixel would be drawn at 10% black. If the glyph theoretically covered up 80% of the pixel, then it would be drawn at 80% black. This way the curve can be approximated by using variations in colour, since there isn't any more resolution to use in displaying it.
This is the theory anyway AFAIK - I'm not too sure of the implementation details in xft for example. However most AA techniques I've heard of have involved rendering the image at double the size or something, and making the guesses on how much of the pixel is covered based on that larger image.
Actually, it's rather the opposite: at low resolutions, anti-aliasing is usually less desirable. When the width of a stroke is around a single pixel, a grey pixel stands out in a big way, making the glyph look fuzzy. If glyphs are pixel-aligned (ie, they start and end on pixel boundaries) and upright (not italicized or rotated), a non-anti-aliased, hand-hinted font is much cleaner. (It follows eg that word-processing software should favor magnification levels such that glyphs have integral pixel width and hand-hinting, and fudge a little to put glyphs on pixel boundaries.)
At higher resolutions, there are simply more pixels to play with, and a few grey pixels blend in nicely. 75 dpi versus 100 dpi doesn't make a huge difference, but when we get 300 dpi screens, we'll wonder how we ever put up with today's blocky text.
The evaluation of an action as 'practical' . . . depends on what it is that one wishes to practice.
The secret at small font sizes is 'hinting', as someone else pointed out. See patent USUS5325479: Method and apparatus for moving control points in displaying digital typeface on raster output devices. This is a patent granted to Apple in 1992. (Apple and Microsoft cross-license a bunch of patents related to TrueType, IIRC.)
This space unintentionally left unblank.
the reason you 'accept' the filemanager in windows is because you don't have a choice.
once you've used BASh in linux, how can you possibly use DOS??
Actually, Xft has the little-known capability of doing subpixel sampling on LCD screens (which is what ClearType is).
To enable it you just have to set the X resource "Xft.rgba: rgb" though depending on the orientation of your LCD panel you may have to use "bgr" or "vrgb" or "vbgr" in place of "rgb".
Alternatively I think you can put
match edit rgba=bgr; (or rgb, or whatever)
in /etc/X11/Xftconfig
Ahh, you want NeWS. That's been done and was torpedoed by X years ago. It was a PostScript desktop with native PostScript rendering. Major UNIX workstation vendors had it as standard on their desktop, folks like SGI and IBM pushed it but in the end they caved in to the prevailing trend and moved over to X. If X had lost that little war then we'd all have embedded PostScript rendering in EVERYTHING on the desktop. Now you want to wind the clock back. You have to lie in the bed all those old fuddy duddy IT managers made for you. The only way to get even now is to inflict some misery on future generations.
Why not? X has had remote display support since day 1, and microsoft spent a lot of time and money on terminal server (funny they call it that) and it's still subpar.
'sides, how many companies work on the windoze display technology? Now how many work on X? Check out www.x.org sometime. XFree doesn't do everything - most of the code's already there for X (I run a standard X11R6.5 distro on my server, since it has no monitor and I only use X on it for remote display) so they can afford to work on the minor points such as this. And considering that Sun, SGI, IBM, and HP are all riding on X, I'm sure this kind of thing is being helped.
Those who can't do, teach. Those who can't teach either, do tech support.
A non-anti-aliased, hand-hinted font is also patented.
I don't think so. Apple has patents on one method of hinting, but other methods (e.g. plain old bitmaps) are not patented.
My voodoo 4 has had full screen anti-aliasing since, like, six months ago.
Got friends?
http://rox.sourceforge.net/rox_filer.php3
Here are a couple of pictures of ROX running on my desktop:
I have a old 14 inch ktx monitor with crap dot-pitch, thus I have full screen hardware anti-aliasing on everything ;-)
'Welcome to Rivendell, Mr. Anderson...'
Can someone *please* come up with a spec for overhauling font management in X? Overhauling X in general? Just steal display PDF from Apple/Adobe?
Xrender is an extension to the X protocol implemented in XFree86 that is resposible for the anti-aliasing in Qt/KDE. It supports Porter/Duff operations for image composition (true alpha blending) and elements found in DisplayPDF (paths, transformations, etc...). A good introduction to Xrender ideas and why the current X protocol was "blundered" are here. I especially like the part:
That pretty much sums up the hackery that is the X Window System.
It's good technology, but it's a very, very simple idea and a straightforward extension of basic antialiasing; it's only the branding exercise that makes you think Microsoft spent any time or money on it. There's also a reason I suspect that it's buried in XFree86 and not trumpeted around much: Microsoft has it patented. The patent is completely spurious, of course, as subpixel sampling has been around since the Apple II era at least (NYTimes had a good article about just this when the patent was granted), but one would presume the Xfree folks don't want to go to court over it.
Also, as another poster pointed out, there's several odds and ends that go under the rubric ClearType, (though the main one having to do with fonts on LCD screens, which was the original topic of this thread, is subpixel sampling). And there's also several other reasons fonts look better in Windows than Linux. In particular, the fonts themselves are much, much better, and the font rendering engine is better as well. But yes, basically the same infrastructure *is* buried in XFree86, it's just not tweaked as nicely yet.
Likewise with the people who can seriously suggest that the GIMP is a workable replacement for Photoshop, which is a laughable notion for anything except web graphics.
Well not really laughable, but definitly not a viable replacement for some commercial use, I have to agree. The thing that gets to me about your post is that you just don't seem to realize these are small size development teams that produce these applications for linux. There are just a handfull of KOffice developers while in a commercial setting there would be whole developments departments and teams dedicated eight hours a day to just one application of an office package. Comparing one against the other us as unfair as comparing a Ferrari fundedFormula One car to the '67 Camaro with the rebuilt 427 your neigbor just dropped in. That said the very fact that some linux applications are actually competitive to commercial appz is awe inspiring, to say the least.
The other thing that gets me about your post is that it's always the easiest to make wish-list or spot "the right direction". I'm sorry but unless your contrubiting, keep those thoughts to yourself or post them where developers can view them, /. already gets way too much of that and most developers don't read /. (if you dont beleive me look and the lack of posts in the developers only articles).
end rand...
Commercial solutions are on thier way. Hancom is releasing what is seamingly (pre-emptive-screen-shot-only-assumption) a robust office package for linux, windows, mac os X. If you're looking for a microsoft alternative you may want to give them a shot.
I think it's worth pointing out that TrueType is neither the only, nor the first, hinting technology. It does give font designers a lot of control, but it also requires a lot of work.
Maybe the TrueType tradeoffs are wrong for the open source community (not having minions of font designers that we can hire), and we should focus more on using a different hinting technology that automates the process, even if the end product is slightly less good than what you might get out of TrueType.
Where do we start? How do we get our X server's properly configured? How about all the rest of our configuration files, from fstab, to exports, to modules.conf conf.modules, and sysconfig. Everything under /etc has a different format.
... you could even have a daemon watching the files to decide if they've changed for those who go ahead and edit the old format.)
/etc to avoid conflicting with the legacy (excuse the term) application configuration files.
We start by defining a common format, in XML, and use filters to convert between the old and the new formats for these files until the libraries are written to read/write the new formats from the applications that need them (backwards compatible filters would probably be a GOOD THING for a while, just to keep a version of these files around
The need for this is for simplification of configuration. A simple GUI (ala window's regedit) could be written to configure. I'm not suggesting that we should use a flatfile database like the windows registry. Not in the least. Just that every application should store its data in the same format and use the same configuration editor to tweak the guts and that the configuration should be stored in a common location under
Of course, this could be extended to user configuration for programs as well so that all configuration data ends up in one location under $HOME. This sure would be a nice way to backup one's configuration without jumping through hoops.
Am I reinventing the wheel? Is anyone doing working towards doing something like this?
:wq