Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Blurry Fonts?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
phlux
n00b
n00b


Joined: 28 Aug 2012
Posts: 7
Location: Houston, TX

PostPosted: Wed May 29, 2013 3:52 pm    Post subject: [SOLVED] Blurry Fonts? Reply with quote

Hey folks. I've been having an issue recently with anti-aliased fonts showing some characters extremely blurry. The biggest culprit is the 'm' character in DejaVu Sans Mono. I'd really prefer to use this font if possible, as it is easiest on my eyes and supports a bold face (Although, if someone knows how to get terminus in bold, I'd love to swap!)

I'll show you guys some screenshots after I show you what I believe the relevant information would be.

Here's the output of `eselect fontconfig list`

Code:

  [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]   20-fix-globaladvance.conf *
  [9]   20-unhint-small-dejavu-sans.conf
  [10]  20-unhint-small-dejavu-sans-mono.conf
  [11]  20-unhint-small-dejavu-serif.conf
  [12]  20-unhint-small-vera.conf *
  [13]  25-unhint-nonlatin.conf
  [14]  30-metric-aliases.conf *
  [15]  30-urw-aliases.conf *
  [16]  40-nonlatin.conf *
  [17]  45-latin.conf *
  [18]  49-sansserif.conf *
  [19]  50-user.conf *
  [20]  51-local.conf *
  [21]  52-infinality.conf *
  [22]  57-dejavu-sans.conf
  [23]  57-dejavu-sans-mono.conf
  [24]  57-dejavu-serif.conf
  [25]  59-google-droid-sans.conf
  [26]  59-google-droid-sans-mono.conf
  [27]  59-google-droid-serif.conf
  [28]  60-latin.conf *
  [29]  60-liberation.conf
  [30]  62-croscore-arimo.conf
  [31]  62-croscore-cousine.conf
  [32]  62-croscore-symbolneu.conf
  [33]  62-croscore-tinos.conf
  [34]  65-fonts-persian.conf *
  [35]  65-khmer.conf
  [36]  65-nonlatin.conf *
  [37]  69-unifont.conf *
  [38]  70-no-bitmaps.conf
  [39]  70-yes-bitmaps.conf
  [40]  80-delicious.conf *
  [41]  90-synthetic.conf *


Here's the output of `eselect lcdfilter list`
Code:

  [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


And here's the output of `eselect infinality list`
Code:

  [1]   debug
  [2]   infinality *
  [3]   linux
  [4]   nyx
  [5]   osx
  [6]   osx2
  [7]   win7
  [8]   win98
  [9]   winxp


I'll link to some screenshots here so you can all see what I'm talking about. If you need to see more in the screenshots, I can certainly provide more.

DejaVu Sans Mono pixelsize=11: http://www.phluxbox.com/img/hom8ye.png

DejaVu Sans Mono pixelsize=10: http://www.phluxbox.com/img/ooc3sh.png (Note how you can barely even see the 'm' in this case.)

So, I'm curious: is there anyway to make this font any less blurry, or does anyone have any suggestions for different fonts? Like I said, I'm open for terminus (I've used it for a while in the past) but I just *really* wish it had a bold face.

If you need any more information/screenshots, I'll be happy to provide. Thanks for the help!

EDIT: Here is my .Xdefaults:

Code:

urxvt*font: xft:DejaVu Sans Mono:pixelsize=10:antialias=true:hinting=true,xft:Code2000,xft:Lohit Kannada
urxvt*termName:         rxvt-unicode
URxvt.perl-ext-common: matcher,selection-autotransform,default
URxvt.matcher.button: 1
URxvt.matcher.rend.0: none
URxvt.url-launcher: /usr/bin/dwb
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintsfull
URxvt.transparent: true
URxvt.fading: 0
URxvt.urgentOnBell: true
URxvt.visualBell: false
URxvt.loginShell: true
URxvt.saveLines: 500
URxvt.borderLess: false
URxvt.lineSpace: 0
URxvt.shading: 50
URxvt.underlineURLs: False
URxvt.scrollStyle: rxvt
URxvt.scrollBar: false
URxvt.cursorBlink: true
URxvt.cursorColor: #657b83
URxvt.cursorUnderline: false
URxvt.pointerBlank: true
urxvt*foreground: #f2f2f2
urxvt*background: #444444
URxvt*color0:      #000000
URxvt*color8:      #555753
URxvt*color1:      #CC0000
URxvt*color9:      #EF2929
URxvt*color2:      #4E9A06
URxvt*color10:     #8AE234
URxvt*color3:      #C4A000
URxvt*color11:     #FCE94F
URxvt*color4:      #3465A4
URxvt*color12:     #729FCF
URxvt*color5:      #75507B
URxvt*color13:     #AD7FA8
URxvt*color6:      #06989A
URxvt*color14:     #34E2E2
URxvt*color7:      #D3D7CF
URxvt*color15:     #ECEDEE

_________________
Roll Tide!


Last edited by phlux on Wed May 29, 2013 5:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Wed May 29, 2013 4:09 pm    Post subject: Reply with quote

Maybe I've gotten used to anti-aliasing but it looks OK to me, the three downstrokes are distinct to my eyes...or monitor... or something rather...

Does it have the problem when anti-aliasing is turned off or anti-aliasing options changed? Granted it should not be anti-aliasing screenshots...

I've not really come across a font I really liked for fixed width after getting quite fond of the 6x13 font, when terminal emulators didn't support scalable fonts...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
phlux
n00b
n00b


Joined: 28 Aug 2012
Posts: 7
Location: Houston, TX

PostPosted: Wed May 29, 2013 4:40 pm    Post subject: Reply with quote

eccerr0r wrote:
Maybe I've gotten used to anti-aliasing but it looks OK to me, the three downstrokes are distinct to my eyes...or monitor... or something rather...

Does it have the problem when anti-aliasing is turned off or anti-aliasing options changed? Granted it should not be anti-aliasing screenshots...

I've not really come across a font I really liked for fixed width after getting quite fond of the 6x13 font, when terminal emulators didn't support scalable fonts...


You must have gotten used to it! It looks really blurry compared to un-antialiased fonts here. So to answer your question, yes the 'm' looks fine without antialiasing, but DejaVu Sans Mono looks *terrible* when antialiasing is not enabled. Terminus, on the other hand, looks great and crisp.

Should I take an un-antialiased shot? How about a shot of the terminus font?

Also: fixed width is the only way to go! :P
_________________
Roll Tide!
Back to top
View user's profile Send private message
phlux
n00b
n00b


Joined: 28 Aug 2012
Posts: 7
Location: Houston, TX

PostPosted: Wed May 29, 2013 5:12 pm    Post subject: Reply with quote

Looks like using "-bindist" for freetype has done the trick for me. The 'm' is much clearer for one reason or another.

I'll mark this as solved.
_________________
Roll Tide!
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed May 29, 2013 5:14 pm    Post subject: Reply with quote

~/.Xdefaults is the stone age :roll:

Use a terminal which respects fontconfig. Then you can use fontconfig's tweaking flexibility.
_________________
Improve your font rendering and ALSA sound
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Wed May 29, 2013 9:23 pm    Post subject: Reply with quote

PaulBredbury wrote:
~/.Xdefaults is the stone age :roll:

Use a terminal which respects fontconfig. Then you can use fontconfig's tweaking flexibility.
The OP is using urxvt with xft. Just because the font configuration is specified through Xdefaults doesn't make it archaic.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed May 29, 2013 11:11 pm    Post subject: Reply with quote

Infinality seems to do horrible things outside its comfort zone of GTK apps on cheap&nasty 96dpi LCDs. I've turned it off and my urxvt looks fine.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Thu May 30, 2013 6:20 pm    Post subject: Reply with quote

Ant P. wrote:
Infinality seems to do horrible things outside its comfort zone of GTK apps on cheap&nasty 96dpi LCDs. I've turned it off and my urxvt looks fine.


So how's your complete set up then? Your pic looks gorgeous.

And urxvt is supposed to use .Xdefaults or not?

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


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu May 30, 2013 7:26 pm    Post subject: Reply with quote

Ant P. wrote:
Infinality seems to do horrible things outside its comfort zone of GTK apps on cheap&nasty 96dpi LCDs.

That's rather harsh. E.g. my LCD is:
Code:
$ xdpyinfo | grep -B1 dot
  dimensions:    1920x1080 pixels (410x230 millimeters)
  resolution:    119x119 dots per inch


Infinality can make some fonts look distorted, but that's fixed using fontconfig rules (usually toggling autohint, and/or switching between hintfull and hintslight).

Infinality is looking good thanks to bohoomil in big Arch thread. Edit: He says the Infinality patches for freetype 2.4.12 fix some issues with the previous patches for 2.4.11.
_________________
Improve your font rendering and ALSA sound
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu May 30, 2013 8:16 pm    Post subject: Reply with quote

_______0 wrote:
Ant P. wrote:
Infinality seems to do horrible things outside its comfort zone of GTK apps on cheap&nasty 96dpi LCDs. I've turned it off and my urxvt looks fine.


So how's your complete set up then? Your pic looks gorgeous.

And urxvt is supposed to use .Xdefaults or not?

thanks

Code:
~ $ eselect fontconfig list | grep '*'; eselect fontconfig list | grep -v '*'
Available fontconfig .conf files (* is enabled):
  [8]   11-lcdfilter-default.conf *
  [17]  30-metric-aliases.conf *
  [18]  30-urw-aliases.conf *
  [19]  40-nonlatin.conf *
  [20]  45-latin.conf *
  [21]  49-sansserif.conf *
  [23]  51-local.conf *
  [32]  60-latin.conf *
  [33]  60-liberation.conf *
  [38]  65-fonts-persian.conf *
  [40]  65-nonlatin.conf *
  [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
  [9]   11-lcdfilter-legacy.conf
  [10]  11-lcdfilter-light.conf
  [11]  20-fix-globaladvance.conf
  [12]  20-unhint-small-dejavu-sans.conf
  [13]  20-unhint-small-dejavu-sans-mono.conf
  [14]  20-unhint-small-dejavu-serif.conf
  [15]  20-unhint-small-vera.conf
  [16]  25-unhint-nonlatin.conf
  [22]  50-user.conf
  [24]  52-infinality.conf
  [25]  57-dejavu-sans.conf
  [26]  57-dejavu-sans-mono.conf
  [27]  57-dejavu-serif.conf
  [28]  59-google-droid-sans.conf
  [29]  59-google-droid-sans-mono.conf
  [30]  59-google-droid-serif.conf
  [31]  60-aquafont.conf
  [34]  62-croscore-arimo.conf
  [35]  62-croscore-cousine.conf
  [36]  62-croscore-symbolneu.conf
  [37]  62-croscore-tinos.conf
  [39]  65-khmer.conf
  [41]  66-ja-ipafonts.conf
  [42]  66-lohit-assamese.conf
  [43]  66-lohit-bengali.conf
  [44]  66-lohit-gujarati.conf
  [45]  66-lohit-hindi.conf
  [46]  66-lohit-kannada.conf
  [47]  66-lohit-kashmiri​@devanagari.conf
  [48]  66-lohit-konkani.conf
  [49]  66-lohit-maithili.conf
  [50]  66-lohit-marathi.conf
  [51]  66-lohit-oriya.conf
  [52]  66-lohit-punjabi.conf
  [53]  66-lohit-sindhi​@devanagari.conf
  [54]  66-lohit-tamil.conf
  [55]  66-lohit-telugu.conf
  [56]  67-lohit-malayalam.conf
  [57]  67-lohit-nepali.conf
  [58]  69-unifont.conf
  [59]  70-no-bitmaps.conf
  [60]  70-yes-bitmaps.conf
  [61]  80-delicious.conf
  [62]  90-synthetic.conf
  [63]  99pdftoopvp.conf

~ $ cat /etc/fonts/local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
  </match>
</fontconfig>

~ $ cat .Xresources
URxvt.background:   [85]#000000
URxvt.color12:      #5C5CE6
URxvt.color4:       #4242A6
URxvt.depth:        32
URxvt.font:         xft:DejaVu Sans Mono:pixelsize=12,xft:IPAGothic
URxvt.foreground:   #ffffff
URxvt.geometry:     116x35
URxvt.internalBorder: 0
URxvt.jumpScroll:   true
URxvt.multiScroll:  true
URxvt.pointerBlank: true
URxvt.saveLines:    4000
URxvt.scrollBar:    0
Xft.dpi:        100
Xft.antialias:  true
Xft.hinting:    true
Xft.hintstyle:  hintfull
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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