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 24 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 22
  • 23
  • 24
  • 25
  • 26
  • …
  • 29
  • Next
Author
Message
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Thu May 03, 2012 4:13 am

EatMeerkats wrote:there is no "correct order" due to the way Portage works.
Don't be so trusting. People can and do screw up compilations in every way possible. A recompilation won't hurt, and might fix the problem.

As a simple example, if a big patch is added to freetype, then "emerge cairo" is run, Portage won't know that freetype should be recompiled first.
Top
mbar
Advocate
Advocate
User avatar
Posts: 2000
Joined: Wed Jan 19, 2005 9:45 am
Location: Poland

  • Quote

Post by mbar » Thu May 03, 2012 6:10 am

^marcs wrote:Anyone else have have some fonts messed up in firefox after recent update?
Use eselect fontconfig, as some conf files were changed.
Top
^marcs
Apprentice
Apprentice
User avatar
Posts: 169
Joined: Wed Mar 09, 2005 8:08 pm

  • Quote

Post by ^marcs » Thu May 03, 2012 10:20 am

I have reseted whole fontconfig configuration and applied again as described in wiki, also tried rebuilding firefox, no effect.

*edit*
Ive downgraded fontconfig-2.9.0 to fontconfig-2.8.0-r2 and it helped.
Top
EatMeerkats
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Wed Mar 15, 2006 7:46 pm

  • Quote

Post by EatMeerkats » Thu May 03, 2012 12:18 pm

PaulBredbury wrote:As a simple example, if a big patch is added to freetype, then "emerge cairo" is run, Portage won't know that freetype should be recompiled first.
Then the patch should be controlled by a USE flag or the version of freetype should be bumped to -r1 or something… either way, cairo's dependencies should require either the USE flag or new version if necessary. Since bi3l's ebuilds require the proper "lcdfilter" USE flags, everything will be built in the correct order.
Top
jcTux
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Tue Dec 29, 2009 3:57 pm
Location: Tours, France

  • Quote

Post by jcTux » Sat May 05, 2012 1:18 pm

^marcs wrote: *edit*
Ive downgraded fontconfig-2.9.0 to fontconfig-2.8.0-r2 and it helped.
Same solution here.
Top
swimmer
Veteran
Veteran
User avatar
Posts: 1330
Joined: Mon Jul 15, 2002 10:42 am
Location: Netherlands

  • Quote

Post by swimmer » Sat May 05, 2012 1:37 pm

^marcs wrote:I have reseted whole fontconfig configuration and applied again as described in wiki, also tried rebuilding firefox, no effect.

*edit*
Ive downgraded fontconfig-2.9.0 to fontconfig-2.8.0-r2 and it helped.
You saw and tried the new 11-lcdfilter-* rules in fontconfig did you?

HTH
swimmer
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sat May 05, 2012 2:10 pm

^marcs wrote:fonts messed up in firefox after recent update?
...
[ebuild R ] x11-libs/cairo-1.10.2-r2::lcd-filtering USE="X glib lcdfilter opengl svg xcb (-aqua) -cleartype -debug -directfb -doc (-drm) (-gallium) (-openvg) (-qt4) -static-libs" 23,007 kB
Try without the opengl USE flag. cairo 1.12.2's configure contains:
"'--- The OpenGL surface backend feature is still under active development and
--- is included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to OpenGL surface backend
--- specific API.'
Anyway, fontconfig 2.9.0 works fine for me, with cairo 1.12.2 and the firefox 12.0 patch I mentioned earlier in this thread.

I compile cairo with:

Code: Select all

--disable-static --disable-xlib-xcb --enable-tee --with-x
Top
jcTux
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Tue Dec 29, 2009 3:57 pm
Location: Tours, France

  • Quote

Post by jcTux » Sat May 05, 2012 5:45 pm

swimmer wrote:
^marcs wrote:I have reseted whole fontconfig configuration and applied again as described in wiki, also tried rebuilding firefox, no effect.

*edit*
Ive downgraded fontconfig-2.9.0 to fontconfig-2.8.0-r2 and it helped.
You saw and tried the new 11-lcdfilter-* rules in fontconfig did you?

