Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

[HOWTO]Freetype subpixel font rendering - lcd monitors Pt 2

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
720 posts
  • Page 19 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 17
  • 18
  • 19
  • 20
  • 21
  • …
  • 29
  • Next
Author
Message
Infinality
n00b
n00b
User avatar
Posts: 24
Joined: Thu Aug 12, 2010 1:21 am
Location: Wisconsin, USA
Contact:
Contact Infinality
Website

  • Quote

Post by Infinality » Thu Nov 18, 2010 2:07 am

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....
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Thu Nov 18, 2010 2:26 am

Infinality wrote:a real config file
We already have fontconfig, let's use that.

By the way, my fonts are looking fantastic :D
Top
rahulthewall
Veteran
Veteran
User avatar
Posts: 1264
Joined: Thu Nov 01, 2007 11:28 pm
Location: Zürich
Contact:
Contact rahulthewall
Website

  • Quote

Post by rahulthewall » Sun Dec 05, 2010 6:45 pm

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

Thanks.
Who shall guard the guards?
Top
mbar
Advocate
Advocate
User avatar
Posts: 2000
Joined: Wed Jan 19, 2005 9:45 am
Location: Poland

  • Quote

Post by mbar » Fri Dec 10, 2010 7:26 am

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 :)
Top
xzerth
n00b
n00b
Posts: 4
Joined: Sat Dec 18, 2010 2:39 pm

  • Quote

Post by xzerth » Sat Dec 18, 2010 2:43 pm

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.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sat Dec 18, 2010 3:00 pm

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
Top
StringCheesian
l33t
l33t
Posts: 887
Joined: Tue Oct 21, 2003 6:21 am

  • Quote

Post by StringCheesian » Fri Dec 24, 2010 10:44 am

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: Select all

# 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.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sat Dec 25, 2010 8:12 am

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: Select all

  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  &&
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Sat Dec 25, 2010 6:01 pm

rahulthewall wrote:Can someone please push a patched ebuild for freetype-2.4.4 to the overlay?
Done at last.
OGMRip - LCD filtering (Wiki)
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Mon Dec 27, 2010 1:50 am

cairo 1.10.2 is out:
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.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Fri Dec 31, 2010 4:15 am

Another Infinality patch, to fix "tricky" fonts, is here.
Top
khippy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Thu Aug 29, 2002 8:32 pm
Location: Braunschweig - Germany
Contact:
Contact khippy
Website

  • Quote

Post by khippy » Mon Jan 03, 2011 12:59 pm

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/gettin ... too-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
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Wed Jan 12, 2011 7:19 am

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.
Top
adimanav
n00b
n00b
Posts: 25
Joined: Fri Jan 14, 2011 5:03 am

  • Quote

Post by adimanav » Fri Jan 14, 2011 5:48 am

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
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Fri Jan 14, 2011 6:09 am

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: Select all

	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.
Top
rahulthewall
Veteran
Veteran
User avatar
Posts: 1264
Joined: Thu Nov 01, 2007 11:28 pm
Location: Zürich
Contact:
Contact rahulthewall
Website

  • Quote

Post by rahulthewall » Tue Jan 25, 2011 8:26 am

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?
Top
rahulthewall
Veteran
Veteran
User avatar
Posts: 1264
Joined: Thu Nov 01, 2007 11:28 pm
Location: Zürich
Contact:
Contact rahulthewall
Website

  • Quote

Post by rahulthewall » Sun Jan 30, 2011 5:10 pm

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?
Top
^marcs
Apprentice
Apprentice
User avatar
Posts: 169
Joined: Wed Mar 09, 2005 8:08 pm

  • Quote

Post by ^marcs » Mon Jan 31, 2011 7:39 am

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
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Sun Feb 13, 2011 3:18 pm

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)
Top
pross
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Wed Jul 30, 2003 11:38 am
Location: Ireland

  • Quote

Post by pross » Sun Feb 13, 2011 3:35 pm

Code: Select all

!!! 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
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Sun Feb 13, 2011 3:36 pm

Fixed, thanks.
OGMRip - LCD filtering (Wiki)
Top
pross
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Wed Jul 30, 2003 11:38 am
Location: Ireland

  • Quote

Post by pross » Sun Feb 13, 2011 3:40 pm

Sorry, no it isnt

Code: Select all

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
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Sun Feb 13, 2011 3:42 pm

Fixed again, sorry.
OGMRip - LCD filtering (Wiki)
Top
pross
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Wed Jul 30, 2003 11:38 am
Location: Ireland

  • Quote

Post by pross » Sun Feb 13, 2011 3:49 pm

bi3l wrote:Fixed again, sorry.
Worked perfectly this time!
My Overlay [pross] | bfs-sources
Top
illuminated
n00b
n00b
Posts: 48
Joined: Tue Dec 28, 2010 6:14 pm

  • Quote

Post by illuminated » Sat Feb 19, 2011 8:47 pm

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.
Top
Post Reply

720 posts
  • Page 19 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 17
  • 18
  • 19
  • 20
  • 21
  • …
  • 29
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic