Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO]Freetype subpixel font rendering - lcd monitors Pt 2
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 18, 19, 20 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Infinality
n00b
n00b


Joined: 12 Aug 2010
Posts: 24
Location: Wisconsin, USA

PostPosted: Thu Nov 18, 2010 2:07 am    Post subject: Reply with quote

PaulBredbury wrote:
Shell exports are a bad idea, because they only apply if the app is started from the shell command-line. They do *not* apply if I start e.g. firefox from the XFCE menu.

Wouldn't they still apply if you included the infinality settings in /etc/profile or /etc/profile.d/infinality-settings ? At least, I tested this and it worked. Maybe it would make sense to have a real config file in a known place. Hmmm....
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Nov 18, 2010 2:26 am    Post subject: Reply with quote

Infinality wrote:
a real config file

We already have fontconfig, let's use that.

By the way, my fonts are looking fantastic :D
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sun Dec 05, 2010 6:45 pm    Post subject: Reply with quote

Can someone please push a patched ebuild for freetype-2.4.4 to the overlay?

Thanks.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1979
Location: Poland

PostPosted: Fri Dec 10, 2010 7:26 am    Post subject: Reply with quote

rahulthewall wrote:
Can someone please push a patched ebuild for freetype-2.4.4 to the overlay?

Thanks.


please, please, please, please, please, oh please :)
Back to top
View user's profile Send private message
xzerth
n00b
n00b


Joined: 18 Dec 2010
Posts: 4

PostPosted: Sat Dec 18, 2010 2:43 pm    Post subject: Reply with quote

Is there any recipe on how to get awesome fonts on 1024x768?
What use flags and what packages form which overlay? :roll:
I'm asking because I can't get good fonts with lcd-filtering overlay.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Dec 18, 2010 3:00 pm    Post subject: Reply with quote

xzerth wrote:
1024x768

No resolutions require special handling - use the same general setup procedure.

The lower the DPI (dots per inch), the worse fonts will look. Even on an inkjet printer, it's easy to tell the difference between 300 DPI and 600 DPI - and you've probably got about 60:

Assuming a 15-inch (measuring horizontally & vertically) square viewing area:

1024/15=68 DPI
768/15=51 DPI
Back to top
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Fri Dec 24, 2010 10:44 am    Post subject: Reply with quote

mbar wrote:
rahulthewall wrote:
Can someone please push a patched ebuild for freetype-2.4.4 to the overlay?

Thanks.


please, please, please, please, please, oh please :)

Looks like someone tried it (same old patches applied to new 2.4.4 freetype, I mean) and reported that it works:
http://www.infinality.net/forum/viewtopic.php?f=2&t=42

I'll see what happens if I bump it locally.

EDIT: It works, here's the quick and dirty way:
Code:
# First copy media-libs/freetype folder from lcd-filter to your own overlay, then:
cd YOUR_OVERLAY/media-libs/freetype
rename 2.4.3 2.4.4 freetype-2.4.3.ebuild files/{*3-settings*,*3-subpixel*,*3-ubuntu*,*3-add*}
ebuild freetype-2.4.4.ebuild digest
emerge -av1 freetype

If you bump from freetype-2.4.3-r2.ebuild you'll have to comment out or delete the epatch lines for the two patches that fail: freetype-2.4.3-CVE-2010-3814.patch and freetype-2.4.3-SA41738.patch. Bumping from freetype-2.4.3.ebuild (as in the code block above) is the lazy solution for those who don't care about a one line change to what USE="+debug" does.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Dec 25, 2010 8:12 am    Post subject: Reply with quote

There's a couple more patches to apply, to stop freetype crashing and to show all characters. Here's what I do (to freetype 2.4.4), and here's the patches:
Code:
  patch -Np1 -i freetype-add-subpixel-hinting-infinality-20101114-1.patch  &&
  patch -Np1 -i freetype-enable-subpixel-hinting-infinality-20100909-1.patch  &&
  patch -Np1 -i freetype-entire-infinality-patchset-20101114-1.patch  &&

  # https://bbs.archlinux.org/viewtopic.php?pid=864540#p864540
  patch -Np1 -i freetype2-infinality-protect_style_name-goddesse.patch  &&

  # http://forums.gentoo.org/viewtopic-p-6487616.html#6487616
  patch -Np1 -i freetype-2.4.3-20101114-infinality-apply-env-defaults.patch  &&

  # Also in RPM - http://www.infinality.net/fedora/linux/13/SRPMS/
  patch -Np1 -i freetype-2.2.1-enable-valid.patch  &&

  # git diff 9ec31cea16a492bed96a96a7c30c1a466adb9792 > ~/temp/freetype-git-20101222.patch
  patch -Np1 -i freetype-2.4.4-git-20101222.patch  &&

  # Enable system zlib
  sed -i -r 's:.*(#.*SYSTEM_ZLIB.*) .*:\1:' include/freetype/config/ftoption.h  &&

  # Remove useless files
  rm -f include/freetype/config/ftoption.h.orig src/base/ftobjs.c.orig src/truetype/ttinterp.c.orig include/freetype/internal/ftobjs.h.orig  &&
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sat Dec 25, 2010 6:01 pm    Post subject: Reply with quote

