You are not logged in.

#51 2010-12-12 10:30:27

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Current status of LCD subpixel rendering

brebs wrote:

Monospace isn't a font - it's an alias.

I know, i figured you understood that 'regular' meant 'default', so DejaVu Sans Mono. smile


ᶘ ᵒᴥᵒᶅ

Offline

#52 2010-12-12 11:03:22

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Current status of LCD subpixel rendering

Infinality's rendering gives me this, which has no problem with split bold "s". I suggest you try my freetype-2.4.3-20101114-infinality-apply-env-defaults.patch wink

Bad "s" were supposed to be fixed by the 17-Nov-ish Infinality patch update, IIRC - so are you up-to-date?

Offline

#53 2010-12-12 11:31:07

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Current status of LCD subpixel rendering

brebs wrote:

Infinality's rendering gives me this

Is that Xft? Since Cairo doesn't give me this problem.

Bad "s" were supposed to be fixed by the 17-Nov-ish Infinality patch update, IIRC - so are you up-to-date?

Yes i updated 2-3 days ago.


ᶘ ᵒᴥᵒᶅ

Offline

#54 2010-12-12 11:51:59

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Current status of LCD subpixel rendering

I confess, that was via firefox, so no xft used.

What app are you using? Or can you suggest one for me to check with?

Offline

#55 2010-12-12 12:12:30

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Current status of LCD subpixel rendering

brebs wrote:

I confess, that was via firefox, so no xft used.

What app are you using? Or can you suggest one for me to check with?

These were taken in a console (rxvt-unicode), so it propagates to everything under that.


ᶘ ᵒᴥᵒᶅ

Offline

#56 2010-12-12 19:16:26

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Current status of LCD subpixel rendering

I've been trying out the infinality patch for the last two days, alternating between the different presets.  I love the idea of it and the simplicity of choosing ones preference; however I still find the result lacking.

I probably stand alone on my belief, but true Windows 98 font rendering seems the least evil of them all. No matter which font patches I use under Linux, I eventually return to aliased Windows fonts.  Under Windows XP, standard rendering and cleartype are interchangeable; both look good. Under Apple...well it's Apple. Linux just can't seem to get it right*.

* A completely opinionated statement of course; your mileage may vary.

740420101212-win98aliasing.png

Last edited by thayer (2010-12-12 19:25:48)


thayer williams ~ thayerwilliams.ca

Offline

#57 2010-12-12 22:41:01

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Current status of LCD subpixel rendering

Infinality _almost_ made it here. But no, OpenOffice is still ugly (not that I care now as I replaced it with KOffice), and the fonts in KDM, though they look as fine as with cleartype patches, are not exactly 'uniform' or 'proportionate'. So, back to cleartype with MS fonts.

snapshot1d.th.png

Last edited by schivmeister (2010-12-12 22:42:03)


I need real, proper pen and paper for this.

Offline

#58 2010-12-13 00:58:19

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Current status of LCD subpixel rendering

schivmeister wrote:

Infinality _almost_ made it here. But no, OpenOffice is still ugly (not that I care now as I replaced it with KOffice), and the fonts in KDM, though they look as fine as with cleartype patches, are not exactly 'uniform' or 'proportionate'. So, back to cleartype with MS fonts.

That screenshot is the result of the -cleartype patches?  I'm impressed. Also, I recall reading somewhere that OpenOffice.org uses its own font-rendering engine, though I use it so rarely I could be way off the mark.


thayer williams ~ thayerwilliams.ca

Offline

#59 2010-12-13 01:22:37

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: Current status of LCD subpixel rendering

thayer wrote:
schivmeister wrote:

Infinality _almost_ made it here. But no, OpenOffice is still ugly (not that I care now as I replaced it with KOffice), and the fonts in KDM, though they look as fine as with cleartype patches, are not exactly 'uniform' or 'proportionate'. So, back to cleartype with MS fonts.

That screenshot is the result of the -cleartype patches?  I'm impressed. Also, I recall reading somewhere that OpenOffice.org uses its own font-rendering engine, though I use it so rarely I could be way off the mark.

OpenOffice, at least in Arch, ignores fontconfig settings (so does the stock arch firefox package), so fonts will look horrible with the -infinality patch unless you also use .Xresources settings in addition to the .fonts.conf. It might just need to be compiled differently, but I wouldn't be surprised if they have their own font rendering engine... I mean they did reinvent the wheel with their own GUI toolkit.

@schiv
You can disable any of the individual infinality patches in /etc/profile.d/infinality-settings.sh, so you might want to give it another chance and just disable the stuff you didn't like (probably stem alignment).

