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 ... 23, 24, 25 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu May 03, 2012 4:13 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Thu May 03, 2012 6:10 am    Post subject: Reply with quote

^marcs wrote:
Anyone else have have some fonts messed up in firefox after recent update?


Use eselect fontconfig, as some conf files were changed.
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Thu May 03, 2012 10:20 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
EatMeerkats
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 234

PostPosted: Thu May 03, 2012 12:18 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
jcTux
Apprentice
Apprentice


Joined: 29 Dec 2009
Posts: 276
Location: Tours, France

PostPosted: Sat May 05, 2012 1:18 pm    Post subject: Reply with quote

^marcs wrote:

*edit*
Ive downgraded fontconfig-2.9.0 to fontconfig-2.8.0-r2 and it helped.


Same solution here.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Sat May 05, 2012 1:37 pm    Post subject: Reply with quote

^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
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat May 05, 2012 2:10 pm    Post subject: Reply with quote

^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:
Quote:
"'--- 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:
--disable-static --disable-xlib-xcb --enable-tee --with-x
Back to top
View user's profile Send private message
jcTux
Apprentice
Apprentice


Joined: 29 Dec 2009
Posts: 276
Location: Tours, France

PostPosted: Sat May 05, 2012 5:45 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun May 06, 2012 4:01 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun May 06, 2012 4:38 am    Post subject: Reply with quote

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 :-/
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Mon May 07, 2012 6:40 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Mon May 07, 2012 9:21 am    Post subject: Reply with quote

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 :-/
Back to top
View user's profile Send private message
angry_vincent
n00b
n00b


Joined: 21 Feb 2010
Posts: 30

PostPosted: Wed Jun 06, 2012 2:36 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Wed Jun 06, 2012 5:41 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Jun 17, 2012 1:26 am    Post subject: Reply with quote

Infinality has a new version out :)
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sun Jun 17, 2012 7:01 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
poncho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2011
Posts: 92

PostPosted: Sun Jun 17, 2012 9:46 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Jun 20, 2012 5:44 pm    Post subject: Reply with quote

yngwin wrote:
get these patches into the official portage tree.

There'll be one less patch file required in future :)
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Thu Jun 21, 2012 9:12 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Sun Jun 24, 2012 5:25 pm    Post subject: Reply with quote

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!!!
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Sun Jun 24, 2012 6:01 pm    Post subject: Reply with quote

Done.
_________________
OGMRip - LCD filtering (Wiki)
Back to top
View user's profile Send private message
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Sun Jun 24, 2012 6:21 pm    Post subject: Reply with quote

bi3l wrote:
Done.


Really thanks! :D
Back to top
View user's profile Send private message
omidxo
n00b
n00b


Joined: 23 Feb 2005
Posts: 71

PostPosted: Tue Jun 26, 2012 3:59 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
IvanMajhen
Guru
Guru


Joined: 10 Jun 2006
Posts: 392
Location: Croatia

PostPosted: Wed Jun 27, 2012 3:33 pm    Post subject: Reply with quote

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:
# 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:
acer infinality# ./infctl.sh setstyle
Select a style:
1) debug       3) linux       5) osx2        7) win98
2) infinality  4) osx         6) win7        8) winxp
#?
Back to top
View user's profile Send private message
omidxo
n00b
n00b


Joined: 23 Feb 2005
Posts: 71

PostPosted: Thu Jun 28, 2012 12:52 pm    Post subject: Reply with quote

Looks perfect! Thanks for simple direction.
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 ... 23, 24, 25 ... 27, 28, 29  Next
Page 24 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