rahulthewall wrote:
Can someone please push a patched ebuild for freetype-2.4.4 to the overlay?

Done at last.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Dec 27, 2010 1:50 am    Post subject: Reply with quote

cairo 1.10.2 is out:
Quote:
The cairo community is pleased to announce the 1.10.2 release of the cairo graphics library. This is the first update to cairo's stable 1.10 series and contains a large number of bug fixes.

With Ubuntu's patch collection cairo_1.10.0-1ubuntu5.debian.tar.gz, don't apply these two:

fix_trailing_comma.patch
05_fix_glyph_advance.patch

Because they are already in cairo 1.10.2

Edit: poppler 0.16.0 is out also.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Dec 31, 2010 4:15 am    Post subject: Reply with quote

Another Infinality patch, to fix "tricky" fonts, is here.
Back to top
View user's profile Send private message
khippy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2002
Posts: 79
Location: Braunschweig - Germany

PostPosted: Mon Jan 03, 2011 12:59 pm    Post subject: Reply with quote

It is not a must to use lcd-filtering for proper text view. I have satisfying results following this guide:
http://www.kev009.com/wp/2009/12/getting-beautiful-fonts-in-gentoo-linux/
It is simple, uses USE keywords and a small amount of configuration files to adjust your personal needs.

It is your decision, what to use.
_________________
--
there are no silly questions
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Jan 12, 2011 7:19 am    Post subject: Reply with quote

firefox 3.6.13 is not properly compatible with system cairo 1.10.2

The good news is that firefox 4 beta 8 works OK.
The bad news is that some extensions (e.g. Greasemonkey, CustomizeGoogle) are automatically disabled because they're not compatible with firefox 4.

Edit: firefox 4 betas 9 and 10 are not compatible with system cairo, because mozilla tweaks its own internal cairo 8O

Edit2: firefox 4 beta 12 works with system cairo :)


Last edited by PaulBredbury on Thu Mar 10, 2011 11:59 am; edited 2 times in total
Back to top
View user's profile Send private message
adimanav
n00b
n00b


Joined: 14 Jan 2011
Posts: 24

PostPosted: Fri Jan 14, 2011 5:48 am    Post subject: Reply with quote

does system cairo-1.10.2-r1 have all infinality and other patches that cairo-1.10.0-r3 from lcd-filter overlay have? i tried it but found problems with font and other rendering so reverted back to the lcd-filter version.

on another note, i find chromium renders devnagari fonts incorrectly while firefox does the right thing. i'm attaching screenshots to clarify. am using the latest ebuilds from lcd-filter. seems to be a problem with chromium but wanted to get some expert opinion. yes i'm quite the newbie :)

firefox http://i56.tinypic.com/5djsoy.png

chromium http://i52.tinypic.com/20gxmpk.png
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Jan 14, 2011 6:09 am    Post subject: Reply with quote

By "system", I mean using firefox's --enable-system-cairo option, rather than its own bundled cairo. So "system" is whatever *you* have installed for cairo.

adimanav wrote:
does system cairo-1.10.2-r1 have all infinality and other patches that cairo-1.10.0-r3 from lcd-filter overlay have?

No, look at the ebuild. It has:
Code:
   epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
   epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch

But no Infinality patches.

I only use firefox - the ver 4 betas currently.
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Tue Jan 25, 2011 8:26 am    Post subject: Reply with quote

Can we please have an updated ebuild for cairo-1.10.2-r1 (to relfect the tree version) for the lcd-filtering overlay.

Thanks
Rahul
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sun Jan 30, 2011 5:10 pm    Post subject: Reply with quote

Updated ebuild of cairo-1.10.2-r1 along with the latest patchset from ubuntu.

http://dl.dropbox.com/u/2649236/cairo.tar.gz
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Mon Jan 31, 2011 7:39 am    Post subject: Reply with quote

Thanks for that :)

Its a shame overlay isn't maintained any more :(
If some one like me droping on the forums once a week it's hard to cover this huge topic with dozen of patches and patches of patches
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Feb 13, 2011 3:18 pm    Post subject: Reply with quote

Don't worry, the overlay is still maintained : I've added ebuild and patches for cairo 1.10.2 and updated the ebuild and patchset for freetype 2.4.4.

