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 ... 27, 28, 29  
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: Fri Mar 22, 2013 11:19 pm    Post subject: Reply with quote

Nightmorph's blog post (edit: No proper URL anymore) is depressingly simplistic, but it does highlight again that even devs recoil in horror from the XML nighmare that is fontconfig configuration :(

So, as KISS examples, here is what I use: /etc/fonts/local.conf and /etc/env.d/infinality-settings.sh

For Arch Linux, use bohoomil's configuration and free fonts.


Last edited by PaulBredbury on Sun Mar 16, 2014 9:50 am; edited 2 times in total
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 707
Location: Sota algun pi o alzina...

PostPosted: Wed Apr 10, 2013 11:54 pm    Post subject: Reply with quote

i am configuring this stuff :

without infinality: http://i.minus.com/ibca2AMAW8WZ0V.png
with infinality there are a glitch: http://i.minus.com/iwORHnzKCAoGv.png

configuration:
eselect fontconfig list
Code:
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-no-sub-pixel.conf
  [3]   10-sub-pixel-bgr.conf
  [4]   10-sub-pixel-rgb.conf *
  [5]   10-sub-pixel-vbgr.conf
  [6]   10-sub-pixel-vrgb.conf
  [7]   10-unhinted.conf
  [8]   11-lcdfilter-default.conf *
  [9]   11-lcdfilter-legacy.conf
  [10]  11-lcdfilter-light.conf
  [11]  20-unhint-small-vera.conf *
  [12]  25-unhint-nonlatin.conf
  [13]  30-metric-aliases.conf *
  [14]  30-urw-aliases.conf *
  [15]  40-nonlatin.conf *
  [16]  45-latin.conf *
  [17]  49-sansserif.conf *
  [18]  50-user.conf *
  [19]  51-local.conf *
  [20]  52-infinality.conf *
  [21]  60-latin.conf *
  [22]  60-liberation.conf *
  [23]  62-croscore-arimo.conf
  [24]  62-croscore-cousine.conf
  [25]  62-croscore-symbolneu.conf
  [26]  62-croscore-tinos.conf
  [27]  65-fonts-persian.conf *
  [28]  65-khmer.conf
  [29]  65-nonlatin.conf *
  [30]  69-unifont.conf *
  [31]  70-no-bitmaps.conf
  [32]  70-yes-bitmaps.conf
  [33]  80-delicious.conf *
  [34]  90-synthetic.conf *
  [35]  99pdftoopvp.conf


eselect lcdfilter list
Code:
Available styles:
  [1]   custom
  [2]   default
  [3]   infinality *
  [4]   infinality-classic
  [5]   infinality-nudge
  [6]   infinality-push
  [7]   infinality-sharpened
  [8]   infinality-shove
  [9]   ipad
  [10]  linux
  [11]  nyx
  [12]  osx
  [13]  ubuntu
  [14]  vanilla
  [15]  windows-7
  [16]  windows-7-light
  [17]  windows-xp
  [18]  windows-xp-light


eselect infinality list
Code:
Available styles:
  [1]   debug
  [2]   infinality *
  [3]   linux
  [4]   nyx
  [5]   osx
  [6]   osx2
  [7]   win7
  [8]   win98
  [9]   winxp


emerge --info

thanks you :)
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Thu Apr 11, 2013 12:58 am    Post subject: Reply with quote

Post the output;
Code:

 # locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Code:

 # cat /etc/env.d/02locale
LANG="en_US.UTF-8"

_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
papu
l33t
l33t


Joined: 25 Jan 2008
Posts: 707
Location: Sota algun pi o alzina...

PostPosted: Thu Apr 11, 2013 9:18 am    Post subject: Reply with quote

~ $ locale
Code:

LANG=ca_ES.utf8
LC_CTYPE="ca_ES.utf8"
LC_NUMERIC="ca_ES.utf8"
LC_TIME="ca_ES.utf8"
LC_COLLATE=POSIX
LC_MONETARY="ca_ES.utf8"
LC_MESSAGES="ca_ES.utf8"
LC_PAPER="ca_ES.utf8"
LC_NAME="ca_ES.utf8"
LC_ADDRESS="ca_ES.utf8"
LC_TELEPHONE="ca_ES.utf8"
LC_MEASUREMENT="ca_ES.utf8"
LC_IDENTIFICATION="ca_ES.utf8"
LC_ALL=