HTH
swimmer
You're wright.
11-lcdfilter-* was not activated.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sun May 06, 2012 4:01 am

jcTux wrote:11-lcdfilter-* was not activated.
Er, what magic do you think it/they contain, that isn't already in Infinality's fontconfig file?
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Sun May 06, 2012 4:38 am

PaulBredbury wrote:
jcTux wrote:11-lcdfilter-* was not activated.
Er, what magic do you think it/they contain, that isn't already in Infinality's fontconfig file?
Without this enabled you get broken fonts as mentioned earlier in the page. If you follow these instructions then you will be stuck unless you notice that some of the filenames have changed.
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Mon May 07, 2012 6:40 am

ppurka wrote:If you follow these instructions then you will be stuck unless you notice that some of the filenames have changed.
Fixed.
OGMRip - LCD filtering (Wiki)
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Mon May 07, 2012 9:21 am

bi3l wrote:
ppurka wrote:If you follow these instructions then you will be stuck unless you notice that some of the filenames have changed.
Fixed.
Thanks :)
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
angry_vincent
n00b
n00b
Posts: 30
Joined: Sun Feb 21, 2010 11:20 am

  • Quote

Post by angry_vincent » Wed Jun 06, 2012 2:36 am

all ebuilds in lcd-filtering overlay should switch to virtual/pkgconfig dep instead of dev-util/pkgconfig, all ebuilds in gentoo tree migrated.
http://www.funtoo.org
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Wed Jun 06, 2012 5:41 am

angry_vincent wrote:all ebuilds in lcd-filtering overlay should switch to virtual/pkgconfig dep instead of dev-util/pkgconfig, all ebuilds in gentoo tree migrated.
Done.
OGMRip - LCD filtering (Wiki)
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sun Jun 17, 2012 1:26 am

Infinality has a new version out :)
Top
yngwin
Retired Dev
Retired Dev
User avatar
Posts: 4572
Joined: Thu Dec 19, 2002 1:22 pm
Location: Suzhou, China

  • Quote

Post by yngwin » Sun Jun 17, 2012 7:01 am

Can someone enlighten me on the differences between the lcd-filtering overlay and MeisterP's infinality overlay? What would be reasons to choose one over the other?

Also, I'd like to see if it is feasible to get these patches into the official portage tree. Is anyone willing to work with me to maintain these?
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Top
poncho
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Sun Mar 06, 2011 11:21 am

  • Quote

Post by poncho » Sun Jun 17, 2012 9:46 am

yngwin wrote:Can someone enlighten me on the differences between the lcd-filtering overlay and MeisterP's infinality overlay? What would be reasons to choose one over the other?

Also, I'd like to see if it is feasible to get these patches into the official portage tree. Is anyone willing to work with me to maintain these?
The lcd-filtering overlay is patching media-libs/fontconfig and some fonts packages to apply the various infinality font settings. I (poncho aka MeisterP) made a media-libs/fontconfig-infinality package to install all configuration files into /etc/fonts/infinality/ and use an unpatched media-libs/fontconfig.

The reason for doing this was to follow infinality's rpm packages more closely and to have a live ebuild for https://github.com/Infinality/fontconfig-infinality.

If we want to have a fontconfig-infinality package in the tree, it would be worthwhile to replace the infctl tool (which manages symlinks in /etc/fonts/infinality/) with a proper eselect module.

If there are more questions concerning my overlay feel free to ask. And yes, I would be willing to (proxy?)maintain the packages with you.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Wed Jun 20, 2012 5:44 pm

yngwin wrote:get these patches into the official portage tree.
There'll be one less patch file required in future :)
Top
yngwin
Retired Dev
Retired Dev
User avatar
Posts: 4572
Joined: Thu Dec 19, 2002 1:22 pm
Location: Suzhou, China

  • Quote

Post by yngwin » Thu Jun 21, 2012 9:12 am