Last edited by thestinger (2010-12-13 01:29:18)

Offline

#60 2010-12-13 19:30:00

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Current status of LCD subpixel rendering

@thayer
Yep. More precisely:

cairo-cleartype-xcb 1.10.0-1
freetype2-cleartype 2.4.3-1
libxft-cleartype 2.2.0-1
fontconfig-lcd 2.8.0-1
ttf-ms-fonts

fonts/conf.d important symlinks:

10-autohint.conf
10-lcd-filter.conf

~/.fonts.conf is autogenerated by KDE's font module, which has the following settings:

Anti-aliasing = True
Subpixel rendering = RGB
Hinting style = Slight

The hinting changes things drastically. I find that None works best for GTK+ and Slight for Qt. It depends how much width you like to see. Medium and up totally ruins it.

@thestinger
That still requires me to muck around. With cleartype I do essentially nothing and I have good rendering everywhere including OpenOffice. At least until cleartype remains alive I'll stick to it. By then, infinality or something else would probably be the in-thing. I hope.


I need real, proper pen and paper for this.

Offline

#61 2010-12-13 20:27:48

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,035
Website

Re: Current status of LCD subpixel rendering

@schivmeister, hmm, I get best results with these packages:

cairo-cleartype-xcb
freetype2-infinality
libxft-cleartype
fontconfig-ubuntu
ttf-ms-fonts and Segoe UI (copied)

/etc/fonts/conf.d/ custom symlinks:

10-antialias.conf
10-autohint.conf
10-hinting.conf
10-hinting-slight.conf
10-sub-pixel-rgb.conf

Slight hinting works best everywhere I think. Result:

fonts_thumb.png

Offline

#62 2010-12-13 21:34:41

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: Current status of LCD subpixel rendering

karabaja4 wrote:

Slight hinting works best everywhere I think. Result:

In my opinion, that looks awful. You probably shouldn't be mixing the -cleartype packages with -infinality, and things would look better if you were using full TT hinting for fonts with good instructions and only falling back to hintslight autohint for other fonts, like the standard infinality local.conf.

Same thing here:

Text (Arial):
vNnk3Nw

Code block (Consolas):
vNnk3OQ

More Consolas:
vNnk3Ng

I'm using freetype2-infinality and libxft-lcd, no changes to the infinality-settings file, and my font configuration is very similar to the "Infinality" profile in Infinality's local.conf. I'm still noticing some rare color fringes making it through the LCD filtering, mostly on bold fonts. The default strong gibson filter is also too blurry for my tastes so I should probably change it (check out the x in the code block screenshot).

After replacing ttf-ms-fonts and ttf-vista-fonts with the fonts from a win7 install, things are looking a lot better. ttf-ms-fonts has version 2.00 of fonts that are now at version 5.00 or higher and the hinting has really gotten a lot better (along with wider unicode support).

libxft-lcd example (urxvt with monaco), not really on par with gtk+, qt and other applications that use cairo from what I can tell:
vNnk3OA

Last edited by thestinger (2011-01-11 23:57:26)

Offline

#63 2010-12-22 10:30:55

Gillian00
Member
From: Belgium
Registered: 2010-05-25
Posts: 100

Re: Current status of LCD subpixel rendering

Hi,

I followed your instructions and tweaks with infinality patches and fonts.conf etc etc   but I have still a little problem:

baaadfonts12.png


You can see I have beautiful rendering at the top of the webpage and crapy fonts in the middle of the webpage.   
So nice rendering works with kde apps, desktop, and most webpages with chromium or firefox  but for some webpages or apps like kopete, I just have crapy fonts sad

Can you help me ??



Thanks ^^


EDIT: crapy rendering with facebook also  ...

EDIT n°2: I have better rendering when I set bigger fonts, How can I have good rendering with small fonts ??

--mod edit: use thumbnails, see: https://wiki.archlinux.org/index.php/Fo … s_and_Code

Last edited by Gillian00 (2010-12-22 11:24:40)


Dell Studio XPS 1647 | i5-560m | 4go ddr3 | ATI radeon mobility 4670HD 1go gddr3 | Seagate Momentus 7200.4 G-force | wled 1600x900

Offline

#64 2011-06-07 01:11:00

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Current status of LCD subpixel rendering

I believe that this thread is still relevant, so I'll post my cleartype configuration and some shots.

Packages:

fontconfig 2.8.0-1
fontconfig-lcd 2.8.0-1
freetype2-cleartype 2.4.4-1
cairo-cleartype 1.10.0-1
libxft-cleartype 2.1.14-1