~ $ cat /etc/env.d/02locale
Code:

# Configuration file for eselect
# This file has been automatically generated.
LANG="ca_ES.utf8"


~ $ eselect locale list
Code:

Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   ca_ES.utf8 *
  [4]   en_US.utf8
  [ ]   (free form)


thanks, :P
_________________
"~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470
Back to top
View user's profile Send private message
Kiwon Um
n00b
n00b


Joined: 15 Jul 2009
Posts: 49

PostPosted: Fri Apr 26, 2013 5:50 am    Post subject: Reply with quote

Ant P. wrote:
Looks interesting. I have two serious problems after installing though:

  • .pfb fonts no longer work at all.
  • urxvt is now completely unreadable (and it's even worse than in those old screenshots) because these patches require libXft >= 2.3.

For using the pfb fonts, comment the "Type 1" configuration part in the infinality.conf file.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Tue May 07, 2013 10:58 pm    Post subject: Reply with quote

what's the best Monitor settings? My monitor has different modes

user
movie
text
photo
sRGB

which one would help for better font looking?

thanks
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu May 23, 2013 11:07 am    Post subject: Reply with quote

For freetype 2.4.12, here's the patches that are working well for me:


_________________
Improve your font rendering and ALSA sound


Last edited by PaulBredbury on Sat Jun 15, 2013 5:27 am; edited 1 time in total
Back to top
View user's profile Send private message
shad0w_GR
n00b
n00b


Joined: 06 Apr 2011
Posts: 16

PostPosted: Wed Jun 05, 2013 8:06 pm    Post subject: Reply with quote

Hello, i am using infinality patches with the following selections:

infinality: linux
lcdfilter: infinality

I have errors with cups - "Filters failed". Also i have a problem with ps2pdf,
Code:
ps2pdf cdemu.ps cdemu.pdf
Error: /invalidfont in /findfont
Operand stack:
   Times-Italic@0   --nostringval--   Times-Italic
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   1836   3   4   %oparray_pop
Dictionary stack:
   --dict:1169/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--   --dict:59/120(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 5696
GPL Ghostscript 9.06: Unrecoverable error, exit code 1


Without infinality i dont have any problem, but rendering sucks. Anyone with the same issue?

Edited: I found a way to solve this, allowing Type1 fonts, which are disabled by default in infinality.conf.
I found this suggestion here.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Jun 06, 2013 12:30 pm    Post subject: Reply with quote

shad0w_GR wrote:
Type1 fonts, which are disabled by default in infinality.conf.

I suggest you report that on the Gentoo bugzilla. Disabling Postscript fonts sounds too extreme to be the default, and probably too extreme to be even a USE-flag option.

Edit: Here's the bug report.
Back to top
View user's profile Send private message
toofy
n00b
n00b


Joined: 30 Aug 2013
Posts: 2

PostPosted: Fri Aug 30, 2013 8:19 am    Post subject: Reply with quote

sorry to resurrect an old thread, but im curious if any of you have successfully installed freetype 2.5 yet? apparently the new engine was created by adobe and google and is super sexy. i want to give it a shot, but i have no clue how to create ebuilds yet and was curious if any of you have got it up and running.

t
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Aug 30, 2013 10:41 pm    Post subject: Reply with quote

toofy wrote:
freetype 2.5


See thread for Infinality patch.

The interest in Adobe's CFF is surprisingly low, since we already have Infinality, and they currently can't be used together, and Adobe's CFF only improves OpenType fonts.
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Mon Sep 02, 2013 3:32 pm    Post subject: Reply with quote

Hello,
I'm having a problem with infinality patches, maybe indirectly. When I'm drawing a white text (other color but black will trigger this too) on a transparent background, some border pixel, that normaly have some alpha due to antialiasing, are having a weired colors. When I disable infinality rules in fontconfig (eselect fontconfig) all is working as expected.

Here is an example, upper text is painted while infinality was turned on, and lower while its turned off. (recommended to view this in picture browser that clearly shows transparent areas)
https://dl.dropboxusercontent.com/u/6883398/both.png

Easy way to reproduce:
1. create new image in GIMP with background set as "Transparent".
2. pick Text tool, select white color and draw some text over the picture.

Anyone else have this?
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: Mon Sep 02, 2013 3:43 pm    Post subject: Reply with quote

^marcs wrote:
Anyone else have this?


The report about this issue at infinality.net mentions some workaround:
Font rendering Gimp 2.8
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Mon Sep 02, 2013 5:27 pm    Post subject: Reply with quote

Thanks for link poncho.

I have removed suggested fragment from the fontconfig conf file - that fixed it all right, but pretty much ruined whole configuration in the process.
At least I know someone is aware of this problem.
I think I'll drop infinality patches for now and try to get vanilla configuration info usable state.
Back to top
View user's profile Send private message
dannymichel
n00b
n00b


Joined: 24 Oct 2013
Posts: 3

PostPosted: Thu Oct 24, 2013 7:38 am    Post subject: Reply with quote

I've been fiddling with the Infinality setting for quite some time.
No matter what I do, the fonts render square.
Can I please pay someone to make Helvetica look exactly like this?
[IMG]http://i.imgur.com/u44Nk5Q.png[/IMG]
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Oct 24, 2013 4:57 pm    Post subject: Reply with quote

dannymichel wrote:
fonts render square.

I would recompile in the correct order: freetype pixman harfbuzz fontconfig cairo pango

bohoomil has some great (Arch Linux) threads, for font libs and free good-looking fonts.

freetype is continually being improved, so I'm using a git checkout with these patches:
Back to top
View user's profile Send private message
dannymichel
n00b
n00b


Joined: 24 Oct 2013
Posts: 3

PostPosted: Thu Oct 24, 2013 5:03 pm    Post subject: Reply with quote

PaulBredbury wrote:
dannymichel wrote:
fonts render square.

I would recompile in the correct order: freetype pixman harfbuzz fontconfig cairo pango

bohoomil has some great (Arch Linux) threads, for font libs and free good-looking fonts.

freetype is continually being improved, so I'm using a git checkout with these patches:
I installed Infinality using apt-get.
Back to top
View user's profile Send private message
MattM
Retired Dev
Retired Dev


Joined: 23 Apr 2002
Posts: 8
Location: San Diego, CA

PostPosted: Sun Nov 03, 2013 2:20 pm    Post subject: Ugh, don't touch my fonts! Reply with quote

It didn't take me too long to switch successfully over to using infinality despite my being finicky with fonts and already having a good setup which rendered fine via nvidia-

- eselect infinality set linux produces a much better result than set infinality
- disabling everything else in eselect fontconfig is OK and seems to be necessary to get the best rendering
- disabling the dpi and type1 in infinality.conf also helps

All the normal websites seem to render fine in firefox...only issue at the moment is that the default body text on some sites is slightly smaller than it was before. I guess I can just bump up minimum font size somewhere.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Nov 03, 2013 6:55 pm    Post subject: Re: Ugh, don't touch my fonts! Reply with quote

MattM wrote:
disabling the dpi and type1 in infinality.conf also helps


Got an example? bohoomil reckons that type 1 fonts generally render better.
Back to top
View user's profile Send private message
dannymichel
n00b
n00b


Joined: 24 Oct 2013
Posts: 3

PostPosted: Sun Nov 03, 2013 6:58 pm    Post subject: Re: Ugh, don't touch my fonts! Reply with quote

MattM wrote:
It didn't take me too long to switch successfully over to using infinality despite my being finicky with fonts and already having a good setup which rendered fine via nvidia-

- eselect infinality set linux produces a much better result than set infinality
- disabling everything else in eselect fontconfig is OK and seems to be necessary to get the best rendering
- disabling the dpi and type1 in infinality.conf also helps

All the normal websites seem to render fine in firefox...only issue at the moment is that the default body text on some sites is slightly smaller than it was before. I guess I can just bump up minimum font size somewhere.

I want to do what you did.

i can select Linux style by doing sudo bash /etc/fonts/infinality/infctl.sh setstyle
then i can disable everything by editing sudo -H gedit /etc/profile.d/infinality-settings.sh
am i correct? How do I disable everything? using USE_STYLE="DISABLED"?
That still hints my fonts.
how do i "disabling the dpi and type1 in infinality.conf also helps"?
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 ... 27, 28, 29
Page 29 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