PaulBredbury wrote:
yngwin wrote:get these patches into the official portage tree.
There'll be one less patch file required in future :)
It's very good to see that he's working with the Freetype devs to get his patches in. Less work for us, indeed!
poncho wrote:I (poncho aka MeisterP) made a media-libs/fontconfig-infinality package to install all configuration files into /etc/fonts/infinality/ and use an unpatched media-libs/fontconfig.

The reason for doing this was to follow infinality's rpm packages more closely and to have a live ebuild for https://github.com/Infinality/fontconfig-infinality.

If we want to have a fontconfig-infinality package in the tree, it would be worthwhile to replace the infctl tool (which manages symlinks in /etc/fonts/infinality/) with a proper eselect module.
This sounds like a reasonable approach to get this into portage. I will look at it in more detail over the coming days (quite busy with work atm), and see if I can convince the freetype and cairo maintainers to work with us. :P
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Top
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

  • Quote

Post by alexcortes » Sun Jun 24, 2012 5:25 pm

Hi,

Lcd-filtering overlay needs a update: there are freetype-2.4.10 in portage tree and the infinality patch. :)

http://www.infinality.net/forum/viewtopic.php?f=2&t=79

EDIT: also libXft-2.3.1

Thanks!!!
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Sun Jun 24, 2012 6:01 pm

Done.
OGMRip - LCD filtering (Wiki)
Top
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

  • Quote

Post by alexcortes » Sun Jun 24, 2012 6:21 pm

bi3l wrote:Done.
Really thanks! :D
Top
omidxo
n00b
n00b
User avatar
Posts: 71
Joined: Wed Feb 23, 2005 12:19 pm

  • Quote

Post by omidxo » Tue Jun 26, 2012 3:59 am

Existing ubuntu patch is good enough.
http://i.imgur.com/eRim9.png
http://i.imgur.com/nLvOn.png

Show me any images with Infinality set, pls.
Top
IvanMajhen
Guru
Guru
User avatar
Posts: 392
Joined: Sat Jun 10, 2006 11:38 am
Location: Croatia

  • Quote

Post by IvanMajhen » Wed Jun 27, 2012 3:33 pm

This is how it looks with default infinality freetype/fontconfig settings:
http://img442.imageshack.us/img442/1951/snimka1.png
http://img440.imageshack.us/img440/1761/snimka2m.png

Note that there are also different freetype seetings like: (freetype-2.4.10)

Code: Select all

# Possible options: 
# 
# DEFAULT      - Use above settings.  A compromise that should please most people.
# OSX          - Simulate OSX rendering
# UBUNTU       - Simulate UBUNTU rendering
# LINUX        - Generic "Linux" style - no snapping or certain other tweaks
# WINDOWS      - Simulate Windows rendering
# WINDOWS7     - Simulate Windows rendering with normal glyphs
# WINDOWS7LIGHT- Simulate Windows 7 rendering with lighter glyphs
# WINDOWS      - Simulate Windows rendering
# VANILLA      - Just subpixel hinting
# CUSTOM       - Your own choice.  See below
# ----- Infinality styles -----
# CLASSIC      - Infinality rendering circa 2010.  No snapping.
# NUDGE        - CLASSIC with lightly stem snapping and tweaks
# PUSH         - CLASSIC with medium stem snapping and tweaks
# SHOVE        - Full stem snapping and tweaks without sharpening
# SHARPENED    - Full stem snapping, tweaks, and Windows-style sharpening
# INFINALITY   - Settings I use
# DISABLED     - Act as though running without the extra infinality enhancements (just subpixel hinting).
and fontconfig settings:

Code: Select all

acer infinality# ./infctl.sh setstyle
Select a style:
1) debug       3) linux       5) osx2        7) win98
2) infinality  4) osx         6) win7        8) winxp
#? 
Top
omidxo
n00b
n00b
User avatar
Posts: 71
Joined: Wed Feb 23, 2005 12:19 pm

  • Quote

Post by omidxo » Thu Jun 28, 2012 12:52 pm

Looks perfect! Thanks for simple direction.
Top
Post Reply

720 posts
  • Page 24 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 22
  • 23
  • 24
  • 25
  • 26
  • …
  • 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