faq
flatforty
contribute
subscribe
configure
search
rdf
main
parent
thread
|
Re: Kerning
by Boudewijn Rempt on Tuesday 28/Aug/2007, @01:24
|
Ok, I investigated a bit. Apparently there's currently a bug in Qt that makes KWord obey the hinting settings. If you set hinting to anything but None (as you should anyway, hinting is evil), your text will be really bad. Another issue is with fonts: some fonts just have extremely bad kerning tables. Look at the attached image to see some very good lines of text in KWord, and some less good ones: Sans Serif and Arial are pretty bad, Georgia fair to middling. Times New Roman, Perpetua, Zapf Chancery, Bembo and Garamond are really pretty good. But then, those are expensive, professional fonts.
Actually, I think Bembo has never looked as good on screen as it does in KWord trunk. |
|
| File Attachment |
 |
|
|
The Fine Print: The following comments
are owned by whomever posted them.
( Reply )
|
Re: Kerning
by KDE User on Tuesday 28/Aug/2007, @02:13
|
Thank you for a most awesome explanation and illustration!
|
[
Reply To This | View ]
|
Re: Kerning
by boemer on Tuesday 28/Aug/2007, @03:23
|
Looks like only the windows fonts look really good (I'm looking at the 'u' in "Tussen"). It looks good in Arial, Garamond, Times New Roman, but not in the the other linux-specific? fonts...
Well if it works, at least with the windows fonts, than it is okay. Although I hope ofcourse those other fonts will get better over time....
|
[
Reply To This | View ]
|
Re: Kerning
by Boudewijn on Tuesday 28/Aug/2007, @08:42
|
Actually, only the first font ("sans serif") is a free font. The rest are mac/windows commercial fonts. Pretty expensive ones, too. And I'm so fond of Bembo...
|
[
Reply To This | View ]
|
|
Re: Kerning
by Niels on Tuesday 28/Aug/2007, @11:23
|
IMHO:
Garamond: The "r" is too strong -- it stands out in "typographie" and "kerning".
Bembo: Bad kerning in in "Waar" and "Tussen".
Perpetua: Bad kerning in "voorbeeld"
|
[
Reply To This | View ]
|
Re: Kerning
by christoph on Tuesday 28/Aug/2007, @17:29
|
Aww, the character positioning looks really bad for all of the fonts in that screenshot.
The problem is that Qt (being based on the OS's native font system) does only support integral character positions, making it impossible to get correct layout (line lengths etc.) and correct positioning at the same time.
Please see <A HREF="http://antigrain.com/research/font_rasterization/index.html">http://antigrain.com/research/font_rasterization/index.html</A> for some awesome results that are possible using FreeType directly, bypassing the OS's font system.
Especially worth noting is <A HREF="http://antigrain.com/research/font_rasterization/sample_arial_03.png">this screenshot</A> (yes the font is small, but this even more so proves the author's point).
|
[
Reply To This | View ]
|
Re: Kerning
by Boudewijn Rempt on Wednesday 29/Aug/2007, @00:53
|
Given that there's no word processing software yet that works the way the author of that article proposes, it's a bit silly to hold it up as the standard. Compared to the same text in OO.org or Abiword, KOffice 2.0 is doing really well.
|
[
Reply To This | View ]
|
Re: Kerning
by André on Wednesday 29/Aug/2007, @05:15
|
Still, you have to admit that the results look pretty amazing. At least to my rather untrained eye.
|
[
Reply To This | View ]
|
Re: Kerning
by Thomas Zander on Wednesday 29/Aug/2007, @10:02
|
> The problem is that Qt (being based on the OS's native font system) does
> only support integral character positions, making it impossible to get
> correct layout (line lengths etc.) and correct positioning at the same time.
Qt's font system uses qreal (doubles) in the API everywhere and maps that to a high-res grid of integers to keep things fast. There is virtually no loss there so the statement above doesn't really apply to the KWord case. Sorry.
|
[
Reply To This | View ]
|
Re: Kerning
by christoph on Thursday 30/Aug/2007, @10:50
|
You are right about the API and internal calculations using qreals, but the actual rendering is not done in sub-pixel positioned precision.
Try rendering a couple of letters each moved by a fractional pixel coordinate, and you will see that they all end up looking the same.
Compare that to KPDF's rendering (3.5.7, didn't try 3.91 yet), where the bitmap of a letter is different depending on (sub-pixel) position.
Of course it also has to do with Qt (or FreeType?) trying very hard to cache the bitmaps. In earlier versions of Qt/FreeType, you could bypass caching by scaling with, say, a factor of 1.00001, and get very good results. But in recent versions, the cache is used even for rotated fonts, making the result look really funny.
And seeing the good quality of KPDF and its good speed, I doubt that a Word Processor couldn't get nearly the same results.
|
[
Reply To This | View ]
|
Re: Kerning
by Vide on Friday 31/Aug/2007, @04:39
|
Sorry maybe I'm blind but I see no problems at all with kerning in Boudewijn's screenshot
|
[
Reply To This | View ]
|
|
The Fine Print: The previous
comments are owned by whomever posted them.
( Reply )
|
|