Slashdot Mirror


Xft Hack Improves Antialiased Font Rendering

Eugenia writes: "Font antialiasing first made its way to XFree through Qt/KDE only a year ago and GTK+/Gnome followed some time after. Even with the latest version of Freetype 2.08, which reportedly brings better quality, the result is still not up to par with the rendering quality found on some commercial OSes. David Chester has hacked through the Xft library and he achieved an incredibly good quality on antialias rendering under XFree86. With this hack, at last, XFree can deliver similar aesthetic results to Mac OS X's or Windows' rendering engines. Check the two brand-new screenshots ('before' and 'after') at his web page and notice the difference with your own eyes."

336 comments

  1. Thats cool; by SkulkCU · · Score: 0, Funny


    and by cool, I mean totally smooth.

    (groan)

    --
    .sig last updated Jan. 14, 2000
  2. Breaks out in song... by CaptCanuk · · Score: 3, Funny

    I can see clearly now the fonts are antialiased...
    I can see all webpages, in my way...

    --
    ---- The geek shall inherit the Earth.
    1. Re:Breaks out in song... by Anonymous Coward · · Score: 0

      Wrong number of syllables.

  3. Ok, this is excellent by Kickstart70 · · Score: 1

    I've been waiting for this for a long time!

    Now...if I could convince someone to hack improved window placement so things would stay where I want them without me having to move them all the time, I'd be a happy camper.

    Kickstart

    1. Re:Ok, this is excellent by greenfly · · Score: 2, Offtopic

      What you are looking for is called Enlightenment :)

      It's basically the only window manager I've seen that does fine-grained window memory right.

    2. Re:Ok, this is excellent by docbofh · · Score: 1

      What you really need is scwm (pronounced squim). It uses the cassowary constraint system to manage window placement dynamically.

  4. Broken HTML by Anonymous Coward · · Score: 0, Informative

    The HTML is seriously broken on the xfthack page. Ugh.

  5. My AA issue by rosewood · · Score: 1, Redundant

    (I was moded -1 Troll last time I said this, so lets see what happens now)

    When I was using X for an extended period of time due to my windows box being gone, the one thing that seriously bugged me were the fonts. I didnt know what was looking wrong with them until I saw a /. thread about AA Fonts and the lack there of in Linux at the time. This is really a great improvement and a much needed one at that. I just want to see this rolled into major releases and thus major distros and fast

    1. Re:My AA issue by Alsee · · Score: 1, Offtopic

      (I was moded -1 Troll last time I said this, so lets see what happens now)

      Obviously this time you get modded -1 Redundant :)

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    2. Re:My AA issue by anonymous+cupboard · · Score: 1

      Regretably, you are right. The text on a Win desktop definitely is more readable (no matter what the content is) and that is something that particularly non-computer people notice.

    3. Re:My AA issue by Anonymous Coward · · Score: 0

      Except for terminal windows. Linux terminal windows are much more readable (and usable) than those on Windows.

    4. Re:My AA issue by Anonymous Coward · · Score: 0
      Uh, why would you use a terminal window in Windows?

      I mean if you need to open a terminal window to do something in Windows, that something's probably not worth doing at all. Try reading the manual. I'm sure there's a better click-and-point way of doing it.

    5. Re:My AA issue by Anonymous Coward · · Score: 0

      who really wants to point and click?

      I mean, it is convenient to point and click sometimes, but I still SSH to some linux servers in win2k

      believe it or not, there are still uses of a terminal in windows... like using the "net" command...

    6. Re:My AA issue by anonymous+cupboard · · Score: 1

      I disagree but I was explicitly excepting the content and layout, just the fonts and their presentation. This is even with the TT font extension and newer versions of XFREE86.

    7. Re:My AA issue by PlazMatiC · · Score: 2, Informative

      libgdkxft, which does subpixel antialiasing, is apt-gettable in debian woody.
      All you need to do after apt-getting the packages is install a bunch of truetype fonts, then add the line 'export LD_PRELOAD=/usr/lib/libgdkxft.so' to your ~/.xession or some other appropriate location:
      I had some issues getting it all working, but that was mostly user error. (I'd been playing with xfstt shortly before trying gdkxft and they seemed to interfere with each other)
      A good howto on setting it up is here
      It makes mozilla look really pretty =)

    8. Re:My AA issue by kleene_star · · Score: 1


      If by libgdkxft you mean libgdkxft0, it has a pretty scary description.

      Package: libgdkxft0
      Maintainer: Scott M. Dier
      Architecture: i386
      Source: gdkxft
      Version: 1.0-2
      Description: transparently adds anti-aliased font support to gtk+-1.2
      *** THIS WILL CAUSE APPLICATIONS TO CRASH, DIE, LOSE INFORMATION, AND OTHER NASTY EFFECTS. DON'T USE THIS IF YOU WANT STABILITY ***
      . Using an LD_PRELOAD, this library can transparently add AA fonts to gtk+ applications without recompiling. There are no headers for this library.

    9. Re:My AA issue by FooKuff · · Score: 1

      You're absolutely right. Launching all those perl scripts from the command prompt is just wasting time! How could I be so fooking stupid?

    10. Re:My AA issue by PlazMatiC · · Score: 1

      That's the one =)
      I feel that the description is a bit over-the-top - I've never seen any apps crash or die or any of that. Not to say they don't, of course...
      I've seen a couple that had issues, though - not displaying fonts correctly and the like. (gkrellm being the only example that comes to mind)
      There's a gnome control centre applet (gdkxft-capplet) that lets you disable antialiasing for any application - just chuck the application name in the list on the 'Bad Applications' tab.
      Even if it is kinda unstable, the visual benefits make it worth it. =)

  6. Anti-Aliasing by Anonymous Coward · · Score: 0

    Soon, you'll hear the bitching, just like with OS X.

    "Oh, man, this sucks, those fonts look blurry, God, I hate it..."

    Then, they won't be able to live without it.

    1. Re:Anti-Aliasing by King+of+the+World · · Score: 1
      OSX's fonts are blurry. They simplify the anti-aliasing process for speed reasons. Given the same TTF, Freetype will beat OSX any day.

      Now that I think about it, that would be a nice test too.

  7. Excellent! by mstyne · · Score: 1

    Good to see that someone's working on this. The QT/KDE Anti-Aliasing was shady at best -- no pun intended -- it always seemed to mess up my terminals... and the different fonts that could be used were severely limited.

    --
    mstyne: real name, no gimmicks
    1. Re:Excellent! by ThatComputerGuy · · Score: 2

      Actually, I had the same problem.. very few fonts that would do AA, and even then, the Konsole text would come out very garbled...

      It turned out that I had just never edited my /etc/X11/XftConfig. Just a suggestion, seems likely that it's your problem too.

      --
      XML is like violence. If it doesn't solve the problem, use more.
  8. ClearType? by Latent+IT · · Score: 4, Informative

    I get the feeling that there is still work to be done, though. If you have windows xp, it's worth turning on the ClearType setting in Display -> Appearance -> Effects. XP starts as anti-aliased, but ClearType brings an even greater level. Of course, if you haven't seen ClearType in action, it's hard to expect improvement from plain old win2k. But the font improvements shown above in XFree are amazing, like night and day, no more blocky p's and q's at the wrong font size, which will make a lot of happy people at non MSFT boxes. =)

    1. Re:ClearType? by Eugenia+Loli · · Score: 3, Informative

      Yes, this is true. WinXP's Clear Type is more advanced than the traditional anti-alias true type rendering, but it is valid ONLY for LCD screens, *not* for CRTs. I think this post here is pretty informative on Clear Type... :)

    2. Re:ClearType? by taion · · Score: 5, Informative

      XFree86 4 supports sub-pixel anti-aliasing (aka ClearType). You just need to put match edit rgba=rgb; in XftConfig.

      --

      ----------
      Floccinaucinihilipilification - the action or habit of judging something to be worthless
    3. Re:ClearType? by tcoady · · Score: 1

      Naturally YMMV, but I have just activated cleartype rendering and it has mad a dramatic improvement to the rendering of fonts on my otherwised unloved XP screen which is a regular vanilla CRT from iiyama. I know it was designed for CRTs alone, but I guess similar principles apply to rendering of fonts whether the pixels are crystal or the cathode derived. I just wish it was this simple to enable some improvement on my Debian box which shares the same screen via KVM switch, but after installing XFtt & TTfonts I gave up when I discovered the kernel also needed recompiling to support antialiasing. I expect I'll try that some other time.

    4. Re:ClearType? by bonch · · Score: 1, Insightful

      Hmm, I have Windows XP using ClearType, and I'm using a CRT. Everything is nice and smooth, even tiny fonts.

    5. Re:ClearType? by em.a18 · · Score: 1

      See this article by John Platt for all the theory you can handle on ClearType

    6. Re:ClearType? by frantzdb · · Score: 4, Informative

      With X, just add match edit rgba=rgb; to /etc/X11/XftConfig to get ClearType fonts in X.

      --Ben

    7. Re:ClearType? by Darren+Winsper · · Score: 1

      Since when did you have to recompile your kernel to support Xft anti-aliasing?

    8. Re:ClearType? by tcoady · · Score: 1

      Thanks for the feedback. I can't answer your question straight away, but if I remember I'll see if I can find the HOWTO that mentioned this, otherwise perhaps I can get my fonts looking smooth without resorting to a recompile!

    9. Re:ClearType? by tcoady · · Score: 1
      According to http://www.trolltech.com/~lars/fonts/qt-fonts-HOWT O.html:
      Also check if /usr/X11R6/lib/libXft.so.1.0 links to freetype. You can do this by running 'ldd libXft.so.1.0' and checking if the output contains the freetype library. If not, you probably did not have freetype installed when you compiled XFree, did not include the path to freetype in your xc/config/cf/host.conf directory (in the XFree sources) or used a binary package that does not have Xft support compiled in.

      If yes, you'll need to get a Qt-2.3.0 or later compled with Xft support. If you compile Qt yourself, add -xft to the configure line.

    10. Re:ClearType? by Darren+Winsper · · Score: 2

      Err...I don't see the word "kernel" in there anywhere for a start. Second, damn near every distro provides XFree with AA support these days.

    11. Re:ClearType? by Anonymous Coward · · Score: 0

      Why am I the only one that doesn't like ClearType? Nor the moderm AA stuff?...

    12. Re:ClearType? by GomerFrog · · Score: 1

      This is a bit off topic I know, but it's been bugging me for years... Will XFree86 ever have smooth 2D graphics? Will the Render extension ever handle this? Currently XFree86 runs slow when dragging windows around... on pretty much every windowmanager/environment I've seen, and on every hardware setup I've seen. Compared to Windows, which is much smoother, XFree86 just seems so slow... I use it all the time still, but I'd like to not have that problem. When my friends, who are windows users use Linux, for instance, they complain at how slow it is because it can't even drag windows around smoothly.... This seems to be a big complaint, but it's hardly ever mentioned. I think this is at least, if not more important than anti-aliased font support.

    13. Re:ClearType? by Anonymous Coward · · Score: 1

      You fat fucking smelly Greek whore! Do you even wash on the rare occasions when your husband wants to fuck you? I bet your arse smells like a pig farm after eating all of the fucking pork and potatoes you cook-- you do nothing but sit all day, sweating and farting. It must smell like a swamp where criminals dump bodies in the sweltering heat.

      Do you even shave? You sound like a lazy fucking wart of a housewife who wouldn't even bother. I bet the place is a mess too: dishes needing done, a layer of dust over everything, and stains and spills here and there. What a fucking pig-- a hairy fucking Greek bitch-pig.

      Oh yeah, and your "skills" are laughable. You can't code for shit-- there's more holes in your PHP site than in a Greek brothel. Your English is terrible, which is pathetic for an editor-in-chief of a news site that reports in the language. Your obvious biases and slants make you look even more silly and unprofessional, as well as your multi-paragraph rants and fits of rage you write in your own forums. It's no wonder no one takes you seriously.

      In short, ELQ, FUCK YOU. You are a loser, a no-lifer, a wanna-be, and a fecal smear in the world of technology. You are a detriment to the community you claim you serve. I challenge you to refute one thing I have said. You can't; it's all true.

      And you know it.

  9. 14 Comments by idiotnot · · Score: 1

    ....and already slahsdotted. Arrgh. Off to Google to look for a cached version.

    1. Re:14 Comments by Anonymous Coward · · Score: 0

      The site works fine for me. It takes a bit more time to connect to the server, but the server DOES respond. Just give it 20-30 seconds.

  10. good, but not quite excellent.. by thesupraman · · Score: 5, Informative


    Having worked with GOOD font rendering software (mainly for broadcast television) I can say that most gui renderers do a pretty horrible job.

    It's not that they get the font shape wrong, or don't antialias correctly, it's that they don't allow for how people see things, and just antialias 'mathmatically correct'.

    With the fonts we use for television character generaters, several seperate rendering passes are used to give:
    1 - a solid and anti-aliased 'interior' to the font (this is 'normal' antialiasing)
    2 - a perimeter or border to the font, in a slightly different colour/darkless level, to make the edge stand out
    3 - a seperate rednering to the alpha channel to stop the font from 'blending' excessivly at the edges with the background (ie: a buffer zone).

    This makes a MASSIVE difference to the quality of the fonts, especially on anything other than a solid colour background.

    unfortunately, no OS as yet does this for it's screen display fonts, which is a pity, as it makes a BIG difference.

    Having said that, I'm VERY happy that improvements are happening, as good font rendering makes a hugh difference to the effort required to read text.

    1. Re:good, but not quite excellent.. by BJH · · Score: 2, Insightful

      Unfortunately, there's a BIT of a DIFFERENCE between rendering for overlay ON video (which means you can take AS long AS you like), and DOING anti-aliasing for a semi-REAL-time user INTERfAcE.

    2. Re:good, but not quite excellent.. by thesupraman · · Score: 5, Informative


      Hmm, I guess we don't do real time text then, damn, I was pretty sure that was what I did, certainly looks like it, I must have been dreaming...

      Of course, there IS a difference when you need to display a full page of scrolling text at speed, but since characters are normally only rendered once each, and then cached, the processor time required to do high quality anti-aliased text is actually very very small in relation to just about everything else (laying out the text is a much more processor intensive task for most uses).

      The time required to properly alpha-blend it is a little higher (depending on the windowing system and graphics hardware), but still not that great.

      One BIG thing that gets missed is the fact that antialiasing for LCD is quite different from antialiasing for trinitron, which is quite different for antialiasing for a standard CRT, due to dot placement/shape, and that also makes quite a difference (I believe microsoft has an LCD mode, and freetype can do one, from memory).

    3. Re:good, but not quite excellent.. by BJH · · Score: 1

      The Microsoft LCD AA is ClearType. Many people seem to think that ClearType makes their text look better on a CRT, though... the power of suggestion is remarkable...

    4. Re:good, but not quite excellent.. by jonnythan · · Score: 1, Flamebait

      You obviously haven't experienced ClearType first hand.

      MS has a checkbox on a website that enables ClearType instantly.

      The difference on my CRT is nothing short of amazing.

    5. Re:good, but not quite excellent.. by mike_sucks · · Score: 2, Insightful

      Doesn't it scare you that something as fundamental as screen rendering algorithms can be changed using a *checkbox on a page from a remote website*?

      My god, no wonder new exploits are constantly being found in Windows and IE.

      Mike.

      (-1, Offtopic)

      --
      -- "So, what's the deal with Auntie Gerschwitz et all?"
    6. Re:good, but not quite excellent.. by Cuthalion · · Score: 1

      I go to that website and it says "Hey! We have an ActiveX control that's digitally signed by Microsoft Corp. Do you want to run it?" If I say yes, I am running local code just like if I opened a control panel. If I say no, nobody runs nothing.

      Now, I could streamline the process a bit further by checking "Always trust content from Microsoft Corp", but I haven't checked that box ever. I always trust content from Microsoft Corp manually, rather than having my browser do it for me.

      --
      Trees can't go dancing
      So do them a big favor
      Pretend dancing stinks!
    7. Re:good, but not quite excellent.. by Isle · · Score: 1

      It is calles subpixel rendering, I have tried it on an CRT screen as well. It looks like you said amazing, but I turned it off once I got tired of the red/green edges. (yes, they are there as well in windows. How do I know? thats how it works!)

    8. Re:good, but not quite excellent.. by Anonymous Coward · · Score: 0

      I believe that's "Nobody runs anything"

    9. Re:good, but not quite excellent.. by mike_sucks · · Score: 1

      Yeah, it says it is from "Microsoft Corporation". Or was that "Microsoft Corperation"?

      In the words of the immortal Baterz: "There's nothing wrong with being paranoid."

      --
      -- "So, what's the deal with Auntie Gerschwitz et all?"
    10. Re:good, but not quite excellent.. by saintlupus · · Score: 2

      Yeah, it says it is from "Microsoft Corporation". Or was that "Microsoft Corperation"?


      The real Microsoft Corporation is user number one. All others are imposters.

      --saint

    11. Re:good, but not quite excellent.. by TRACK-YOUR-POSITION · · Score: 1
      ...since characters are normally only rendered once each, and then cached...


      I don't know a thing about anti-aliasing, but is that true? So a bitmap with alpha is just generated once for each character, and used over and over again everytime that character is used?
      Does this mean that anti-aliasing fails to let you draw characters at subpixel boundaries? I can't start drawing a bitmap at height 100.5, after all--I have to draw it at 100 or 101.

    12. Re:good, but not quite excellent.. by Hadlock · · Score: 1

      i wish OS X had an LCD mode... up close, with dual monitor support turned on for my powerbook, side by side the CRT looks nothing but beautiful (early 90's nec multisync), but the 1 month old 15" LCD looks choppy until you sit about 3 feet back from it. i think mostly it's the black lines seperating each LC cell, but it'd be nice to see a workaround for that of some sort

      --
      moox. for a new generation.
    13. Re:good, but not quite excellent.. by Anonymous Coward · · Score: 0

      are YOU sure ABOUT that, MY friend WHO uses CAPS?

    14. Re:good, but not quite excellent.. by Anonymous Coward · · Score: 0

      Broadcast television is a completely different story. TV artifacts are utterly unlike computer monitor artifacts.

    15. Re:good, but not quite excellent.. by Anonymous Coward · · Score: 0

      Non aa text doesn't let you draw characters at subpixel boundaries in most imaging systems anyway. Maybe Display Postscript or something does, but AFAIK, most screen-based systems are pixel-based, and don't let you start "halfway through" a pixel.

    16. Re:good, but not quite excellent.. by scrytch · · Score: 2

      I'd agree that while renderers for television fonts may be more sophisticated, the reason for 2 and 3 have a whole lot to do with compensating for the poor contrast of NTSC and the bleed effects on older and cheaper televisions with lousy shadow masks. #1 is a trait that even consumer computer video cards don't have, and #2 is more of a graphic design principle for when you don't control the background -- it'd be nice to get the effect for text over graphic backgrounds, but a grey bar at 25% opacity under the text will usually do decently. It's definitely not an effect you want for black text on white backgrounds.

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
  11. Re:Linuxslash by FooBarWidget · · Score: 0

    What are you complaning about?
    1) There are a lot of people who DO care about Linux.
    2) Slashdot offers you to configure your filters so you can't see the Linux articles anymore.
    Slashdot tries to please the group that do care about Linux, and the group that don't care about Linux by providing filters, and you're still bitching about it?

  12. Re:Linuxslash by Anonymous Coward · · Score: 0

    See ya.

  13. Comment removed by account_deleted · · Score: 5, Informative

    Comment removed based on user account deletion

  14. Comment removed by account_deleted · · Score: 2, Interesting

    Comment removed based on user account deletion

  15. Re:KDE Myths by King+of+the+World · · Score: 0

    Does anyone know if there are any plans to change the default icon set for KDE3? Perhaps to Ikons

  16. Steve Gibson debunks M$'s "innovation" by Anonymous Coward · · Score: 0

    Check out this article. ClearType is just Microsoft's name for sub-pixel rendering, and it's been around for decades now.

    1. Re:Steve Gibson debunks M$'s "innovation" by King+of+the+World · · Score: 0

      It's mostly sub-pixel anti-aliasing which X has had for a long time. It is also knowledge about the eye (ie, blue light doesn't focus as well) to smartly alter the colours sent to the screen for readability.

    2. Re:Steve Gibson debunks M$'s "innovation" by spectecjr · · Score: 3, Insightful

      Check out this article [grc.com]. ClearType is just Microsoft's name for sub-pixel rendering, and it's been around for decades now.

      Yeah, but Gibson is also an ass who doesn't seem to know the difference between scientific method and guesswork.

      MS research has the fully detailed papers which indicate the fourier transforms, information theory and signal processing theory behind the technique. Which is a damn sight more thorough than Gibson's quackery.

      "Oh yeah, apple did it all in the 70s". Bullshit. Back then, the Apple II didn't have the hardware or the CPU power to do the kind of calculation you need to do for Cleartype. Nor did it have the color resolution. All Apple's tech was was a way of hacking color out of a monochrome NTSC signal -- not getting better resolution out of a monochrome signal using color. Get the difference?

      When are people around here going to do some thinking and some research instead of acting like idiots? I thought that people who flock to sites like this were supposed to be tech savvy? Maybe it's just me, but I thought that indicated at least a modicum of intelligence instead of blind sheepery.

      Simon

      --
      Coming soon - pyrogyra
    3. Re:Steve Gibson debunks M$'s "innovation" by idealego · · Score: 2, Funny

      http://grcsucks.com/

    4. Re:Steve Gibson debunks M$'s "innovation" by Anonymous Coward · · Score: 0

      I've seen the grcsucks.com site, and it's nothing but ad hominem attacks. The whole thing revolves around his response to people who defend Black Ice. Yeah, he can be an ass, but that doesn't automatically mean he's wrong. After probing my wife's Windows box with nmap, Black Ice barely turned up anything, and I found no fewer than four holes. She ditched it and installed Shields Up, and it caught every single anomalous packet from nmap. I'd rather trust a working program that was written by an ass than a half-baked "solution" from well-mannered people.

    5. Re:Steve Gibson debunks M$'s "innovation" by saintlupus · · Score: 3, Interesting

      I thought that people who flock to sites like this were supposed to be tech savvy? Maybe it's just me, but I thought that indicated at least a modicum of intelligence instead of blind sheepery

      You're obviously not in my first-year CS courses. Maybe its because I'm coming back to school several years older than my classmates, but christ, they're pretty clueless about technology.

      If one more of them says he's in CS because programming pays well, I'm going postal.

      --saint

  17. Changing two lines of code is "hacking through"? by Anonymous Coward · · Score: 3, Insightful
    The site says:


    Again, please note that my changes consisted only of two lines of code worth of changes: setting some flags in freetype glyph structs, and adjusting the rendering resolution. Any praise should generally be directed to the folks at freetype and the author of Xft and XRender, Keith Packard.



    How does changing two lines of code merit a frontpage story on slashdot?
  18. color me crazy by CmdrTaco+(editor) · · Score: 1, Flamebait

    Now color me crazy, but since when has attaining similar aesthetic content to Windows been considered a good thing? It hurts my eyes just to look at it. I long for the good old days without those fancy anti-aliased fonts, although Mac OS X is quite pleasurable to use.

    1. Re:color me crazy by Anonymous Coward · · Score: 0

      one step closer to making linux a workstation OS !
      I love using linux for server stuff. nothing beats it. But when it comes to surfing the web. I use my Windows box. It's just easier on the eyes

    2. Re:color me crazy by Hektor_Troy · · Score: 2

      I'm not entirely sure what to think if the "aesthetics" of say ClearType (or whatever it's called) in Windows. I just turned it on a few minutes ago, and my initial reaction was:
      "Hmm ... it looks like they just made the text broader*, as if they've made something like tripple vertical AA**"
      It doesn't hurt my eyes, and text generaly looks more "roundish"*** which is nice - I think. Maybe it isn't, not quite sure yet. Now, this text (the text I'm typing right now) looks "skinny"* compared to the other text, as if it's only getting a double vertical AA** treatment.

      Antialiased text (and other things) in theory is nice, because it's more "true to nature" (if there is such a thing in computing) - when was the last time you looked at bubble and thought "nah, those edges are jagged"? I thought so. On the other hand, I have from time to time caught myself looking out the window on say a sunrise and thinking "damn. They sure are using some cool effects."

      I think another poster hit the nail. In essence he's saying that the people who make the AA algorithms are aparently more interested in making them "mathematically correct" than visually pleasing. Having stared at Microsofts ClearType for almost 15 minutes now, I tend to agree with both CmdrTaco and the aforementioned poster - somethings rotten in the state of text-AA.

      *I'm Danish - can't quite think of a better word in English.
      **I have no idea if that even makes sence outside of my own head :-)
      ***Nope, can't even think of a better word in Danish.

      --
      We do not live in the 21st century. We live in the 20 second century.
    3. Re:color me crazy by Electrum · · Score: 2

      Now color me crazy, but since when has attaining similar aesthetic content to Windows been considered a good thing? It hurts my eyes just to look at it. I long for the good old days without those fancy anti-aliased fonts, although Mac OS X is quite pleasurable to use.

      I didn't like the anti aliasing ("smooth edges of screen fonts") in Windows 2000 and didn't use it for a long time. Then it somehow got turned on, and when I noticed I decided to give it a chance. After a few days, I got used to it, and everything really does look better now. I stopped using Linux as a desktop, fonts being a big reason, so I don't know how well X does fonts with this (imho the screenshots are horrible on the eyes), but I suggest giving it a try for a few days and see if you end up liking it better.
    4. Re:color me crazy by KeyserDK · · Score: 1

      Give me the font smoothing option that has been in windows since the horrible 98... (b version i think).

      I dont know what it is or how it works... but i get no Blur no jagged edges which gives no headache.. it just works. And yes i've tried XP AA.. horrible i'll tell you! (On a CRT thou').

      Give me font smoothing! Anone who know how it works?

      --
      still reading?
  19. Re:Linuxslash by red5 · · Score: 0, Offtopic

    monolinux that sound to much like an STD to me.

    --
    I know I'm going to hell, I'm just trying to get good seats.
  20. Two lines of code by Saturn49 · · Score: 0, Redundant

    Changing two lines of code is news?

  21. mine looks better by Catmando · · Score: 3, Interesting

    All i can say is that my fonts look better than those screenshots. But its probably because of the sub pixel rendering on my lcd screen.

    all you have to do is add one line to your XftConfig

    here is a howto:
    http://jmason.org/howto/subpixel.html

  22. Anti Alias is backwards and foolish (fuzzy) by Anonymous Coward · · Score: 0

    Try reading anything at high speed using the worlds fastest reading font (Times, or Palotino) at Point 10 size (ten pixels high ave at 72 points per inch).

    If you alias its harder to read at hihgh speed and can be easily proven in comprehension tests.

    I maintain that its foolish to use at points less than 24.

    It has no place in our world.

    Its messing up the usefulness of computers, and slowing them down, (no waY to "Or" a cached glyph over a colored backdrop easily if backdrop not one simple color).

    If you doubt that 10 is crappy try 6 point.

    At 6 point, a hinted type-1 adobe font is readable and learnable, and high speed undertandable especially on a flat screen.

    Try that after asinine anti-aliasing the 6 point font. UGH.

    Heres the real knee slapper... a CAPITAL T with straight vertical and horizontal edges is invariably aliased to make the edges fuzzy for no goddamned useful reason whatsoever other than hypocrisy or ignorance.

    Why fuzz up hyphens and straight 'T's

    I set AntiAliasing off in every tool I use if I cannot set it to only kick in after point 24 size.

    Off is better than on.

    Whats next... traslucent words on translucent backgrounds over rippled textures and muted low contrasting colors... great.

    what a crappy world.

    1. Re:Anti Alias is backwards and foolish (fuzzy) by Anonymous Coward · · Score: 0

      I think you mean *anti* alias. And yes, I'm dismayed at how that's often treated as synonymous with making fonts blurry.

    2. Re:Anti Alias is backwards and foolish (fuzzy) by KH · · Score: 1

      I think your post deserves a better point.

      I was in a similar opinion until I began using 12.1" LCD screen on an iBook with OS X. I changed my opinion. Anti-aliasing done right is good.

      My eyes don't feel strain when I'm looking at the screen with anti-aliased fonts in Mac OS X any more. I first felt that the text was a bit too blurry. But after a while, I can't even look at any text that is not anti-aliased. I came to the point to prefer 12.1" LCD screen to CRT.

  23. Re:Do I detect a hint of jealousy? by foqn1bo · · Score: 2, Insightful



    Did YOU ever do anything so simple who's outcome was so useful? No, of course not. Otherwise you wouldn't be so damn pissed about it. Two lines of code it may be, but the results are what got people talking about it, and in the end that's all that matters. Except to people like you, of course.

  24. Getting there.... by Anonymous Coward · · Score: 0

    Seems like a simple hack. I wonder how many other simple hacks are just waiting for someone to come along and fix the little bits of nastiness in Linux? One down, many to go, and thank you from someone who stares at ugly fonts all day long.

  25. Why is font rendering in X so bad? by lightspawn · · Score: 5, Interesting

    (half off-topic, I know).

    It's like the text is always too small, too large, or not the one the developer intended.

    Not to troll, but this is exactly the kind of thing that has much more effect than technical people believe.

    Is it something in the design? The freely available fonts?

    1. Re:Why is font rendering in X so bad? by Error27 · · Score: 3, Informative
      >>Not to troll, but this is exactly the kind of thing that has much more effect than technical people believe.

      Most people believe it.

      It's possible to get fonts to look correct... My fonts look fine. The real trick I think, is to get fonts working right by default.

    2. Re:Why is font rendering in X so bad? by lightspawn · · Score: 4, Insightful

      Sure it's possible - for you. But here's a newsflash - most people, (who, by the way, know a lot more about their industries than you) don't know enough about X to configure it. And most don't have either the time or the inclination to learn.

      So how the OS is shipped determins how good the fonts look for most people. If you can make it look better, make that the default.

      The goals of "making everybody see the light and switch to Linux, thus toppling micro$oft" and "forcing every Linux user to spend hundreds of hours learning about the system" are MUTUALLY EXCLUSIVE.

    3. Re:Why is font rendering in X so bad? by Anonymous Coward · · Score: 0

      The real problem I've had is people learning "bad habits" on Windows, and taking longer to learn to use linux than people who have never seen a computer before...

    4. Re:Why is font rendering in X so bad? by Anonymous Coward · · Score: 0

      This post makes no sense. Please answer the original poster's question: why is font support in X so bad? I've got an Amiga 500 sitting here that's older than many of the people who will be replying. Its fonts look fine.

      Explanation? Is X a heap, or do none of the distro manufacturers care enough to get it right?

    5. Re:Why is font rendering in X so bad? by brucet · · Score: 2, Informative

      Check out the XFree86 Font De-uglification HOWTO.

      It has a lot of information on font rendering in X11 and following its advice can really make a big difference in improving the look of the fonts, (especially in Netscape I found).

      -Bruce

    6. Re:Why is font rendering in X so bad? by philglanville · · Score: 1
      Modding this comment Troll is once more a case of /. heads in sand. That last sentence alone is worth all the karma points afforded to the majority of other comments in this discussion.

      Oh hang on, the comment suggested that perhaps it would be a good idea for a Linux desktop to work out of the box. What a stupid idea. Fscking Troll.

    7. Re:Why is font rendering in X so bad? by mcrbids · · Score: 2

      Here here!

      This man speaks WISDOM!

      Honestly, I don't recompile for stuff like this. Do I know how to recompile the kernel? Yep. Done so many times. Do you think I actually DO?

      Not unless there's a real good reason for it.

      I use Linux to get a job done. It does rather well. I like the fact that if I want/need to, the source is available for me to find/fix a bug, and I've found plenty of bugs, (and they are all fixed now in the default distro of XX product)

      But I don't compile stuff unless there's a damn good reason.

      I don't upgrade KDE until there's an RPM. I don't use software I have to compile unless there's no other option. The time spent just isn't worth it.

      So if Alan and his friends at Red Hat decide not to ship with AA fonts, I have ugly fonts. Ugly fonts are still readable, and allow me to get my job done.

      The ability to do something does not mean you have a reason sufficient to actually do it!

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    8. Re:Why is font rendering in X so bad? by RandomPeon · · Score: 1

      Amen.

      This is why I like Mandrake for a desktop machine. Just because I can edit /etc/fstab myself doesn't mean I want to on my laptop. Server, yes, I'll tweak the filesystem settings to hell by hand. Laptop, no, mount the windows partition somewhere logical at statup.

    9. Re:Why is font rendering in X so bad? by MobyTurbo · · Score: 1
      Is it something in the design? The freely available fonts?
      This makes me think that you're not using MS's true type fonts under X. Run the program, included in the X11 tools package, fetchmsttfonts. It will download (quite legally after reading the license; don't forget to press 'q' to get out of your the pager) some of Microsoft's TrueType fonts; including the ones used most frequently on the web. Another possibility is to copy them over from your Windows directory and install them.
  26. Re:Above is now a Complete Mirror by ilovekimmy · · Score: 1

    It doesn't seem to display correctly in ns4. I had to use "view source" in order to read any of the text and get the url of the pictures. Probably you need to double check your table html.

    Thanks for the mirror though!

    --
    I love Kimmy!
  27. Re:Changing two lines of code is "hacking through" by ajmarks · · Score: 1

    Actually, that is a truly elegant hack. The ideal hack is a simple (read elegant) solution to a problem. He managed to massively improve X's text antialiasing by changing a mere two lines of code. Impressive.

    --
    Opinions are not Informative, though they may be Insightful or Interesting.
  28. Re:Above is now a Complete Mirror by Anonymous Coward · · Score: 0

    Maybe you need to ditch your shitty browser.

  29. Greetings. by Anonymous Coward · · Score: 5, Informative


    Here's another mirror. Sorry about those stupid ads.

    I also want emphasize one thing that I say on the website. I can't take a whole lot of credit for the improvement. For sure, the freetype project and Keith Packard, author of XRender and Xft did all of the hard work. I just tweaked a few settings (adjusted glyph proportions and turned off hinting).

    David Chester

    1. Re:Greetings. by sydneyfong · · Score: 1

      Doesn't Geocities have a data transfer rate limit?
      As I write this, the limit has ALREADY been exceeded...

      --
      Don't quote me on this.
    2. Re:Greetings. by Mandrias · · Score: 1

      It sure does have a limit. Does anyone know what it is? It seems everytime I go to any site on geocities now I get the "This site has exceeded..blahblah"

      Makes geocities kind of useless now (supposing you didn't consider it useless before.)

      --
      Use the Z-modem protocol between Information Superhighway routers to compress the plaintext. ~LordOfYourPants
  30. Linux/X86 configuration standard needed bad by Anonymous Coward · · Score: 0, Flamebait
    XFree86 4 supports sub-pixel anti-aliasing (aka ClearType). You just need to put match edit rgba=rgb; in XftConfig.

    Ah, how intuitive... how many hours of reading manpages, HOWTOs and FAQs did it take to figure that one out?

    Goddammit. This is what I really hate in Linux. You have to read tons of obsolete and badly written documentation until you can turn on something as trivial as sub-pixel rendering.

    Linux distributions need to agree on a configuration standard for the kernel and X and build a common GUI for it. Unless you enjoy tweaking your computer for hours and hours instead of getting something productive done at work, the current state of affairs is just unacceptable.

    -October_30th (posting AC because of an IP ban)

    1. Re:Linux/X86 configuration standard needed bad by Anonymous Coward · · Score: 0

      At least you don't have to buy a plus pack for it.

    2. Re:Linux/X86 configuration standard needed bad by taion · · Score: 3, Interesting

      Ah, but you see... I _don't_ use Linux. I use FreeBSD, and that trick is marked _quite_ clearly in the FreeBSD handbook in the fonts subsection of the X section.

      <evangelism>
      I haven't had any problems with finding FreeBSD documentation, actually. Practically everything is on the FreeBSD website or one of its mailing lists, so I don't experience problems here.

      On the other hand, I get to build everything from source, so I need to do everything for hours upon hours anyway! (:
      </evangelism>

      --

      ----------
      Floccinaucinihilipilification - the action or habit of judging something to be worthless
    3. Re:Linux/X86 configuration standard needed bad by Adnans · · Score: 4, Informative

      Ah, how intuitive... how many hours of reading manpages, HOWTOs and FAQs did it take to figure that one out?

      It could have taken you one Google search for "xfree86 subpixel rendering" to find this link!

      -adnans

      --
      "In short: just say NO TO DRUGS, and maybe you won't end up like the Hurd people." --Linus Torvalds
    4. Re:Linux/X86 configuration standard needed bad by moonbender · · Score: 1, Troll

      The point remains, in XP you don't have to RTFM or STFW to figure out how to activate sub-pixel rendering. That's because selecting it from a drop-down-menu is comparatively intuitive, all other restrictions of Windows notwithstanding. :)

      --
      Switch back to Slashdot's D1 system.
    5. Re:Linux/X86 configuration standard needed bad by Adnans · · Score: 2

      That's because selecting it from a drop-down-menu is comparatively intuitive, all other restrictions of Windows notwithstanding. :)

      You know, I think I could enable subpixel rendering *faster* on Linux. On Windows, I would need to *find* the menu where windows hides this option. If you've experienced XP you'll know that this might not be as easy as it sounds. I'm sure I'll be pestered along the way by so called warnings about "damage" to my computer if I enter such and such a directory :-)

      And once the XftConfig langugage is replaced by a more structured XML DTD (soon) it will be much easier to concoct a GUI which would supposedly make activating/deactiving these features easier.

      -adnans

      --
      "In short: just say NO TO DRUGS, and maybe you won't end up like the Hurd people." --Linus Torvalds
    6. Re:Linux/X86 configuration standard needed bad by jweatherley · · Score: 1

      I'm sure I'll be pestered along the way by so called warnings about "damage" to my computer if I enter such and such a directory :-)

      All that moaning when you start poking around the System32|WinNT directories really pisses me off. It's like 2001 A Space Odyssey - Please Dave don't do that, I can't function without IE 6.0...

      --

      --
      Reverse outsourcing: it's the future
    7. Re:Linux/X86 configuration standard needed bad by blkros · · Score: 2

      I actually found this informative, and not at all trollish. Someone mod it up....Oh, I forgot, it mentioned an OS other than Linux in a good light. Well, then, never mind.

      --
      Damnit, Jim, I'm an anarchist, not a F@#$!^& doctor!
    8. Re:Linux/X86 configuration standard needed bad by Archie+Steel · · Score: 2

      "XFree86 4 supports sub-pixel anti-aliasing (aka ClearType). You just need to put match edit rgba=rgb; in XftConfig."

      Ah, how intuitive... how many hours of reading manpages, HOWTOs and FAQs did it take to figure that one out?

      Goddammit. This is what I really hate in Linux. You have to read tons of obsolete and badly written documentation until you can turn on something as trivial as sub-pixel rendering.

      Actually, whenever I want to find out about something, I usually hit the newsgroups to do a search. Usually I find what I need in about fifteen minutes or so. That's what I love about Linux: the community is always eager to help each other out by writing about their experiences. You don't find the same spirit of community in Windows...

      Unless you enjoy tweaking your computer for hours and hours instead of getting something productive done at work, the current state of affairs is just unacceptable.

      You said it, not me: if you enjoy tweaking your machine, you can do it for hours - but you don't have to. If you just want to do productive work, go ahead! In most modern distros (Mandrake in particular) the hardware detect and system setup is automatic...I don't know about sub-pixel AA for laptops, though...it might be good if someone actually made a distro just for laptops, as these usually seem more temperamental than desktops (and not only with Linux: installing Windows on some laptops can be quite complicated...)

      --

      Reminder: find a new sig
    9. Re:Linux/X86 configuration standard needed bad by Mudge+Pinkerton-Bott · · Score: 0

      installing Windows on some laptops can be quite complicated...

      I had a major battle just reinstalling Lose98 on an old desktop machine I was giving away which I had been using as a linux box.

      Never could get the damn PCI bridge support and IDE drivers to work properly :-)

    10. Re:Linux/X86 configuration standard needed bad by Otter · · Score: 2
      I discovered that tweak in the last Slashdot article on Xft, made the same comment Smallest did (although I got modded up rather than down for doing it) and received the same response you made.

      Well, duh. Yes, I know all about Google and Google groups. That's how I get all my Linux setups working eventually. The point is (besides the issue of how I was supposed to search for an option I didn't know exists -- why would I search for "subixel rendering"?) that this is something that should be solved by the installer, not by Google searches by the user.

      And work is apparently underway to do that.

    11. Re:Linux/X86 configuration standard needed bad by drik00 · · Score: 1
      On the other hand, I get to build everything from source, so I need to do everything for hours upon hours anyway! (:

      I've used FreeBSD as well, and, i guess since i am a fellow masochist, I use Slack.

      ...said in a Bill Clinton-esque voice, "I feel your pain."

      --
      Beer, now there's a temporary solution -- Homer Jay S.
    12. Re:Linux/X86 configuration standard needed bad by Anonymous Coward · · Score: 0

      Lose98!! Bwahahaha!! You kill me!

    13. Re:Linux/X86 configuration standard needed bad by Anonymous Coward · · Score: 0

      And the Linux Documentation Project is far larger and more comprehensive than the loose collection of FreeBSD stuff, where you have to track down.

      If you're arguing that BSD beats Linux in the documentation area, you're going to lose badly.

  31. erm... why is hinting enabled then? by koekepeer · · Score: 4, Insightful

    it might just be a typical "ignorance is bliss" situation on my side, but if this effect was largely achieved by disabling the (apparently buggy) hinting support in freetype, why did they enable it in the first place?

    i'm not trying to insult the freetype guys, they've done great work to make X look nicer, but this hack would probably not exist if they would have disabled hinting by default.

    the screenshots do look okay, but are still somewhat blurry. i actually prefer not using antialiasing below 10pt anyway, the fonts quickly become unreadable. but that IMHO of course.

    1. Re:erm... why is hinting enabled then? by Jan+Derk · · Score: 1

      I actually prefer not using antialiasing below 10pt anyway, the fonts quickly become unreadable.

      Which is exactly what Microsoft does.

      To test it, in Windows create a few similar lines in for example Word and use different font sizes (e.g. 12, 10, 8, 6) for each line. Make a screenshot and zoom in using any image editor.

    2. Re:erm... why is hinting enabled then? by spitzak · · Score: 2
      You have not tried XP.

      Correct anti-aliasing like it appears they are doing now allows even the tiny fonts to be antialiased and readable, and it looks like they enable it all the time now. "font smoothing" appeared to be a hack that recognized patterns of pixels, much like the old Macintosh "smooth printing" did.

      The algorithims being used by Xft and OS/X are the same as these new correct anti-aliasing used in XP, and thus both have tried to antialias all fonts. Although there are bugs in Xft, when it works it looks to me that all fonts can be better with antialiasing.

    3. Re:erm... why is hinting enabled then? by Graspee_Leemoor · · Score: 1

      Has anyone else noticed that when you use magnify.exe on a cleartype display, it turns the cleartype off?

      Is this to protect trade secrets- I doubt it, since you can just take a screengrab and zoom that. It's actually more likely to be that because you are blowing up the individual pixels rather than displaying the same text at a higher point size it would be a lot harder to read the cleartyped text- it's like you're on acid- colours everywhere man!

      No point to this really, I just thought it was interesting.

      graspee

  32. AA text fuzzy? by rubinson · · Score: 4, Insightful

    I'm really not trying to troll here but anti-aliased text has always looked fuzzy to me. In the screen shots, for example, the spacing and sizing of the AA text is certainly nicer but the default text seems shaper and crisper. Am I wrong here? Joel Spolsky agrees with me but everyone else seems so excited about AA text that I have to wonder if I'm missing something.

    1. Re:AA text fuzzy? by BrookHarty · · Score: 2

      I would agree, then I started using WinXP and cleartype. Cleartype amazed me when I first saw it, it is perfect anti-aliasing.

      I cant wait to see something like this as standard on linux. My work computer is a sunblade 100 running linux, Only thing that it needs is good AA fonts.

    2. Re:AA text fuzzy? by amorsen · · Score: 1

      Indeed.I was agreeing with David Chester that the improvement was immense, just wondering why he had put the "after" image on the left. Then I figured out he didn't, he's just one of those guys who likes his text blurry and pretty instead of sharp and ugly.

      Antialiasing is a neat tool, used in moderation. I just dream of 200dpi screens where it's pointless.

      --
      Finally! A year of moderation! Ready for 2019?
    3. Re:AA text fuzzy? by JabberWokky · · Score: 2
      It really depends on your monitor and the settings on your video card. I've had configurations where the AA looked better, and others (most) where I prefered just having nonantialiased best. The antialiased icons in KDE, however, look great. But then, I'm not looking for the details nor demanding instant recognition of many dozens of them per second.

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
    4. Re:AA text fuzzy? by Darren+Winsper · · Score: 2, Interesting

      AA has always been a matter of preference. My first computer had RISC OS on it, which had anti-aliased font rendering by default from the get-go. I guess I just got used to it and expect it. The one place I don't like AA is in my X terminals, which is funny since the one place RISC OS never had anti-aliasing was its command line :)

    5. Re:AA text fuzzy? by frantzdb · · Score: 3, Informative

      It is available for X. See my other post on this page.

      --Ben

    6. Re:AA text fuzzy? by Electrum · · Score: 2

      I agree that those screen shots look blurry, but if you get used to the anti aliasing on Windows 2000, which only does larger fonts, it is definitely an improvement. I have friends with laptops (LCD's) and XP, and they absolutely love ClearType. So I think it's a combination of getting used to it (it won't look good immediately, since you are used to sharp, jagged edges) and getting a decent font renderer (which Linux may or may not have). Give yourself a few days of it and see if it looks better to you. You might end up wishing you'd done that a long time ago.

    7. Re:AA text fuzzy? by twoshortplanks · · Score: 1

      Yes, RISC OS has antilaising from the go. Even sub-pixel antialiasing (what it seems ClearType is now only even implementing.)

      Interestingly though, RISC OS originally used non-aliased fonts for system icons and terminal (well '!edit') stuff.

      Later versions changed this (when the screen resolution upped) but for the start it was plain old pixel perfect bitmap fonts.

      --
      -- Sorry, I can't think of anything funny to say here.
    8. Re:AA text fuzzy? by epukinsk · · Score: 2

      With this hack, if the edge of a character goes straight down the middle of a pixel, the pixel is lit up at 50% brightness. That means if you have a 1px wide black line that straddles the border between pixels, you end up seeing a 2px wide gray line. On the other hand, without AA, the renderer forces the line to one side or the other, which is where the aliasing comes from.

      ClearType takes something a of a middle of the road approach. It takes the hinting into account, trying to push things towards pixel borders when it can, but not forcing it too much. This is what XFree does by default, the only thing is that it does the hinting rather poorly, so you still see a lot of the effects of "forcing" the text towards the pixel boundaries.

      Evil empire or not, ClearType on a CRT is by far the cleanest AA screen displayed type I've ever seen. I imagine it's even sharper on an LCD. I can't wait for Linux to develop a competetive solution (we're almost there!)

      -Erik

    9. Re:AA text fuzzy? by CDWert · · Score: 2

      I have to agree 100% here...

      I always feel like Im looking at one of those 'are you stoned ?' t shirts with blury text.

      I have been hammering away at aconsole since 79, I have 20-20 vision in my 30's and have singularly NEVER gotten a headache from looking at a screen to long, I hated when ambers came out I like green.

      But you are not alone, everytime Im looking at AA I try to focus.

      Your not missing anything, who is anyone to tell you youre wrong, like the old myopic lady that has her fonts jacked up to the size of playing cards, it works for her.

      NOW This is true on a screen, this is transient infromation, mine isnt up long enough to have to look good.

      --
      Sig went tro...aahemmm.....fishing........
    10. Re:AA text fuzzy? by StarTux · · Score: 2

      You're not trolling as quite a lot of people just do not like AA text, even in the Mac world.

      Matt

    11. Re:AA text fuzzy? by foobar104 · · Score: 2

      Antialiasing is a neat tool, used in moderation. I just dream of 200dpi screens where it's pointless.

      At work I have two monitors on my desk, both 21" Sonys. The one on the left runs at 1280x1024. The one on the right runs at 2048x1556 (I think). When I read PDFs, I open Acrobat full-screen on the right display, with AA turned on. Sitting about two feet away from the screen, as I usually do, the PDF is then almost indistinguishable from the printed page.

      Medium-high resolution (> 120 dots per inch) with decent AA is a powerful combination.

    12. Re:AA text fuzzy? by Mulletroll · · Score: 1

      ClearType isn't meant for CRTs. It looks awful on CRTs, because it isn't meant for CRTs. If you think it looks good, well, whatever makes you happy.

      It is, however, the best fonts you'll ever see on an LCD.

    13. Re:AA text fuzzy? by spitzak · · Score: 2
      Although "Clear Type" as described by MicroSoft is useless on CRT's, there sure are a lot of reports of people here saying they "clicked ClearType on and the display is better". They are either delusional or the "Clear Type checkbox" is also changing the basic anti-aliasing algorithim.

      Certainly the XP machines I have seen in stores (which are probably at the default settings) have nice anti-aliasing on the fonts in the dialog boxes. I would consider it the equal of what I have seen on OSX and from Xft when it works. I don't think we will see better until hardware is added to properly composite the a-a images in gamma corrected space.

      So I suspect people are clicking the checkmark, Windows is figuring out they don't have an LCD and not actually changing things, and the people are fooling themselves into thinking the display is better when in fact it is the same.

    14. Re:AA text fuzzy? by spitzak · · Score: 2
      *both* those images had antialiasing turned on.

      The left image had the (apparently broken) "hinting" turned on, which mangled the sizes of the characters. But both then rendered the resulting characters with the same anti-aliasing algorithim.

    15. Re:AA text fuzzy? by amorsen · · Score: 1

      Both halves have antialiasing, but the left half (which the author of the article dislikes) is the one I prefer, by far. Anyway, I got motivated to get antialiasing working in Gnome. I compiled freetype with the patented hinting turned on (legal for a little while longer since I'm in Denmark), and I'm very impressed.

      --
      Finally! A year of moderation! Ready for 2019?
  33. Re:Do I detect a hint of jealousy? by Anonymous Coward · · Score: 0

    Quoted from the mosaicii page: "To be clear, I changed only two lines of code. Essentially, I disabled a process that the freetype library uses called 'hinting'."

    Jealous or not, this is not what i would call a hack. IMO the man deserves credit indeed for pointing out a problem with xft, but a hack, no i dont see that either. Makes me wonder how the xft guys testet their stuff, but hey, i'm only jealous.

  34. Re: Shitty browser by batand · · Score: 0, Troll
    Well well,
    And I guess You are using Galeon, Mozilla or Konqueror. Wow, you are so cool. Unfortunately they don't display some IE-only sites pretty well. So you also have to ditch YOUR shitty browser.

    Go troll somewhere else

  35. Re:Changing two lines of code is "hacking through" by sydneyfong · · Score: 1

    Two lines or two thousand lines, if it fixes an issue that's a pain the the @$$, and if the slashdot community is interested to know, then it's worth posting on slashdot.

    --
    Don't quote me on this.
  36. The old font is better by Anonymous Coward · · Score: 0

    I really like the olds fonts better. They look sharper and darker, but don't got jacky edges.
    I have thought of this as long as there have been antialiased in gnome. And everytime I am on a windows machine i feel the antialising is much blurrier.

    This hack make it look eksaclty like in windows, so it hasn't been me that has been halucinating all this time :)

    It is clearly that hinting doesn do a really bad job at the moment. But antialising should make edges smoother, not blur the font out.

    I really hope developers see font's the same way as I do, or at least give me a choice of different antialising methods in linux.

  37. Font antialiasing is a crutch by Proc6 · · Score: 4, Funny

    Why can't people see the real answer is just to develop ultra high resolution displays finer than the resolution of the human eye, then we can just make razor sharp fonts like a high quality laser printer. :) Okay, so we'd need a 4gig GeForce20 Ultra, but it would look 3R33T.

    --

    I'm Rick James with mod points biatch!

    1. Re:Font antialiasing is a crutch by Anonymous Coward · · Score: 1, Insightful

      I completely agree.

      The fact that so many people have gone so crazy over ClearType (a half-assed, ugly hack to squeeze in more pixels *only* in the horizontal direction) is a pretty good indication that people want more resolution in their displays.

      Two things need to happen. One, more stuff needs to be resolution-independent. Right now, if you jack up the res on most Windows users' systems, they complain that things are "too small". Setting the size and the res on something should be different operations. Seriously.

      Second, we need to get those high-res monitors out!

      How much more would you pay for a monitor with 150 or 200 dpi?

    2. Re:Font antialiasing is a crutch by floateyedumpi · · Score: 1

      Why wait?

      Just slap down your credit card and for only $22k this puppy is yours. A generation with vi users who insist on using the "5x7" font to squeeze more xterms on display would suffer from permanent squintitis, but eventually, high-resolution fonts would liberate us from this skullduggerry.

    3. Re:Font antialiasing is a crutch by floateyedumpi · · Score: 1

      Actually, it's even better. You can order it now.

  38. that's something completely different by markj02 · · Score: 5, Insightful
    Computer text is usually rendered onto a solid color and displayed on a high-quality, high-bandwidth device. That has almost nothing to do with rendering text for overlay onto a pictorial background and display on a low-pass, noisy device like broadcast television. Rendering text for GUIs the way you render it for television would be like slapping people in the face to get their attention and just would drive them crazy.

    Anti-aliasing for computer displays is overrated anyway. Whether it helps or hurts readability depends on the font and font size, and on high resolution displays it is pointless. Printed matter isn't anti-aliased either, and printed matter is the gold standard for good looking text.

    So, if you want text that looks nice, get yourself a 150dpi or higher monitor and don't bother with anti-aliasing. Anything else is a kludge.

    1. Re:that's something completely different by nzhavok · · Score: 2, Funny

      OK that has to be the most rediculous argument I've heard today: "if you want text that looks nice, get yourself a 150dpi or higher monitor". Ummm why? I'm using opera in windows XP at the moment and guess what the text looks great, if I reboot into linux and into non aliased fonts in Konqueror half the text I see will look like crap.

      You don't always have to throw hardware at a problem to solve it, that's MCSE thinking!

      --

      He who defends everything, defends nothing. -- Fredrick The Great
    2. Re:that's something completely different by epukinsk · · Score: 2

      So, if you want text that looks nice, get yourself a 150dpi or higher monitor and don't bother with anti-aliasing.

      Could you please point me to the resolution independent graphics engine for Linux that would be necessary to take advantage of a 150dpi monitor?

      Otherwise it's still 72dpi, it's just that the inches are smaller than usual.

      -Erik

    3. Re:that's something completely different by GigsVT · · Score: 2

      Otherwise it's still 72dpi, it's just that the inches are smaller than usual.

      This has to be the most ludicrous thing I have ever read on Slashdot.

      "My penis is 12 inches long, it's just that the inches are smaller than normal"

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    4. Re:that's something completely different by epukinsk · · Score: 2

      What I'm saying is that you're not increasing the effective resolution if just increase the display resolution. If your characters are 20 pixels high, and you double the screen resolution, the characters are still 20 pixels high. They are no sharper. In order to take advantage of the extra resolution you need a display engine that displays everything twice as big.

      -Erik

    5. Re:that's something completely different by Anonymous Coward · · Score: 0

      I'm using opera in windows XP at the moment and guess what the text looks great

      Yes, to you. The original poster was complaining that "no OS as yet does this for it's screen display fonts, which is a pity, as it makes a BIG difference". Cleartype looks great if you don't know what you're talking about. There are still improvements to be made.

    6. Re:that's something completely different by VoiceOfRaisin · · Score: 1

      Printed matter isn't anti-aliased either, and printed matter is the gold standard for good looking text.

      uh. printed matter isnt using pixels either. its already rounded where it needs to be. anti-aliasing is used to get rid of pixel "stepping". if you arent even using pixels to begin with, why would you want anti-aliasing?

      score 5 my ass..

    7. Re:that's something completely different by Anonymous Coward · · Score: 0

      That has to be the absolute number one contender for dumbass remark of the day. Do you really believe that the electrons sent to your screen are somehow square? Or that the patches of phosphor they light up are perfectly square? Sure, they "approach" being square, but that's just like a printer can approach something square by putting down a whole batch of round dots.

    8. Re:that's something completely different by Anonymous Coward · · Score: 0

      Put the anime kiddie porn on pause and mod this up, you fucking idiotic Slashdot moderators.

    9. Re:that's something completely different by Anonymous Coward · · Score: 0

      That's exactly how X11 (and Windows, to a degree) works -- a "point" is supposed to be unit of measurement just like an inch, not a surrogate for "pixel".

  39. Xft and fontconfig by po8 · · Score: 4, Informative

    XFree86 4 supports sub-pixel anti-aliasing (aka ClearType). You just need to put match edit rgba=rgb; in XftConfig.

    Ah, how intuitive... how many hours of reading manpages, HOWTOs and FAQs did it take to figure that one out?

    Be patient. Keith Packard is pretty well done with his design and implementation of a new font selection configuration mechanism currently known as "fontconfig". Fontconfig separates the font selection from the rest of Xft, allowing other applications such as printer drivers to select fonts using the same mechanism and policy as X applications.

    In the process, fontconfig replaces the arcane Xft configuration language with an XML DTD. This should allow easier hand-editing of this configuration. More importantly, it should allow GUI toolkits such as KDE and Gnome to easily put a GUI interface on font selection configuration. Hopefully, in a few months you'll be able to just click a button to get sub-pixel font rendering with Xft.

    1. Re:Xft and fontconfig by moZer · · Score: 1

      Sooner than you might think, actually. In KDE3 there is a section in KControl which lets you configure Xft stuff, such as "exclude range" of fonts to AA, and an "enable subpixel hinting" checkbox.

      --
      Hello, my name is Robert Lerner, and I pronounce Lernux as "99% cpu"
    2. Re:Xft and fontconfig by Anonymous Coward · · Score: 0

      IMHO a flatline, straightforward scripting/configuration language is MUCH more human-readable than XML.

      Mac OS X's pinfo format is a shining example of how unreadable XML can be. Look at Mac OS X's pinfo format, which is some garbled XML nonsense that is sure to make your eyes sore. Then look at GNUstep's pinfo format which is simply Variable = "Value";. Which one would you rather edit by hand?

    3. Re:Xft and fontconfig by tempfile · · Score: 1

      So what you're saying is that somebody with influence (X core developer) is developing a unified font selector/manager? Distribution-independant? Simple? Not obsolete and completely backwards? What's next, Hell freezing over and the RIAA becoming nice?

  40. Kinda sorta bloatware by colmore · · Score: 3, Insightful

    This really isn't meant to be a flame.

    This seems to me to be a technology of limited use. Even at high screen resolutions almost all text is rendered at 12 pt, at which size anti-aliasing is more or less worthless.

    It makes title bars look pretty. It makes big text on web pages look pretty. But for 99% of the text you see, it doesn't do much.

    I don't want to discount the effort. I mean, if this program is as good as the screenshots suggest, then excellent job. (I haven't been able to test it out myself yet)

    I guess I'm just not used to the modern computing era when it really is possible to throw in everything and the kitchen sink. I've gotta keep reminding myself that if something takes up an extra meg of Ram/swap and thirty megs of drivespace, that really doesn't matter. All of my instincts are still roughly in the 486 era, and I still think "why?" at every feature.

    I just think at this point, the opensource community needs to give up its right to accuse others of bloatware. Bloatware is the modern standard, and if we don't embrace it, we look feature-poor. But Linux in the form that nearly everyone sees it and uses it today is bloatware. Well designed bloatware, for the most part, but bloatware nontheless.

    --
    In Capitalist America, bank robs you!
    1. Re:Kinda sorta bloatware by nagora · · Score: 2
      But for 99% of the text you see, it doesn't do much.

      When using fonts not specifically designed for low-res (300dpi and under) it does make a big difference; I find the web really clear in GillSans but without AA Gill just turns into blobs in many situations.

      TWW

      --
      "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
    2. Re:Kinda sorta bloatware by Anonymous Coward · · Score: 0

      It's not some extra resource hogging feature. It's a small modification to something that's already there.

    3. Re:Kinda sorta bloatware by Anonymous Coward · · Score: 0

      maybe it look nice for 12pt fonts for english text without antialiasing.But for CJK fonts it really look much better

    4. Re:Kinda sorta bloatware by foobar104 · · Score: 2

      This really isn't meant to be a flame.

      This seems to me to be a technology of limited use. Even at high color depths almost all text is rendered as black-on-white, which makes color pretty much worthless.

      It makes title bars look pretty. It makes big pictures on web pages look pretty. But for 99% of the text you see, it doesn't do much.

      reducto ad absurdum

      ;-)

    5. Re:Kinda sorta bloatware by Hadlock · · Score: 1

      i'm sure you can write a line of code that goes somthing like

      if font >= 14
      do anti.aliasing();

      OS X allows for this, you just have to text edit some files; or download a copy of tinker tool. AA doesn't come on unless it's size 14 or higher. scrolling web pages all of a sudden got much faster :)

      --
      moox. for a new generation.
  41. Re:Changing two lines of code is "hacking through" by sumengen · · Score: 2, Interesting

    Do you think he got inspired by god and changed those two lines. There must be background work where he did all the tests and research about this.

    An analogy from mathematics is about how mathematicians come up with proofs to theorems. They first come up with a theorem which is a solution to a problem hoping their guess (or guesses) are correct. Then starting with the solution, step by step try to prove back to the original problem. Once they come up with a solution, it is probably 10 pages long and pretty ugly. Then they start refining the proof. At the end you have 3 lines of proof, which makes you think "How did this guy come up with this cute proof?".

  42. Re:Changing two lines of code is "hacking through" by Anonymous Coward · · Score: 0

    A truly elegant hack? He TURNED OFF a broken feature!

    Look, I think it's good that he fixed it, and I'm all for him publishing these changes, but a front page story on slashdot?? Please.

  43. Re:Changing two lines of code is "hacking through" by Anonymous Coward · · Score: 0

    that's just moronic....think about it ..... lol

  44. Re:Above is now a Complete .. for the Paranoid by hbo · · Score: 1
    In case you are squeamish about downloading an archive from a drop-of-the-hat mirror, here's the md5sum of the original:

    3d4ab57083ca817cc2cbeef66134875d


    The sum on the mirrored copy referenced above matched as of ten minutes ago. (00:30 PST)
    --

    "Even if you are on the right track, you'll get run over if you just sit there" - Will Rogers

  45. Font rendering in the X server by kcbrown · · Score: 5, Interesting
    I've asked this before, but nobody has given me a terribly good answer yet.

    Why isn't font rendering done properly in the X server itself, where font rendering originally was done? Why must it be done client side?

    I mean, the X server already knows what kind of visual you're trying to render to, so it's really just a question of getting the X server to pick up the necessary font information (transparency information at the edges of the letters if you insist on the X server itself not understanding how to render fonts). And the types used for the font rendering calls are all opaque anyway, so it shouldn't matter whether or not the font structure in the GC (on the server) stores additional information about the font being rendered, right?

    All it would take in addition to the improved font rendering code in the X server is the definition of a new font server protocol that allows the transmission of more than just bitmap information to the X server from the font server and you'd be done, right?

    So why isn't this being done instead of these client-side hacks that require magic rendering extensions (which are quite cool in and of themselves, but why should the client have to have a full set of fonts stored locally in order to do antialiased text?) ? The biggest advantage of this scheme by far is that you don't have to have any magic support for antialiased fonts in your toolkits: you get antialiased fonts for everything no matter what toolkit it's using (even Athena widgets would have antialiased text if the antialiased font rendering were done entirely server-side).

    Or is this already what's being done, but I somehow missed it?

    --
    Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
    1. Re:Font rendering in the X server by Adnans · · Score: 4, Informative

      This might explain why client-side rendering was chosen. There are pros and cons but the pros seem to outweight the cons by far.

      The biggest advantage of this scheme by far is that you don't have to have any magic support for antialiased fonts in your toolkits

      This doesn't seem to be a problem since most populair toolkits already support the Render extension. Remember, RENDER is a completely new rendering system for X, not just anti-aliasing.

      ...even Athena widgets...

      If there was great demand for this it would already have happenend don't you think? Changing the Xaw toolkit to support RENDER would not be too hard I think.

      -adnans

      --
      "In short: just say NO TO DRUGS, and maybe you won't end up like the Hurd people." --Linus Torvalds
    2. Re:Font rendering in the X server by Darren+Winsper · · Score: 2

      I'm no XFree expert, but this is what I think is going on.

      The anti-aliasing is a small part of what is the XRender extension. XRender is not so much an ordinary extension but a whole new rendering system the XFree developers are developing.

      The standard X11 protocol requires 1-bit bitmapped fonts and the XFree team couldn't just up and break it so fundamentally, so they did XRender. While they were at it, they implimented things like alpha-blending (Which is pretty much needed for proper AA anyway) and some other things, but I don't know specifics.

      The AA has gotten a lot of attention simply because it solved a major shortcoming of X, whereas the others are just nice.

      Now, because the AA is part of XRender and not a replacement font subsystem, each individual toolkit has to be adapted to use The XRender font system, as opposed to the normal X11 font subsystem. With the advent of GNOME2, both major toolkits will have support for AA fonts, which is good enough for me :)

    3. Re:Font rendering in the X server by kcbrown · · Score: 5, Insightful
      Look, my comment is in no way a criticism of RENDER. I can see lots of advantages to having that extension, and it's excellent work.

      What I'm talking about is fonts, and only fonts.

      Antialiased text might be an interesting and cool use of the RENDER extension, but it's not a particularly good use, and here's why:

      1. Every toolkit for which you want antialiased text must be compiled with Xft support (or whatever client-side font handler supports the RENDER extension).
      2. Every client machine on which you're running an X application must not only have the above mentioned toolkits, but must also have a set of fonts to be used by the client.
      3. You now have to concern yourself with whether or not the fonts are all the same on all of the client machines you're going to use.
      4. If you want to use a font on multiple clients, you have to install it on all of those clients, instead of simply sticking it on the font server.
      5. Since there's no guarantee that the X server supports the RENDER extension, every client (or toolkit that the client uses -- this could be included in Xft, for instance) has to have fallback code which uses the standard X font calls in case the RENDER extension is unavailable. But this is a big problem, because now you have to concern yourself with whether your font metrics (among other things) for your standard server-side fonts are the same as the ones for the fonts on the client, since the font set being used by the X server is different than the font set being used by the client.
      6. Proprietary toolkits and clients (particularly those that are statically linked) gain no benefit at all -- they use non-antialiased fonts as usual.
      7. All the world isn't Unix, you know. What are you going to do about those X clients that are running on systems on which your toolkits won't even compile (VMS comes to mind, outdated as it may be)? X isn't just supposed to be network-based, it's supposed to be platform independent, but this method of font handling is anything but.

      The end result that I see is that client side font rendering doesn't give you any real advantages over server side rendering, with the sole exception (that I can think of, at any rate) that the client will know that the font being displayed on the screen and the font being used for printing will have the same metrics and appearance. Other than that, you take a performance hit (client has to upload the font to the server every time it wants to use it, the same font will be uploaded multiple times by multiple clients or at least multiple toolkits, since it's possible for the toolkit to cache the font locally in shared memory or something. I'm making certain assumptions about the implementation here, though), you get inconsistent font handling and rendering (what says that toolkit A will use the same font set as toolkit B?), you'll probably use a lot more in the way of server resources if you're running clients on lots of different machines, and worst of all your desktop looks really inconsistent. The only time you don't really run into most of this is when the client and server are on the same machine. While I'll admit that this is most of the time, if you're going to give up some of the advantages of a networked display system why stop there?

      It seems to me that this way of handling fonts does exactly the same thing for fonts that client-side GUI toolkits does for look and feel: causes a ton of confusion, makes it difficult to get a consistent look and feel on the desktop, and causes a lot of waste in the process.

      So the bottom line is that, as far as I can see, what we really need is the RENDER extension and server-side antialiased font handling. (We also need server-side toolkits, but that's a discussion for another day).

      --
      Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
    4. Re:Font rendering in the X server by kcbrown · · Score: 2
      The standard X11 protocol requires 1-bit bitmapped fonts and the XFree team couldn't just up and break it so fundamentally, so they did XRender. While they were at it, they implimented things like alpha-blending (Which is pretty much needed for proper AA anyway) and some other things, but I don't know specifics.

      I haven't looked at the X protocol itself, but the Xlib call to draw text on the screen is XDrawString() and XDrawText(). In both cases, you use a GC specifier, and the GC itself is what contains which font you want to use to perform the text drawing operation.

      While the documentation may specify how exactly fonts are drawn, the GC is an opaque data type. That implies that it should be possible to change its internal representation on the server without any client-side consequences (I'm assuming that the GC really is a server side construct and not an Xlib construct).

      But if you must make client-side changes in order to support antialiased fonts, there's only one proper place to do it: Xlib itself. At least then you'll automatically get antialiased font support in all of your toolkits on that client, without having to change a thing in those toolkits (because you can change the Xlib implementations of XLoadFont(), XDrawString(), etc., as needed).

      --
      Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
    5. Re:Font rendering in the X server by evbergen · · Score: 3, Interesting

      I agree. Your last remark (the need for server-side toolkits) also hits home IMHO, and I'd suggest a few more things for them:

      1. the elements in these toolkits must be able to be defined in terms of server primitives orother elements, using a platform independent special-purpose language. And not only their appearance but also where simple interactions are concerned, such as a 'down' button that moves a slide down and a scrollable view up;

      2. the server must be able to receive these definitions from the client itself or to fetch it from an external source on behalf of the client (honor server security by making sure the definition language's scope is limited to the user interface only);

      3. the server must be able to cache these elements using unique identifiers by which they can be referenced. These should have two parts: a functional part and an appearance part. Clients specify an element's functional part as a requirement, and its appearance part as a hint, in order for users to be able to provide alternatives (i.e. theme support);

      4. a proper encryption and authentication model for the X channel.

      This makes the server able to operate more independently, instead of requiring a round trip to the client for every simple operation, making operation over low-security, low-bandwith, high-latency networks such as the internet *much* more practical.

      Potentially, this would provide a lot more elegant distributed computing model than the whole mess we have now for exporting user interfaces, with http, html, the DOM, jscript and all those gross hacks that seem impossible to get right if you look at today's browsers.

      What do you think?

      --
      All generalizations are false, including this one. (Mark Twain)
    6. Re:Font rendering in the X server by Anonymous Coward · · Score: 0
      All the world isn't Unix, you know. What are you going to do about those X clients that are running on systems on which your toolkits won't even compile (VMS comes to mind, outdated as it may be)? X isn't just supposed to be network-based, it's supposed to be platform independent, but this method of font handling is anything but.

      The merits of font server vs client details notwithstanding you bring up a good point w.r.t. other proprietary systems and X fonts. The layout for fonts under X is outdated. The RENDER stuff in Xfree is very unlikely to be installed on a commercial unix (Tru64, HP-UX, AIX, SunOS, etc.). The situation reminds me a bit of Mac OS X: Apple never bothered building a display server for it and farmed the task out to one of their loyal ISV (Mach, formerly known as vendors of the MachTen BSD emulation on Mac OS).

      As far as VMS is concerned: there have been only about two types of display servers for VMS. Freebies built in the POSIX environment (including ports of tvtwm et al). And the commercial DECWindows(tm) offering from DEC (er Compaq). The very latest DECWindows releases are stuck on Motif as in:

      DECwindows xlib ident is DW T1.2-6010222 DECwindows OSF/Motif Toolkit ident is DW T1.2-6010222

      Hint: To install X fonts on VMS use the FONT command. Unfortunately noone has yet ported XfreeAXP to VMS (yet).

    7. Re:Font rendering in the X server by Anonymous Coward · · Score: 0

      Hey, thanks for the explanation. So, there is no font AA in X and there is not going to be. This client-side stuff is useless -- my Mozilla, xterm and 5 thousand other old X apps will never have it.

      Thanks for the useless app to whoever is working on font AA!

    8. Re:Font rendering in the X server by spitzak · · Score: 2
      Re: #5, the need for fallback Xlib font code: actually the Xft extension is the first example I have ever seen in X where an extension is written correctly, it contains the fallback code! If your program uses it, it will still work if connected to an X server, because Xft will recognize this, and emulate itself as well as possible on it (it does a good job, too, the quality is equal to fltk where I worked quite a lot on selecting the proper Xlib fonts).

      I want to congratulate Keith on actually doing this right. But one of the big problems with X is that no other "extension" has ever done this, forcing every programmer who wants to use the extension to "detect" it and have fallback code. This has been true for 15 years, back to the shared memory extension. This is a very bad design because it strongly discourages uses of the extensions.

      Your other comments have merit, though I think client-side rendering is probably necessary for accurate word processors. But they really should rewrite Xlib and replace the font calls with something that calls Xft so that every program gets antialiased fonts. It is shameful that they have not done this, it means that even if we have the most beautiful AA in the world half the programs on Linux will still look ancient.

    9. Re:Font rendering in the X server by acoopersmith · · Score: 3, Informative

      Sun is working on advanced font rendering and layout in the X server. The project is still in the early stages of development, but since it's open source, you can see what's there so far at http://stsf.sourceforge.net/.

  46. Re:Above is now a Complete Mirror by Raphael · · Score: 2, Informative
    It doesn't seem to display correctly in ns4. I had to use "view source" in order to read any of the text and get the url of the pictures.
    Probably you need to double check your table html.

    This is not only a problem with Netscape. The HTML code of the page is broken: there is a <table> tag at the beginning of the page and it is never closed. The table structure is incorrect anyway, because the <table> tag is immediately followed by <td> without a <tr>. The same problem occurs for a <center> tag and a <font> tag that are never closed (besides, the <font> tag occurs just before a block-level <h2> tag, so it should have no effect). Also, all color specifications are incorrect: missing quotes, missing "#" sign before the hex values.

    MrP-, if you are mirroring this slashdotted page, it would be a public service to fix the most obvious errors so that the mirrored page can be viewed by most browsers and passes at least some minimal HTML validation tests. The easiest way to fix the problem would be to remove the offending tags (2nd, 3rd and 4th line in the original page).

    I highly recommend checking the page with HTML Tidy or with the W3C validator.

    --
    -Raphaël
  47. that's something completely different, -1 clueless by SurfsUp · · Score: 1

    Computer text is usually rendered onto a solid color

    Usually. What about when it isn't?

    and displayed on a high-quality, high-bandwidth device. That has almost nothing to do with rendering text for overlay onto a pictorial background and display on a low-pass, noisy device like broadcast television. Rendering text for GUIs the way you render it for television would be like slapping people in the face to get their attention and just would drive them crazy.

    Yes, they wouldn't be able to deal with the fact the the text doesn't look butt-ugly as usual.

    Anti-aliasing for computer displays is overrated anyway. Whether it helps or hurts readability depends on the font and font size, and on high resolution displays it is pointless. Printed matter isn't anti-aliased either, and printed matter is the gold standard for good looking text.

    Bzzzt. Printing is analog, it's naturally anti-aliased.

    So, if you want text that looks nice, get yourself a 150dpi or higher monitor and don't bother with anti-aliasing. Anything else is a kludge

    Think about anti-aliased text on a 150 dpi monitor. Or, no, first find out what anti-aliasing is.

    --
    Life's a bitch but somebody's gotta do it.
  48. mcgill? mcgill? by Anonymous Coward · · Score: 0

    Speak to me. McGill? Dear God NO!!!. It's been /.'d.

  49. Re:Above is now a Complete Mirror by Anonymous Coward · · Score: 0

    At least he provided a mirror. Since you took all that time to figure out what the problems were why don't you do a public service and provide a mirror? Or possibly even email MrP there your fixes.

    Otherwise don't whine.

  50. Re:Changing two lines of code is "hacking through" by JabberWokky · · Score: 2
    Do you think he got inspired by god and changed those two lines. There must be background work where he did all the tests and research about this.

    Down at the bottom of the page, he shows his older method which was individually optomized for a particular font (he chose Times New Roman), and which he later abandoned. So yes, he explored at least one entire line of thought before abandoning it and apply what he had learned from that.

    --
    Evan

    --
    "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
  51. Re:Above is now a Complete Mirror by Anonymous Coward · · Score: 0

    oh man... at least he took the time to check exactly what was wrong in the page. he even explained how to fix it easily. and maybe he also emailed MrP. maybe it is not easy for him to set up another mirror. how do you know? who is whining here?

  52. Re: Shitty browser by HeUnique · · Score: 4, Informative

    On the contrary...

    If there is a browser that you got a chance to see an IE only web site is Konqueror on KDE 3.0 - it got the most compatible with MSIE javascript and rendering techniques...

    --
    Hetz (Heunique)
  53. Disabling hinting is NOT the way to go by Johan+Veenstra · · Score: 4, Insightful

    This guy just disabled hinting and adjusted the rendering resolution to his liking.

    Without hinting, fonts will never look as good as they do on MS Windows or OS X.

    Messing with the rendering resolution to make certain fonts look a little bit better seems to be the kind of hacking a chicken without a head could do.

    This is not the ueberhack slashdot makes it out to be. This is not news.

    regards,

    Johan V.

    1. Re:Disabling hinting is NOT the way to go by red5 · · Score: 1

      I cind of like the before pictures better then the after ones.
      The color looks washed out in the after pics.
      I am looking at it on an LCD screen though that might have somthing to do with it.

      --
      I know I'm going to hell, I'm just trying to get good seats.
    2. Re:Disabling hinting is NOT the way to go by Archie+Steel · · Score: 2

      Perhaps, but I tried it last night and all the fonts look much, much better. On my 19" monitor in 1280x1024, they even look better than any Windows AA I've seen so far! So who cares if it was simple to do: it works, and very, very well! In that sense, it is a major breakthrough: Linux (and Unix in general, I guess) now has nicer AA fonts than Windows, and at least equal to those of OS X.

      --

      Reminder: find a new sig
    3. Re:Disabling hinting is NOT the way to go by BigSven · · Score: 3, Informative

      Actually the result of hinting depends on two things. First, the font needs to be hinted well. Unfortunately only very few fonts are well-hinted. For those that aren't it makes indeed sense to turn hinting off entirely. Second, your font renderer needs to support the hinting information embedded into the font.

      TrueType fonts have bytecode with hinting information that can be interpreted by the renderer. This is what freetype-2.0 did up to version 2.0.1. Due to patent issues this feature was turned off by default in version 2.0.2. All newer versions of freetype use something what they call autohinter. While this gives better results for badly hinted or unhinted fonts, it does not (yet) achieve the excellent results you get from using the hints embedded in well-hinted fonts.

      The solution is thus not to disable hinting but to enable the bytecode interpreter in your freetype2 libs. Of course you also need some decent fonts.

    4. Re:Disabling hinting is NOT the way to go by daw · · Score: 3, Informative

      It's true, disabling hinting is just plain stupid. The real problem is that TrueType font hinting is patented (by Apple!) and so though the freetype library (used by Xft for font rendering) has the code to do it properly, it's disabled by default in favor of an "automatic hinting engine" that probably makes things worse. So I'm not surprised that disabling hinting in a default build of freetype makes things look better. But it's a really dumb way to proceed.

      The right solution is to recompile freetype with the patented hinting turned ON, and the automatic hinting engine turned OFF. It really looks good, way better than either of that guy's screenshots.

    5. Re:Disabling hinting is NOT the way to go by Anonymous Coward · · Score: 0

      Disabling hinting might result in some fonts that make a heavy use of hinting look terrible.
      The fact that is looks nice on couple of fonts you are using does not mean it will look ok on thousands of fonts out there.
      Basically, it is a nasty hack that will come back to bite you in the ass.

    6. Re:Disabling hinting is NOT the way to go by Archie+Steel · · Score: 2

      Well, I went through all the 100+ TT fonts I have installed on my machine, and they all look nicer. It's not even just an impression: the difference is striking. Since I've already got all of the fonts I need for daily use, I'll keep this simple, yet very useful hack until they actually fix it officially.

      Did you even try the hack? Did it cause problems in some applications? Or are you just bitchin' 'cause you didn't think of it first? :-)

      --

      Reminder: find a new sig
    7. Re:Disabling hinting is NOT the way to go by Anonymous Coward · · Score: 0

      So how do you do that then? If you seem to know how to do it it would be nice to tell us how to get the better results you claim to have!

      I'm looking forward to even better results than this "ugly hack". So far the results are pretty good on my machine!

      Juergen

  54. Re:that's something completely different, -1 cluel by jacrawf · · Score: 2, Insightful
    Bzzzt. Printing is analog, it's naturally anti-aliased.

    Uh, actually virtually all CRTs are analog too. (Old CGA displays don't really matter much these days, though...) Or did you think the signal coming out of that 15-pin d-sub VGA connector was digital? Surprise, it isn't. Not to mention that some of the electrons meant to bombard phosphorescent element n tends to go astray a bit and bleed into adjascent phosphorescent elements. The results of this can be seen quite dramatically on low-quality CRTs at high resolutions.

    In other words, paper is really no less digital than a CRT is. Just as a 640x480 image looks kinda blocky taking up your whole CRT, it looks just as blocky taking up a whole sheet of paper. It's paper's virtue of being able to handle insanely high resolutions that makes it suitable for "displaying" really clear graphics and text. I can't think of a single reason that a CRT oughtn't be able to do the same one day. Anti-aliasing is simply a stop-gap technology until that day arrives, IMHO.

    Personally, if I had the option, I'd go for a 150 DPI (or better, actually 300 DPI would make me happy) display over something that only does, say, 1280x1024 with antialiasing. I'd much rather talk about picas and points than pixels. Pixels suck; they're the cause of too much geek envy. (Admit it! When you were still stuck with an 800x600 display you were drooling when your rich friend upgraded to a 20" display that could do a whopping 1600x1200.)

  55. Re:Changing two lines of code is "hacking through" by Anonymous Coward · · Score: 0

    Yep... Jealous. Sad really.

  56. He could have made it a one-liner! by Johan+Veenstra · · Score: 1

    I quote 'Bistromat': "and in fact there are makefile flags to compile it without hinting enabled"

    So at least one source code change was completely unnecessary.

    Johan V.

  57. Re:that's something completely different, -1 cluel by markj02 · · Score: 4, Insightful
    Bzzzt. Printing is analog, it's naturally anti-aliased.

    Well, maybe that's what they tell the arts majors. However, the term "aliasing" actually refers to what happens when you try to exceed the Nyquist limit: different frequencies are "aliased" together. Anti-aliasing removes that by band-limiting the signal in some way prior to sampling. When you print with toner on paper, there is nothing band-limited about the resulting image: the toner/paper transition has very high contrast edges at just about any resolution you care to look and those result in very high frequency components in the image.

    the fact the the text doesn't look butt-ugly as usual.

    You demonstrate a common occupational hazard for people working in graphics: you prefer style over function.

    Think about anti-aliased text on a 150 dpi monitor.

    For most monitors, you wouldn't even be able to tell the difference. And for a high-resolution monitor designed to display text, you make the display worse if you try to anti-alias.

    Usually. What about when it isn't?

    If you composite onto an image, the text needs to undergo the same filtering as the the image has undergone or it will look unnatural. In the case of compositing text into television images, there happens to be a single answer because, by convention, television cameras try to degrade the image in roughly the same traditional way. For digital images you find on computers, the filter could be anything.

  58. Re:Security of Windows and Linux by Anonymous Coward · · Score: 0



    Well, that's the price we gladly pay for having a user-friendly and easy to learn GUI and operating system.

    It's wrong to claim that linux is more secure than windows. The reason why "exploits" are constantly being found in Windows and IE is because so many people are actually using them! How was it? "Given enough eyes, all bugs are shallow"? Bugs being shallow means that they're found.

    Now, the open source operating systems and browsers might appear more secure but that's only because a) they are difficult to use and thus tend not to be targetted by the least skillful hackers and b) only a miniscule number of computer users are using linux and alternative browsers. The latter fact means that no-one's really that interested in hacking into such a system? Where's the eliteness in that?


    Nice troll. But to get past the FUD
    1) Linux is far faster growing than MS. But then, you know this as you work for MS.
    2) Linux's server numbers are 2x higher than MS's or about 1/2 of MS's depending on whose numbers you look at. Assuming that MS is 50% and Linux is 30% (I doubt these, but...) then MS's crack account should be about 50%. Yet it is >90% of all openings on the web. Also, MS accounts for >98% of all credit cards stolen from the web. Personally, I feel much safer giving my CC to a box running some unix via http rather a MS system running https.

    But hey, that is what FUD is all about. eh?

  59. Re:KDE Myths by 10Ghz · · Score: 2

    Ikons will be in 3.0. Crystal-icons will be in 3.1. Check out the screenshot from lates KDE Kernel Cousin: http://kt.zork.net/kde/kde20020301_34.html )

    --
    Lesbian Nazi Hookers Abducted by UFOs and Forced Into Weight Loss Programs - -all next week on Town Talk.
  60. Anti-aliasing is here to stay. by Johan+Veenstra · · Score: 1

    Those high-res printers you speak of, still use anti-aliasing.......

    Johan V.

    1. Re:Anti-aliasing is here to stay. by foobar104 · · Score: 3

      Those high-res printers you speak of, still use anti-aliasing.......

      No, they don't. A dot on paper is either there, or it isn't. You don't print with multiple shades of grey and black ink to give the illusion of higher resolution. Around the 200 DPI mark, printed text takes on the appearance of smooth letterforms, not patterns of dots. Of course, you can tell the difference between 200 and 2400 DPI easily, but the point is that 200 DPI is where you stop seeing the pixels before you see the letters.

      You may be thinking of halftones, which are patterns of dots of various sizes that can achieve the illusion of tone when viewed from a reasonable distance. This isn't anti-aliasing at all.

      And by the way, an ellipsis has three dots, like this: ...

    2. Re:Anti-aliasing is here to stay. by BeeShoo · · Score: 1

      You're both right. Some printers do vary the dot size to achieve a sort of anti-aliasing.

    3. Re:Anti-aliasing is here to stay. by foobar104 · · Score: 2

      Some printers do vary the dot size to achieve a sort of anti-aliasing.

      That's fundamentally different from antialiasing. That technique can best be described as "smoothing."

      I tried using ASCII art to show the effect of smoothing, as distinct from antialiasing, but I got frustrated and gave up. Suffice it to say that antialiasing uses oversampling and averaging, while smoothing simply attempts to fill in the corners that look too jagged to the eye.

      Fairly crappy explanation, but I'm too sleepy to write a better one.

    4. Re:Anti-aliasing is here to stay. by Graspee_Leemoor · · Score: 1

      "A dot on paper is either there, or it isn't"

      Ink is a real physical liquid and paper is porous. What do you think happens with ink on paper? It bleeds out a little, randomly, you will never get two "pixels" the same. Thus the "jagged staircase" effect is slightly reduced.

      graspee

    5. Re:Anti-aliasing is here to stay. by foobar104 · · Score: 2

      Ink is a real physical liquid and paper is porous. What do you think happens with ink on paper? It bleeds out a little, randomly, you will never get two "pixels" the same. Thus the "jagged staircase" effect is slightly reduced.

      1. Laser-type printers don't actually use ink. They use a powdered toner that can be affixed to the paper in very precise ways. Toner affixed by a laser doesn't bleed.

      2. Quality control is a huge part of the commercial printing process. Colors and tones are expected to be visually indistinguishable from press to press, and from run to run, and from sheet to sheet. While it's true to say that no to spots are ever absolutely identical, they're much, much closer than you think. Look at two samples through a loupe sometime.

      3. This has nothing to do with antialiasing.

  61. Amazing by Anonymous Coward · · Score: 0

    It is amazing what MS can do with Stolen ideas from apple (an dother companies).

  62. Get rid of /. Ads by kiwipeso · · Score: 2

    JavaScript Instructions to get rid of Ads.

    --
    - Kaos games and encryption systems developer
    1. Re:Get rid of /. Ads by Anonymous Coward · · Score: 0

      Adshield.org is the way to go.

  63. Regardless... by Grendel+Drago · · Score: 2

    Regardless, it works.

    The incredible quantity of design that went into X still produces an end result which causes the uninitiated to say "it's way too complex, and it just plain sucks."

    Of course, then we explain that it doesn't suck, and that it's based on a perfectly sound architecture, and that it's really a work of beauty.

    None of that changes the fact that it sucks.

    The fonts look better with this (ugly) hack. Much, much better. This is the Sistine Chapel of two-line hacks.

    --grendel drago

    --
    Laws do not persuade just because they threaten. --Seneca
    1. Re:Regardless... by poemofatic · · Score: 1

      Of course, then we explain that it doesn't suck, and that it's based on a perfectly sound architecture, and that it's really a work of beauty.

      None of that changes the fact that it sucks.


      God, it's so good to hear someone else say that.

      --

      When in doubt, have a man come through a door with a gun in his hand.

  64. Re:Linuxslash by Anonymous Coward · · Score: 0

    Now, what kind of a way to talk to your fellow -1, Troll is that, you goatbanging shitbrick?

  65. Re:Thanks for the contribution by Anonymous Coward · · Score: 0

    Oh, please. This troll was limp and flaccid. The only response it provoked was your ha-ha-aren't-I-so-funny "Troll Library" reply. Have you forgotten the meaning of the word "Troll", you walnut-brained fuckwit?

  66. Plain XFT looks better by YellowBook · · Score: 2, Informative

    Maybe it's because I'm using subpixel rendering
    on my LCD screen right now, but the 'after' images
    look much worse than the regular XFT rendering to
    me.

    --
    The scalloped tatters of the King in Yellow must cover
    Yhtill forever. (R. W. Chambers, the King in Yellow
  67. Re:Changing two lines of code is "hacking through" by Guiri · · Score: 1

    Actually changing only two lines of code to get such improvements does merit a frontpage story.

  68. It's things like this.. by Anonymous Coward · · Score: 0

    That people notice when they switch over from Microsoft products, Apple products, etc.

    People are smart, they can adapt to these newfangled ideas like shading windows.

    People also have taste - and dislike ugliness.

    Way to go - antialiased fonts r0x0r.

  69. I hope this is not too much OT by Anonymous Coward · · Score: 0

    Does anyone know if there's a way (and how) to make Flash animations start _always_ at low quality (i.e., no anti-aliasing)?

    My machine is weak :-) and I have to constantly do it by hand, which is a PITA.

    Of course I could uninstall Flash (not out of question), but still... Any ideas?

  70. Bring the holly grail: the GUI! by jotaeleemeese · · Score: 2

    So in place of using configuration files that I can analyze, modify and distribute in an automatic fashion you suggest that it is better to find out a little checkbox somehwere in the middle of who knows how many tabs, sub-menus and other check-boxes, all this sometimes hidden behind one or two buttons and that make the change undistributable (unless you understand the registry, and sometimes not even then).

    Yeah, GUIs are very intuitive and easy to use.

    --
    IANAL but write like a drunk one.
    1. Re:Bring the holly grail: the GUI! by SirRichardPumpaloaf · · Score: 1

      The advantage of the GUI is that all of the options are right there in front of you, so that you can see what is available. To get the same knowledge about XFree you would have to plow through lots of documentation. From a regular user's perspective the GUI wins hands down.

  71. Re:Changing two lines of code is "hacking through" by ajmarks · · Score: 1

    If it really is that simple, why had nobody tried it before?

    --
    Opinions are not Informative, though they may be Insightful or Interesting.
  72. ClearType by ziggy_zero · · Score: 1

    So is this similar to ClearType that comes with Windows XP?

    --
    I belong to the ______ generation.
  73. The truth by nomis80 · · Score: 5, Interesting

    Fact 1: Hinting improves font legibility at smaller sizes.

    Fact 2: Freetype doesn't interpret the bytecodes in the fonts that are needed for proper hinting because of patents detained by Apple.

    Fact 3: It uses an alternative bytecode "guesser". People may or may not like it, even though it usually improves legibility. This Canadian dude (I have the right to use this term because I am myself a Canadian dude ;)) only disabled the bytecode "guesser" because he didn't like it. Fine.

    Fact 4: Rather than disabling the bytecode "guesser", enable the patented bytecode interpreter. Remember, this is illegal if you live in the U.S. and haven't licenced the patents from Apple.

    For your enjoyment, I've made RPMs for Mandrake 8.1 and Redhat 7.2 of the Freetype library with the patented bytecode interpreter enabled.

    1. Re:The truth by Junta · · Score: 2

      Are the rpms you provide simply the result of changing line 378 of include/freetype2/config/ftoption.h, to #define TT_CONFIG_OPTION_BYETCODE_INTERPRETER?

      My distribution happens to do that by default :) Some fonts still look really ugly, but better than that auto-hinting crap.

      --
      XML is like violence. If it doesn't solve the problem, use more.
    2. Re:The truth by wytcld · · Score: 2

      Freetype 2.0.8 also compiles from the tar with no dependencies, and just installed cleanly for me on Debian stable after enabling the patented bytecode interpreter. Instructions for doing that are in README.UNX in the base dir after untarring. Then, for KDE 2.1 (back from when that was available for Debian stable), Control Center | Look and Feel | Style - go there and uncheck "Using Anti-Aliasing" (it appears to be set but in some versions of KDE it has not in fact been enabled in the user's control file until reset), press Apply, recheck it, press Apply, exit KDE, restart, and there you are.

      It lowers the effective contrast and looks slightly blurry, but I find I can read it faster, taking in more words per glance.

      ____

      --
      "with their freedom lost all virtue lose" - Milton
    3. Re:The truth by greenrd · · Score: 1
      That's bizarre. I clicked on your Redhat rpm link, and mozilla started the Crossover RealPlayer plugin to try and "play" it!

      ???

    4. Re:The truth by kurowski · · Score: 1

      that's because his web server is misconfigured, and returns http headers that say the content-type is realaudio (this is due to the (arguably silly) practice of deciding mime types based on filenames).

    5. Re:The truth by nomis80 · · Score: 1

      Yes.

    6. Re:The truth by nomis80 · · Score: 1

      Some old webservers have fubared /etc/mime-types that associate .rpm with some kind of audio/video thing that could be opened with RealPlayer. Sorry for the inconvenience, but I don't have root access to that server. In doubt, use shift-click. ;)

  74. Bill for Font Renerding Improvements by squaretorus · · Score: 5, Funny

    $10,000

    Breakdown:
    Changing 2 lines of code = $1
    Knowing which 2 lines =$9,999

  75. This is often referred to as analysis by LunarOne · · Score: 2, Insightful

    Anyone who has maintained a large codebase, or has made mods to someone else's code, knows this:

    Sometimes hours and hours of work can result in very few lines of code. It reminds me of the carpenter's rule: "think twice, saw once". Sometimes a great deal of analysis yields more results than many lines of code.

    --

    Read my sig if you like, but I'll never see yours, thanks to Discussions, Viewing, Disable sigs...
  76. Almost better. by B00zy · · Score: 0

    What I have done is taken a screenshot, loaded the hack, snapped another screenshot, then compared the two. The fonts after using the hack look proportionally better, as in they don't look like there are some bolder, some lighter, or some smaller on various characters. That's about the only good thing.

    Other than that, the fonts look dreadfully blurred and faded. The courier font in black looks more like it's grey. Also, the smaller fonts are so blurred they're giving me a headache. For instance, the fonts on the right-side of the /. front page are about half the size, and there are little particles very slightly above the fonts, seemingly seperate from the font.

    KDE/Qt with XFree font aliasing without the hack looks a great deal better, if ya ask me. The problem is that some fonts look blotched, but atleast they're not giving me migranes trying to read them.

    --
    (8)-|-L /
  77. Re:Changing two lines of code is "hacking through" by haggar · · Score: 1

    Sometimes changing one single character is an admirable achievement. I don't know why I even bother saying this, it should be obvious: the amount of knowledge behind a certain code change is NOT proportional to the amount of change.

    I have once waded through 20.000 lines of shellscript code because of a bug, which was a simple
    if [ a=b ]

    instead of the correct

    if [ a = b ]

    So, what I did was "simply" to add a blank after the "a" and one before the "b". Only two characters added, and still it made a nasty bug go away. And it wasn't at all easy to find, because of the surrounding code which masked hte bug pretty well, and even visually it's difficult to distinguish.

    --
    Sigged!
  78. Microsoft May Have It Right by Webz · · Score: 1

    Ugh I know this is going to seem like extremely shallow commentary but...

    Microsoft Word has better on-screen anti-aliasing than something like Adobe Photoshop. Lemme explain. Photoshop indiscriminately anti-aliases all curves, and it does it pretty well (even with a few variations, smooth, strong, etc). Microsoft Word (as well as all Microsoft products that use that engine) renders anti-aliased text as well but favors vertical and horizontal lines. That is, even if a font mathematically hangs over a vertical and deserves some kind of gray line, Word will keep a solid vertical line only (see Times New Roman, any capital letter at 72pt). What this does is accentuate the fact that the fonts are on screen, where the canvas natively has vertical and horizontal accents built in (a grid of pixels).

    And about ClearType... I think it's for LCDs only (like laptops), so I've read. Instead of just treating the field of pixels as blocks of single color, (black text on white, two colors), the ClearType algorithm exploits the fact that pixels are actually three colors, red, blue, and green. So, instead of just using the font-color and background color (and everything in between) to render smooth fonts (that is, black, white, all shades of gray), ClearType uses shades of blue and orange when using white and black, to help apply the smoothing factor to those RGB "pixels" within pixels. I've tried it on my CRT and it doesn't do anything for me, but then again, it wasn't meant to.

    If you've ever worked with print or web design, you know jaggies look extremely ugly and unprofessional. If you look at a website like Apple's, you wouldn't give jaggies a second thought because all of their material is well-rendered and well-anti-aliased. All those little pixels make a big difference in the overall presentation of something. If you want to see ugly, try looking at a nice Flash presentation in LOW mode. That will turn off all anti-aliasing. It looks horrible.

    But I don't get it, why would you say something is rotten? Microsoft and Freetype look like they're doing a pretty good job.

  79. Only fixed size fonts by MarkoNo5 · · Score: 1

    Just tried it on debian/unstable, and I can only choose 4 fonts when enabling AA in KDE. All 4 of them are fixed size, and look _horrible_. I can't load the "freetype" module because of some version conflict thing. Anybody knows what the problem is ?

    Marko No. 5

    1. Re:Only fixed size fonts by Anonymous Coward · · Score: 0

      hi!
      i had a similar problem
      i apt-get'ed msttcorefonts
      then i added the directory where apt put the
      fonts, usually in /usr/share/fonts/truetype
      so i put, dir "/usr/share/fonts/truetype" in my
      /etc/X11/XftConfig file then restarted X and i found the ms verdana, andalo mono, etc fonts available in GTK and KDE

  80. Re:Security of Windows and Linux by mike_sucks · · Score: 1

    "It's wrong to claim that linux is more secure than windows."

    Eh? When did I mention Linux?

    "posting as an AC because of a IP ban"

    No, you're posting AC because you're trolling.

    --
    -- "So, what's the deal with Auntie Gerschwitz et all?"
  81. ClearType/XFree comparison by epukinsk · · Score: 2

    Check out this page which I just threw up. It shows the difference at the pixel level between ClearType and this guys hack.

    You can see that ClearType isn't just using grays, it's using other colors... presumably that will only make a difference on LCDs. But you can see quite clearly that ClearType is trying to get full pixels whenever it can. Look at the second leg of the 'n'... it's a gray blob with the XFree hack, but Cleartype has a solid black line.

    -Erik

    1. Re:ClearType/XFree comparison by Acous · · Score: 2, Informative

      This is because XP uses 'hinting' which is disabled in the xfree hack. try doing a side by side comparison of normal xfree antialiased text against XP, it should appear closer. freetype hinting is not yet as good as windows.

    2. Re:ClearType/XFree comparison by Anonymous Coward · · Score: 0

      freetype hinting is not yet as good as windows

      Well, you can thank software patents for that one.

  82. What does Microsoft want us to obsess over today? by heroine · · Score: 3, Interesting

    Sometimes I wish instead of cleartype that Microsoft advertized 3 years ago it was 3D graphics or something because even though there seems to be more to life than font rendering, most people don't know what's important without Microsoft to lead the way. Now that we have to spend our existances getting the absolute best approximation to cleartype it's like Microsoft advertizes exactly what doesn't matter so their competition doesn't beat them at what does matter.

  83. Fix the HTML? by cheesyfru · · Score: 1

    The HTML is pretty bad and won't render under Netscape. Anyone care to fix it up for the lazy ones of us who are too lazy to search through the source for the images?

  84. Re:Changing two lines of code is "hacking through" by Anonymous Coward · · Score: 0

    I'm just learning shell scripting, so I have no idea what changing that statement does. Could you elaborate briefly?

  85. Hmm.. Matter of opinion.. by Mike+Hicks · · Score: 2

    Well, I must say that at larger sizes, I much prefer the original `hinted' text, since it shows up much darker on my display. However, the non-hinted text seems to be much more legible at smaller sizes, and it definitely scales much more cleanly (no jumping from everything being ~1 pixel wide to everything being ~2 pixels).

    If the non-hinted text could be made darker, that would be great! Of course, I hear that the hinting engine is getting better and better, so who knows what will be the best a year from now..

  86. Now THAT's intuitive!!! by Smallest · · Score: 1, Funny
    You just need to put match edit rgba=rgb; in XftConfig.

    wow. not only is it buried in some friggin configuration file (how many does X have? is this the one where i get to set the monitor scan frequency? that one's my favorite!), but the option doesn't look anything like what we're trying to use it for. yay!

    incredible.

    -c

    --
    I have discovered a truly remarkable proof which this margin is too small to contain.
    1. Re:Now THAT's intuitive!!! by Codifex+Maximus · · Score: 2

      > wow. not only is it buried in some friggin configuration file (how many does X have?

      Likely no more friggin configuration files than Windows has friggin hives and friggin entries in it's friggin registry.

      Bleah.

      --
      Codifex Maximus ~ In search of... a shorter sig.
    2. Re:Now THAT's intuitive!!! by Anonymous Coward · · Score: 0

      So that makes it okay?

  87. I think you are wrong by DVega · · Score: 1
    "Why isn't font rendering done properly in the X server itself, where font rendering originally was done? Why must it be done client side? "

    I think the X server uses the FreeType library not the client application. XFree86 can load a module named "libfreetype.a" (usually in lib/modules/fonts dir) that does the rendering on server side.

    --
    MOD THE CHILD UP!
    1. Re:I think you are wrong by BlowCat · · Score: 2

      Freetype is a library for supporting TrueType fonts only. It may or may not support anti-aliasing, but its scope is limited to a subset of the fonts used with X. Type 1 fonts are not affected by FreeType, neither are bitmapped fonts.

  88. A note on hinting and freetype... by Junta · · Score: 2

    If you want to accomplish something similar, before compiling freetye, look at line 435 of include/freetype/config/ftoption.h in the source distribution before compiling. That disables the hinter. I'm not if this is as effective as what the guy did to the Xft library. I don't have the orginal source files at the moment, so I can't tell exactly what he changed. I also can use his libXft.

    Another option is to realize that the hint guessing that freetype does to avoid patent infringement problems by default can be changed to use a bytecode interpreter that does proper hinting of TrueType fonts, Change line 378 of the above mentioned file for this to occur. I still don't understand how making the code "optional" makes it any less patent infringing..

    Of course, no matter how you configure freetype, it will still look like crap without good fonts.
    http://www.linuxquebec.com/~nomis80/ has a script to automate installation of Microsoft true type fonts.

    Of course by enabling the bytecode interpreter and *possibly* by getting MS fonts without a MS OS, you may be doing illegal stuff, but if pretty fonts under X is outlawed, then only outlaws will have pretty fonts under X, or something like that....

    Disabling hinting with the default fonts is probably the most legal way to go, but what is the fun in that?

    --
    XML is like violence. If it doesn't solve the problem, use more.
  89. What's the big deal about anti-aliasing? by Anonymous Coward · · Score: 0


    I am running my stuff on 1280x1024 screens and, quite frankly, the purported improvements from anti-aliasing fail to make any impression (yes, I am positive my anti-aliasing setup is correct.) Even the pictures submitted as examples of its wonders look most underwhelming on my displays.

    Which makes me think: Is anti-aliasing little more than just another fad in an industry largely run by fads?

  90. You hit the nail.... by Anonymous Coward · · Score: 0

    You have precisely described my biggest issue with anti-aliased fonts, especially with Xfree86. First off, there can be little arguement to the fact that the non-TrueType fonts that are used by Xfree86 are horrible to look at.

    I was initially very gratefull for the introduction of anti-aliasing in Xfree86. At first glance it looked SO much better than before, as does this new hack. But, I quickly found that the mild blurring and gray scaling that anti-aliasing performs, makes the text mildly fuzzy. This fuzziness causes pronounced eye fatigue after a couple of hours.

    The reason fuzziness is a problem, and the solution as you described in your post, is a border. By bordering the text it increases the sharpness and contrast of the text there by making it far easier on the eyes. Without the borders anti-aliasing looks great at first glance but, is still almost as fatiguing as the jaggies.

    The thing that I find most interesting though, is that True Type fonts are the best of all, even/especially on XFree86.

  91. What I do is... by Mudge+Pinkerton-Bott · · Score: 0

    Just put my glasses on, and...

    voila!

    automatically antialiased fonts :-)

  92. Hardware support by fabiolrs · · Score: 1

    Is there a way to make anti-aliasing done by the hardware?? I mean, today we have GeForces that alone are more powerfull than many older computers and when Im typing on a word processor its power is not used at all. :/ I dont know if its possible but knowing font anti-aliasing is that resource consuming it would be a good idea! :)

    --
    Fabio - Sumare/Sao Paulo/Brazil/South America/Earth/Solar System/Milky Way/Universe
    http://www.morroida.com.br
    1. Re:Hardware support by Anonymous Coward · · Score: 0

      Hardware accelerated alpha-blended blitting? Yup, already exists.

      Stuff like SDL will use hardware acceleration if available.

    2. Re:Hardware support by fabiolrs · · Score: 1

      i have to turn this on by myself or it turns itself when hardware support is detected?

      --
      Fabio - Sumare/Sao Paulo/Brazil/South America/Earth/Solar System/Milky Way/Universe
      http://www.morroida.com.br
  93. Don't you mean... by Junta · · Score: 3, Funny

    that you take your glasses *off* to anti-alias fonts? :)

    --
    XML is like violence. If it doesn't solve the problem, use more.
  94. Nice, but still not quite right... by jonr · · Score: 2

    The only AA font system I have ever liked, is the old RiscOS AA. It rendered the font very well. They where clear, (MS AA is worse), precise, (RiscOS used 'sub-pixel AA, which made different looking characters pixel-wise, but looked the same on screen. Just type 'iiiiiiiiiiiiii' in the Times font into Word/Mozilla) and it was very configurable; Anti-alising, hinting etc. could all be set by the user. The MacOS X fonts look similar, but I still have to see them in action.

  95. RiscOS by iamthemoog · · Score: 1

    Bring back RiscOS!! It did full display antialiasing over 15 years ago... Looked great on CGA displays, wasn't bloatware and ran on a 486 equivalent processor without much trouble.

    moog

    --
    No Norm, those are your safety glasses; I'll wear my own thanks...
    1. Re:RiscOS by Anonymous Coward · · Score: 0

      I am using a Risc PC with Acorn (now Pace) Risc Os. There's no other Os that delivers that font quality. The processor can cope with hinting etc with ease. I guess 'Virtual Acorn' will show the same quality on Windows PC's. Hope ROX will bring this font quality to Linux one day. Pity Impulse didn't continue with their attempt to do that.

      Alkind

  96. Hard to read by tweakt · · Score: 2

    Those patents are kinda hard to read. Maybe them should have used the hinting technology to print it ;-)

  97. Good or Bad? by Jan+Derk · · Score: 1

    There seem to be a lot of anti-aliasing rules/s*cks opinions. Anti-aliasing comes in many different qualities. The very article that started this thread proves that.

    There's bad anti-aliasing which looks crap and there's the really good stuff which is generally based on sub pixel rendering.

  98. Printed matter by augros · · Score: 1

    "Printed matter isn't anti-aliased either, and printed matter is the gold standard for good looking text."

    Well, yes, printed matter is beautiful -- but it's usually vectored up on laser printers so that the characters are perfect. Can your monitor do this? Unless you own a miracle screen, the text on it is comparable to something printed off a dot-matrix. Hence the need for aa.

    1. Re:Printed matter by flimflam · · Score: 2

      Well, you are very confused. Laser printers do use pixels. While the individual characters (if you're using PostScript fonts) are defined by vectors, they are rendered by the PS RIP as just lots of little dots at whatever resolution the printer is. The same thing is happening on your screen (if you're using non-antialiased font rendering), just at much lower resolution.

      --
      -- It only takes 20 minutes for a liberal to become a conservative thanks to our new outpatient surgical procedure!
    2. Re:Printed matter by qnonsense · · Score: 1

      Digital typeset lasers IIRC actually can do vectors native. A PS file (or whatever typset document format) is rendered as straight vectors without ever going to pixels. Pretty cool and VERY expensive.

      --
      There comes a time in every man's life when he must say, "No mother! I do not want any more Jell-O!"
    3. Re:Printed matter by flimflam · · Score: 2

      Um, care to post a link on some info about one of these machines? The only typesetters I've ever dealt with (or heard of) are all bitmapped (albiet at very high resolution: 2400dpi or slightly higher).

      --
      -- It only takes 20 minutes for a liberal to become a conservative thanks to our new outpatient surgical procedure!
  99. Gamma curves and antialiasing by Theovon · · Score: 4, Insightful

    People in the XFree project may already be considering this, but antialiased objects look much better when you take into consideration that a gray ramp that is perceptually linear is not optically (luminously?) linear.

    To be specific, imagine you're drawing an antialiased line, and you have come to a point where the line covers 50% of two adjacent pixels, so you decided to paint them both with 0x7f. The problem there is that a pixel that looks like 50% gray is actually emitting 18% as much light as a full-on pixel, so when you put the two 18% pixels together, they add up to 36% instead of 100%. The result is that a thin antialiased line will appear to get darker and lighter along its length. If you were to take this into account, it might improve antialiased text further.

    The function to apply to all pixels is this, where x is a number from 0 to 255 representing the brightness you WANT to get, and y is what you have to plot:
    y = (int)(255.0 * pow(x/255.0, 1/2.5) + 0.5)

    The +0.5 rounding factor in there may not affect much.

    I believe it was a Dr. Poynton who talked at length about this in the 1998 Siggraph.

    Thanks.

    1. Re:Gamma curves and antialiasing by spitzak · · Score: 2
      Yes, this is exactly what is missing in all the antialiasing solutions so far. Perhaps Xft can do this correctly and beat everybody! Here is my suggestion:

      The brightness of a byte on the screen (after the byte is scaled to the range 0-1) is best described by the sRGB standard:

      V = B However it can also be simulated rather accurately as B*B, if that is useful for fast implementation.

      Using the B*B approximation: If C is the coverage of a pixel in a letter then the output color of drawing a pixel of color F against a background of color B is

      sqrt((F*F-B*B)*C+B*B).

      A more complex formula can be made by using sRGB instead of B*B. This may be worth it if a lookup table is used.

      I see a few ways to accomplish this with reasonable speed:

      1. Some trick with shifts and masking could be done to simulate the above function in integer math.

      2. There are 256 values for F and 256 values for B. There are also some number of values for C, I think only 17 for the current antialiasing algorithim. This results in a lookup table of 1088K.

      3. Some combination of integer math and a smaller lookup table.

      4. Any of these tricks could be done in hardware, though that likely means MicroSoft did it first.

    2. Re:Gamma curves and antialiasing by spitzak · · Score: 3, Informative
      The sRGB standard is this (sorry it ate the lessthan sign):

      V = B < .04045 ? v/12.92 : pow((v+.055)/1.055, 2.4)

  100. Mixed results by mengel · · Score: 1

    It looks to me like disabling hinting does look much better at low resolutions (8-10pt) but worse at higher resolutions. Maybe he should turn the hinting code on or off depending on the resolution?

    --
    - "History shows again and again how nature points out the folly of men" -- Blue Oyster Cult, 'Godzilla'
  101. Oh, please by Anonymous Coward · · Score: 0
    This is a perfect example of the kind of self-centered, paranoid thinking that /. is famous for. If you do as I have, and work with a few dozen Windows users trying to convert to Linux, I guarantee you that one of the biggest complaints you'll hear is about the crappy looking fonts under X. And this is from people who have no idea what AA or ClearType or any other product or technology in this area is--they just know that they want fonts to look good, and if they don't then they're not happy.

    You want Linux to blow away Windows on the desktop? Then get your heads out of your butts, and put in the time and effort to find out what real users in the real world want from computers, and then make sure Linux gives it to them. Given the level of demand out in the mainstream for a better alternative to Windows, if Linux does this MS will implode faster than Enron.

    1. Re:Oh, please by Anonymous Coward · · Score: 0

      You're almost right, but of course ms has been doing this for years and that's why it is so good. Sure alot of ot came from mac users complaining that windows looked crappy. But ms sure isn't going to just stop because linux now has decent AA fonts. There are about 5000 other things it doesn't have that windows and mac do. You're right, Linux people do need to get their hands out of their asses, but that's going to take huge huge money and a corperation larger than ms to accomplish at this point.

  102. Re:What does Microsoft want us to obsess over toda by Junta · · Score: 2

    I don't think any of this has to do with ClearType really. I think people are motivated by seeing how nice fonts look on other systems (including ClearType, but also Mac, and what Be had, etc...)
    The bits that make ClearType above and beyond typical anti-aliasing are actually in the Xrender extension used by the AA font system, and that is subpixel operations (i.e. taking advantage of order of red, green, and blue elements in an LCD screen to effectivvely triple horizontal resolution). The key things needed are a) well-hinted fonts and b) good strategy for understanding and following those hints. a is easy to solve by downloading, say, MSs fontset. A more proper solution will eventually happen, but for now it works. b has caused some problems, as this little thing shows. The "auto-hinting" functionality where FreeType tries to guess the hints without actually interpreting them causes fonts to look worse than better, and in the end we are better off with no hinting than auto-hinting. The "proper" solution to hinting is in FreeType, a bytecode interpreter for the hints. The problem here is it is not a default because doing so would make Apple (who has a patent on reading and using those hints) angry. I posted already in this forum the "right" way of disabling hinting in freetype or enabling the better, but illegal bytecode interpreter....

    A lot of the growing pains has more to do with Apple than it does with MS.... AA fonts look nice, even if they bring next to nothing to the table in terms of utility and usability, and I don't think the development needs the prodding of MS to seek out better eye-candy. If anything, MS is pushing more eye-candy (XP) because of prodding from Apple and X based eye-candy...

    --
    XML is like violence. If it doesn't solve the problem, use more.
  103. Red Hat 7.2 notes by ChrisWong · · Score: 1

    Red Hat 7.2 has inconsistent policies for its use of Freetype. The freetype library itself has bytecode interpretation disabled so installing your version will greatly enhance its quality. But the X server/xfs was built with bytecode interpretation enabled. This means you can also greatly enhance font rendering by not enabling antialiasing. If you use the core X server font rendering -- which is the default -- the font (if well hinted) will look good.

  104. Re:Changing two lines of code is "hacking through" by dark_panda · · Score: 3, Funny

    You are so right. Slashdot's standards are obviously falling. I mean, a year ago, a good hack took seven lines of code to merit frontpage news. Now it only takes two.

    I predict the next great hack frontpage story to be "Linux in one really huge line of Perl".

    J

  105. This Library by Etriaph · · Score: 1

    I installed this library and the anti-aliasing improvement has been incredible. I highly suggest this to everyone who uses KDE with anti-aliasing. I'm very pleased!

    --
    "It's here, but no one wants it." - The Sugar Speaker
  106. Fact 2 is inaccurate by Moritz+Moeller+-+Her · · Score: 2

    Freetype DOES interprete hinting, if you enable it by changing 5 characters in the source code.

    Well, people, if the patent is not valid where you live, mainlya here in Europe, get these updated RPMS for SuSE I made. No guarantees, they work for me and the hinting works in them.

    http://hippokrates.jura.uni-mannheim.de/

    --
    Moritz
    1. Re:Fact 2 is inaccurate by nomis80 · · Score: 1

      Yes, Freetype does it, but not by default. This is why I provided my RPMs with this option enabled.

  107. So Now What? by Alan · · Score: 2

    It drops into debian unstable very nicely, but what then? I tried enabling the libgdkxft library using the GNOME-AA session via GDM, and the AA fonts looked nicer (I think). Is this what is needed? It doesn't make any change in the non-AA session...

    The problem is that I think my XftConfig is messed up as the fonts displayed in the console (powershell) are ugly, leave remenants, etc.

    Can anyone give a geek a hand?

  108. Ugh by praedor · · Score: 2

    I just gave it a try and I must say that it looks frickin' horrible compared to the aa done in KDE/QT. I had to back it out to make the aa fonts on my system look better and more readable. Looking at the xft-based aa fonts from the hack made me think my glasses prescription was f*cked or that I had scum in my eyes.


    Nice try and all but until it can do it as well as QT, it isn't ready for primetime.

    --
    In Bushworld, they struggle to keep church and state separate in Iraq as they increasingly merge the two in America.
  109. Improvement? by nusuth · · Score: 1

    I just turned them on too, and it sucks. And it looks like linux version of openoffice.org with windows ttfs.

    --

    Gentlemen, you can't fight in here, this is the War Room!

  110. blurry text by Mr.+Slippery · · Score: 3, Insightful
    With this hack, at last, XFree can deliver similar aesthetic results to Mac OS X's or Windows' rendering engines.

    Ah, so blurry text is an "aesthetic result"?

    "Anti-aliasing" just means blurring, and is in general not a good thing. And this particular hack turns off hinting, to make it every blurrier.

    Like headaches? Install this.

    --
    Tom Swiss | the infamous tms | my blog
    You cannot wash away blood with blood
  111. Re:Security of Windows and Linux by Anonymous Coward · · Score: 0

    So saying anything remotely positive about Windows, even when it is so blatantly obvious it stings, re the user-friendly GUI, is trolling?

  112. Not even close to Quartz! by Anonymous Coward · · Score: 0

    Close to Mac OS X? Not by far. You trolls can stick with you hampered XFree for as long as you want. All I can say is that Quartz rocks! There is absolutely NO comparison. Quartz wins hand-over-fist.

  113. Actual MacOS Screenshot for Comparison by johnrpenner · · Score: 3, Interesting

    when it comes down to it, HERE's an actual Mac OS9 screenshot to compare to the Xfree anti-aliasing. notice that OS9 doesn't anti-alias text below (user settable) 12 points (handy, and faster). i've set the browser font to be: Times-12 -> imo, after examining both the X shot and this shot at 400% magnification, it seems to me that the hinting and definition of the MacOS still yields clearer text. someone might also want to post up a OS-X and XP screenshot of the same web page: http://salon.com/ent/feature/2002/03/02/shakespear e/index.html so we can have a REAL comparison of actual screenshots instead of a lot of /. theorizing about about the Nyquist limit. regards, johnrpenner.

    1. Re:actual MacOS screenshot for comparison by markj02 · · Score: 2
      It's hard to compare these things via screen shots because a good antialiasing engine will take into account the kind of monitor you are using.

      However, in my subjective judgement, the MacOS9 screenshot you provide is just awful, both when viewed on an LCD and a regular CRT (but you may be using a weird gamma). Not only is the font too small to be anti-aliased usefully, the same page mixes anti-aliased and non-anti aliased text.

      The nicest rendering of the page is perhaps on XP using ClearType, not because of anti-aliasing, but because it gets a somewhat higher resolution at the same pixel size. MacOSX with font smoothing on a CRT also looks pretty nice to me. Unlike your screenshot, both XP and OSX use smoothing more consistently, which probably contributes to the improved appearance.

      However, with font smoothing in both XP and OSX, diagonal lines become too thinned out, and if you go down in font size further, the page becomes an unreadable blur. Arguably, the non-smoothed/non-anti aliased version of the page (which I tried on both XP and Linux), is still the most readable, and it looks sharp, consistent, and readable at font sizes even smaller than what your page shows.

      As I was saying, anti-aliasing makes some large fonts more pleasing to look at but it doesn't seem to improve readability much, and you run the risk of severely degrading readability and appearance on some pages. Anti-aliasing and font smoothing do belong in PhotoShop and similar applications, where the goal is to make a small amount of large text look nice; for interactive use, they are mostly gimmicks as far as I'm concerned. If you want nicer looking text on a display, your best bet is to buy a higher resolution monitor or to use something like ClearType.

      (Discussing the differences in meaning between "font smoothing" and "anti-aliasing" could fill another page.)

  114. actual MacOS screenshot for comparison by johnrpenner · · Score: 2


    when it comes down to it, HERE's an actual Mac OS9 screenshot to compare to the Xfree anti-aliasing.

    notice that OS9 doesn't anti-alias text below (user settable) 12 points (handy, and faster). i've set the browser font to be: Times-12 -> imo, after examining both the X shot and this shot at 400% magnification, it seems to me that the hinting and definition of the MacOS still yields clearer text.

    someone might also want to post up a OS-X and XP screenshot of the same web page:

    http://salon.com/ent/feature/2002/03/02/shakespear e/index.html

    so we can have a REAL comparison of actual screenshots instead of a lot of /. theorizing about about the Nyquist limit.

    regards,
    johnrpenner.

  115. Aliasing. by Grendel+Drago · · Score: 1

    http://graphics.stanford.edu/lab/soft/prman/Toolki t/AppNotes/appnote.25.html

    Frequency clamping isn't the best or only way to deal with aliasing. Convolution is used too. Antialiasing is a big and scary field.

    --grendel drago

    --
    Laws do not persuade just because they threaten. --Seneca
    1. Re:Aliasing. by markj02 · · Score: 2
      You say that as if convolution and removing high frequency components from the spectrum (say, using an FFT) are significantly different techniques; they aren't. Things get a little more interesting once you go to non-linear techniques.

      But, ultimately, font smoothing and anti-aliasing are limited techniques: a gray square just isn't the same as a white square with a thin black line running through it, no matter how much processing you do to decide on the shade of gray.

  116. XP ClearType on CRT displays by yerricde · · Score: 1

    I have Windows XP using ClearType, and I'm using a CRT. Everything is nice and smooth

    That's because XP's ClearType reverts to traditional high-quality anti-aliasing on displays whose color components aren't misaligned, such as CRTs. ClearType as we know it is a display technology designed to hop on the phase carrier created by the misalignment of the red, green, and blue planes of a typical color LCD panel to triple the apparent horizontal resolution.

    More information is available here and here; free software to do ClearType processing on bitmap images is available here.

    --
    Will I retire or break 10K?
  117. you can get a HOSTS spam blocker by kiwipeso · · Score: 1

    I downloaded a hosts file that filters out spam and ad domains like doubleclick.com . It tells your computer to serve those addresses from your computer.
    Because you don't have the resource files those advertisers do, it doesn't load ads.

    --
    - Kaos games and encryption systems developer
  118. Re:that's something completely different, -1 cluel by Untimely+Ripp'd · · Score: 1

    Anti-aliasing removes that by band-limiting the signal in some way prior to sampling

    You know, even though I took the related courses as an EE -- rather a long time ago -- I could never understand why people called these text-rendering techniques anti-aliasing: I mean, what the hell does prettying up the picture have to do with preventing frequency aliasing?

    DUH! Text anti-aliasing techniques are just low-pass filters, which you would use to anti-alias a digital signal if you were interested in frequency analysis of the image.

    Finally I get it. Thanks, markj02!

    Although you maybe didn't need to be so smug about it.

    --

    And let the angel whom thou still hast serv'd tell thee ...

  119. what's a good AA terminal font to use? by Anonymous Coward · · Score: 0

    And while I'm at it, what are good fg and bg
    colors for xterms?

  120. how banal... by Anonymous Coward · · Score: 0

    quote the poster:
    ... and they rose from the bold frigid north and engulfed their Southern neighbours with ferocity not seen since 1812!

    still stuck on your Canadian inferiority complex??? whereas most canucks dwell on the states, down here we never even think about canada. as in never, ever. no one cares, get over it.

    p.s. don't forget we outnumber you 10-1 in popluation if its a scrap you want ;)

  121. Small text and anti-aliasing by Tom7 · · Score: 2


    Fonts that are hinted for screen display shouldn't be anti-aliased at small sizes. It makes them blurry. The font author has already essentially laid out the pixels exactly as they should appear for those sizes. At least give people the choice. (Do you play anti-aliased NES games on your emulator, or do you leave the pixels as-is?)

    Second, it would be nice to have "ClearType" (that is, sub-pixel AA) on linux, too. Is anyone working on this?

  122. Re: Shitty browser by Anonymous Coward · · Score: 0

    Huh? Konq is more compatible with IE than Moz? Riiight...

  123. finally by becauseiamgod · · Score: 1

    the ONLY reason why i use win xp has come to linux. F*CK WINDOWS.

  124. GNOME-bashing idiot by Anonymous Coward · · Score: 0

    GNOME and KDE use the *same stupid antialiasing* code. There is *no diference*. God, I hate idiots that use KDE and don't have a clue about how it actually works but like to insult GNOME.

    1. Re:GNOME-bashing idiot by praedor · · Score: 1, Flamebait

      Sorry clown. I am right. I did NOTHING to my system EXCEPT change the libXft.so.1.1 file as per the instructions. It totally dicked up the rendering, making it look HORRIBLE. I don't give a f*ck for how Gnome does aa, I don't use it. I would assume that if it dicks up KDE aa, and Gnome uses the same method, then it will also dick up Gnome rendering too.


      You don't like FACTS that your problem. I reported a deadass fact. You have to learn to live with reality. Really. You do.


      Matter of fact, I tried it TWICE. Independent attempts. Font rendering went UGLY each time I used the xft hacked lib vs the unaltered. Fact. Live with it.


      Care for a frickin' screenshot buttf*ck?

      --
      In Bushworld, they struggle to keep church and state separate in Iraq as they increasingly merge the two in America.
    2. Re:GNOME-bashing idiot by praedor · · Score: 2

      By the by...exactly WHERE did I say ANYTHING about Gnome in my original post? Nowhere. YOU took what I said, a fact that QT-based aa (which predates Gnome aa, by the way of another fact) looks better than what happens after using the libXft altered lib. You seem to have a chip on your shoulder, assuming a Gnome attack where there wasn't any.


      I reported a fact. Plain and simple. I did not mention Gnome at all. I don't use it and couldn't care less how it does anything so there was no point in my holding your defensive hand.

      --
      In Bushworld, they struggle to keep church and state separate in Iraq as they increasingly merge the two in America.
  125. BEFORE looked much better to me! by RockyJSquirel · · Score: 1

    The before column looked much better than the after column on my laptop. I didn't read the article, but I can tell that he's lessened the effects of the hinting (that makes lines center on pixels). The results of that sort of thing is text who's shape may be more accurate but who's sharpness is lacking.

    It's a matter of taste I guess, but I find reading text with uncentered lines annoying on lcds where the pixels a so sharp. I suppose there might be a gamma issue too. The gamma matters more with uncentered lines than with centered ones, but, on a laptop the gamma changes with angle - and the angle with the best gamma might not be the one with the best contrast (blacks might be grey etc.).

    Rocky J. Squirrel

  126. Excelleny, hinting == misapplication of an idea. by Performer+Guy · · Score: 3, Insightful

    This is great stuff, well done. It is also a perfect illustration of the dangers of using a misunderstood technology; hinting. Hinting was originally designed to help non antialiased fonts shift character vectors to align with discrete pixels for a more recognizable character description. It's application to antialiased fonts was foolish and never worked because the antialiasing is perfect for displaying the subpixel hint shifts being applied and makes the fonts look extremely ugly. Hinting on antialiased fonts was a complete misapplication of an earlier display kludge.

    This work illustrates this perfectly. No need for debates, look at the images and learn. Well done and kudos for an awesome and simple piece of work.

  127. xp by LennyDotCom · · Score: 2, Interesting

    XP's smooth font crap bugs the hell out of me it just looks like blurry text to me

    --
    http://Lenny.com
  128. Re:Excelleny, hinting == misapplication of an idea by RockyJSquirel · · Score: 1

    This work illustrates this perfectly. No need for debates, look at the images and learn. Well done and kudos for an awesome and simple piece of work.

    Huh? I disagree completely. When combined with antialiasing, hinting improves the sharpness of characters (at the expense of precise shape). On a blurry monitor where you couldn't see the sharpness in the first place there's no point in hinting, but on an LCD the hinted font looks much better. The imprecision in the shape isn't so bad, because, at a given size, all characters will tend to be distored in the same way - keeping them consistent.

    I get a little queasy staring at fonts where, for example, the left side of a lower case 'n' is a black line a single pixel wide and the right side is a 50% gray line, two pixels wide (etc. etc.). Sure the lines are equivalent if you have very bad eyes or a very blurry monitor, but they should look the same.

    With hinting on both sides of the 'n' do look exactly the same. Another win here is that the previously mentioned double wide-50% gray line can ONLY look somewhat like the single wide black line if the gamma on your monitor is correct or you're looking at your LCD from exactly the right angle and if the program took gamma into account in the first place. The hinted font doesn't have that problem - both side of the 'n' will look perfectly the same from any angle, with any gamma etc. There's a real advantage there.

    The original use of hinting, to make fonts look better at low resolutions works for antialiased fonts as well as for non-antialiased ones.

    Rocky J. Squirrel

  129. Ah, some fonts are badly hinted.... by RockyJSquirel · · Score: 1

    By the way, looking at the page again, I realize that I looked at the san-serif example and not the serif example...

    The serifed font is badly hinted and turing hinting off is a good thing in that case. The san-serif font on the other hand looks better hinted.

    Rocky J. Squirrel

  130. Re:Excelleny, hinting == misapplication of an idea by Performer+Guy · · Score: 2

    I know it increases the sharpness of the characters, unfortunately the fools who implement this miss the point that to do so it moves the fonts by subpixel ammounts and when you mess this up it looks abominable.

    I know the issues about subpixel positioning etc, I'm a graphics programmer and have been for about 15 years. I am gurrently working full time on image processing software.

    The imprecision in the shape is awful and get's worse the smaller you go. GO look at the results instead of banging your sharpness drum. What good is sharpness if your edge is in the wrong place? This attempt to defeat Nyquist is an abomination and produces incorrect and ugly results, this has just been proven in spectacular fashion.

  131. grammar [ot] by Cuthalion · · Score: 1

    You could say that. I chose not to. Double negatives have been prescribed against only by relatively recent grammarians who sought to make english conform to the same rules as symbolic logic (similar to how the rules against the split infinitive are based on an erroneous analogy between english and latin).

    But the fact is that the double negative has a long, illustrious use, going back to the very beginnings of Modern English (Shakespeare) and beyond (Chaucer). The nuns teaching grammar may have relegated this construct to informal use, but it's still widely used and universally understood. I have no remose for having used it.

    --
    Trees can't go dancing
    So do them a big favor
    Pretend dancing stinks!
  132. ANTIALIASING NEEDS GAMMA CORRECTION (more info) by Theovon · · Score: 1

    I posted on this subject earlier, but I thought I would clarify some things, since what I provided was not sufficient for doing correct gamma correction on antialiasing. The basic issue is that a gray scale that appears to be linear to the human eye (perceptual brightness) is in fact not linear in how much light is produced for each brightness level (luminocity).

    To summarize the issue that needs to be corrected for, consider a thin white antialiased line on a black background. At some point along the line, you will encounter two adjacent pixels which are each 50% brightness, because the line covers each pixel by 50%. It is not sufficient to plot two pixels next to each other which you perceive to be 50% brightness, since what you perceive to be 50% brightness is really 18% as much light as a 100% bright pixel. Therefore, when you put two 50% pixels together, you get 36% as much light as a single 100% bright pixel, making the line appear to get dark and light along its length.

    To correct for this, the pixels to be plotted must be gamma corrected so that two 50% pixels together add up to 100%. To do this, set the pixel brightness (as a value from 0 to 1) to the power of 0.4, so to get two pixels to add up to 100%, you each pixel needs to be 76% (perceptually).

    Unfortunately, what I have described only works for a black background. Even if you are not actually doing alpha blending, antialiasing must be done in such a way that what you are drawing appears to blend properly into its background. So if you assume a blue background and want to draw a red line, then you can compute a color scale which progresses from red to blue depending on how much of the line covers a pixel.

    Since we are generally talking about drawing black text onto a white background, then the math changes. Simply setting the brightness you want to the power of 0.4 assumes a black background.

    The solution is to convert the color spaces of both the foreground and background colors into luminance space, blend them, and then convert back to perceptually linear color space.

    With antialiased lines, we can start with an assumption that each point that is plotted is a representation of how much of the foreground color we want to blend in. That is, rather than thinking of gray pixels in the antialiased text as gray pixels, consider the pixel value to represent how much black must be blended with white. This makes a subtle difference.

    So we come to the full formula for blending foreground and background colors. In this formula:

    B is the background color (perceptually linear).
    F is the foreground color (for antialiased text, this is full black for ALL pixels to be plotted).
    P is the percentage of the foreground to blend (you can compute this by taking a pixel from an antialiased glyph as you would have drawn it before (black fg, white bg) and subtracting it from 1.0).
    V is the value of the pixel to actually plot to the screen.

    V = pow(pow(F, 2.5)*P + pow(B, 2.5)*(1-P), 0.4)
    In other words, convert F and B to luminance space, weight them by the blend factor, add them together, then convert the result back to perceptual space.

    For white text on a black background, this reduces to [pow(P, 0.4)], which I had described earlier. For black text on a white background, this reduces to [pow(1-P, 0.4)] (where P here is how much black, not how much white).

  133. Is antialiasing really a good thing? by mellon · · Score: 2

    I find that anti-aliased fonts are a real drag to try to read. I wish there was some way to shut off anti-aliasing in MacOS X. The anti-aliased fonts are more mathematically correct renderings of font glyphs represented mathematically, it's true, but they just look blurry to me.

    It used to be that people would spend a lot of time hand-optimizing a font to look good on screen. This is definitely costly, and I can see why one would want to teach a computer to do it nicely, but anti-aliasing doesn't seem to be a good answer to me.

    Am I crazy, or do other people have the same experience with anti-aliased fonts? I'm using MacOS X, by the way, and the output looks a lot like the "after" output in the article, so I don't think I can blame my problem on a bad anti-aliasing algorithm.

  134. Re:Changing two lines of code is "hacking through" by Graspee_Leemoor · · Score: 1

    And of course the less than/less than equal example from the openssh security hole...

    graspee

  135. Re:Changing two lines of code is "hacking through" by haggar · · Score: 1

    Well, that's more a border-type of bug. I actually hate those, even though this eval vs. assignment-bug was really nasty to find.

    I hate border-type of bugs because it forces me to do way too much dry runs to iron the things out.

    --
    Sigged!
  136. thoracic outlet syndrome by Anonymous Coward · · Score: 0

    you know, dave, i heard that hacking for font improvements can increase your chance of getting TOS.
    the physiotherapy sisterhood

  137. You seem like a sick bastard... by Anonymous Coward · · Score: 0

    So, how's Sacramento today?