.fonts.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
  <edit name="autohint">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault<const>
  </edit>
 </match>
</fontconfig>

Some shots:

tOHk4cA

tOHk4cw

tOHk4dA



For my taste cleartype is the best choice and the packages still work, the only problem is that they are outdated.

Someone still using cleartype patches? Thanks.

Last edited by estevao (2011-06-07 01:18:22)

Offline

#65 2011-06-07 01:26:03

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: Current status of LCD subpixel rendering

Just use freetype2-infinality and disable the features that you don't like (in /etc/profile.d/infinality-settings.sh).

You can get the same result by setting INFINALITY_FT_FILTER_PARAMS to what the cleartype patches use.

Last edited by thestinger (2011-06-07 01:26:39)

Offline

#66 2011-06-07 01:36:52

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Current status of LCD subpixel rendering

Those are huge fonts. Here's what I use (Infinality's rendering).

Offline

#67 2011-06-07 01:38:42

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Current status of LCD subpixel rendering

@thestinger:

The _exact same_ result or something similar?

Do you know the INFINALITY_FT_FILTER_PARAMS that the cleartype patches use? I didn't find them in the patches.

Thanks.


@brebs:

I like huge and well rendered fonts. Small fonts gives me headache. smile

Can you tell me your setup?

Thanks.

Last edited by estevao (2011-06-07 01:49:24)

Offline

#68 2011-06-07 02:03:26

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Current status of LCD subpixel rendering

My config is scattered on the huge Gentoo fonts thread, along with my Infinality config. I'm using Infinality's ~/.fonts.conf

$ xdpyinfo | grep -B1 dot
  dimensions:    1920x1080 pixels (372x230 millimeters)
  resolution:    131x119 dots per inch

Offline

#69 2011-06-07 02:37:37

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Current status of LCD subpixel rendering

I adapted the pkgbuild of libxft-cleartype from AUR and it worked just fine. Now I have libxft-cleartype-2.2.0.

EDIT: The same thing with cairo-cleartype, now I'm running cairo-cleartype-1.10.2. Wondering why these packages aren't recommended anymore... some idea? Thanks.

pkgbuilds:

http://paste.archlinux-br.org/1736
http://paste.archlinux-br.org/1737

Last edited by estevao (2011-06-07 17:49:04)

Offline

#70 2011-06-07 20:34:53

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Current status of LCD subpixel rendering

Someone still using cleartype patches?

Thanks.

Offline

#71 2011-06-07 21:02:56

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Current status of LCD subpixel rendering

estevao wrote:

Do you know the INFINALITY_FT_FILTER_PARAMS that the cleartype patches use? I didn't find them in the patches.

Here's a big clue. Look at line 19 of cairo-cleartype's cairo-9999-cleartype.patch:

static const int   fir_filter[5] = { 0x1C, 0x38, 0x55, 0x38, 0x1C };

I'll let you do the hex-to-dec conversion wink

You could also experiment with different arrays, if you feel like it.

Sounds like cairo-cleartype is a candidate for adoption.

Offline

#72 2011-06-07 21:24:28

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Current status of LCD subpixel rendering

@brebs:

I'll convert and try this array later. Thanks for the detective work on this. wink

I already tested all the suggested arrays and none suits my needs, unfortunately.

I leaved a message for cairo-cleartype maintainer on AUR.

Last edited by estevao (2011-06-07 21:26:23)

Offline

#73 2011-06-08 01:35:42

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: Current status of LCD subpixel rendering

Am I the only one that vastly preferrs the ubuntu font rendering patches to infinality? I tried using infinality and tweaking its rendering but I couldn't get it as nice and readable as the ubuntu patches.

Offline

#74 2011-06-08 01:57:19

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Current status of LCD subpixel rendering

@bwat47

I prefer ubuntu patches in relation to infinality too, in fact, the final result of ubuntu patches is very similar to cleartype (just a little bit worse IMO). Give cleartype a try, you'll like it.

Last edited by estevao (2011-06-08 01:59:51)

Offline

#75 2011-06-20 14:50:56

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Current status of LCD subpixel rendering

Hey guys,

The cleartype packages are back on AUR!

https://wiki.archlinux.org/index.php/Fo … e_packages

freetype2-cleartype: http://aur.archlinux.org/packages.php?ID=8108
cairo-cleartype: http://aur.archlinux.org/packages.php?ID=8110
libxft-cleartype: http://aur.archlinux.org/packages.php?ID=8112

Last edited by estevao (2011-06-20 17:49:13)

Offline

Board footer

Powered by FluxBB