Note: Infinilaty's entire additional patch for freetype is controlled through environment variables. The default values are set by /etc/env.d/99lcdfilter. INFINALITY_FT_PSEUDO_GAMMA and INFINALITY_FT_FILTER_PARAMS have been commented out because the patch read them in a locale dependent way. If you want to change these settings, you must use the decimal point given by 'locale -k decimal_point'.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
pross
Apprentice
Apprentice


Joined: 30 Jul 2003
Posts: 156
Location: Ireland

PostPosted: Sun Feb 13, 2011 3:35 pm    Post subject: Reply with quote

Code:
!!! Digest verification failed:
!!! /var/lib/layman/lcd-filtering/media-libs/freetype/files/99lcdfilter
!!! Reason: Filesize does not match recorded size
!!! Got: 7271
!!! Expected: 7269

_________________
My Overlay [pross] | bfs-sources
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Feb 13, 2011 3:36 pm    Post subject: Reply with quote

Fixed, thanks.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
pross
Apprentice
Apprentice


Joined: 30 Jul 2003
Posts: 156
Location: Ireland

PostPosted: Sun Feb 13, 2011 3:40 pm    Post subject: Reply with quote

Sorry, no it isnt

Code:
pross@mybox ~ $ cat /var/lib/layman/lcd-filtering/x11-libs/libXft/Manifest
AUX libXft-2.1.14-ubuntu.patch 24916 RMD160 80b0f535f500515ab4eeba068c0978e2427bd898 SHA1 1598f844d7b115e5f74910648dc71bf95d154563 SHA256 aaa44ae87a683e1ef2cdda63e65e807d8b3b500bd0ee6bf03a432d4de31d073f
AUX libXft-2.2.0-ubuntu.patch 24455 RMD160 9adb30b3a5a8e1d5b83b45bda01957834a830139 SHA1 70a24463d67529f7075e8614b757041c2fdc9101 SHA256 f472b21321db88d06b07231d5f23ddd3e27bedb15c104760b07a394193947658
DIST libXft-2.1.14.tar.bz2 289068 RMD160 d167f657ad1d574496c757fb24f9f361c7f405a9 SHA1 e08ae6b1f56e160179b9f141b4ab799333ec725e SHA256 700e9d594b81cad3dfd5fac4a5cfd0c4cf7780c812507ef04eb40139ebf5175e
DIST libXft-2.2.0.tar.bz2 290451 RMD160 e2955cfd5c8d2e02d4dba5f01b5132634005f971 SHA1 ed29784259f4e26df78141035560ae8a7c62e83f SHA256 c8685ae56da0c1dcc2bc1e34607e7d76ae98b86a1a71baba3a6b76dbcf5ff9b2
EBUILD libXft-2.1.14.ebuild 1331 RMD160 f5850d1307be4718a684709cf12f6b43be23a125 SHA1 3fc1c69f95e3ed850a9711042632031aadb98a15 SHA256 4c6aca1291840ee12d2ff84563ac945217cbc4aa00e27340fd8e0139f705765b
EBUILD libXft-2.2.0.ebuild 1331 RMD160 f5850d1307be4718a684709cf12f6b43be23a125 SHA1 3fc1c69f95e3ed850a9711042632031aadb98a15 SHA256 4c6aca1291840ee12d2ff84563ac945217cbc4aa00e27340fd8e0139f705765b
pross@mybox ~ $ ls -l /var/lib/layman/lcd-filtering/x11-libs/libXft/
total 12
-rw-r--r-- 1 root root 1201 Feb 13 15:38 Manifest
drwxr-xr-x 2 root root 4096 Feb 13 15:38 files
-rw-r--r-- 1 root root 1331 Feb 13 15:38 libXft-2.2.0.ebuild

_________________
My Overlay [pross] | bfs-sources
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Feb 13, 2011 3:42 pm    Post subject: Reply with quote

Fixed again, sorry.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
pross
Apprentice
Apprentice


Joined: 30 Jul 2003
Posts: 156
Location: Ireland

PostPosted: Sun Feb 13, 2011 3:49 pm    Post subject: Reply with quote

bi3l wrote:
Fixed again, sorry.

Worked perfectly this time!
_________________
My Overlay [pross] | bfs-sources
Back to top
View user's profile Send private message
illuminated
n00b
n00b


Joined: 28 Dec 2010
Posts: 48

PostPosted: Sat Feb 19, 2011 8:47 pm    Post subject: Reply with quote

I upgraded to cairo 1.10.2 which should have cleartype enabled but when it really does not make any difference enabling it. My firefox&thunderbird fonts are now pretty much unreadable and I don't know what to do. Useflag lcdfilter does not look great for me so I prefer cleartype

edit
I fixed my fonts. I just had to unemerge everything first and then follow instructions on LCD Filter Wiki.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 18, 19, 20 ... 27, 28, 29  Next
Page 19 of 29

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