LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Changes to default freetype / font appearance on -current (https://www.linuxquestions.org/questions/slackware-14/changes-to-default-freetype-font-appearance-on-current-4175604750/)

coralfang 04-27-2017 05:48 AM

Changes to default freetype / font appearance on -current
 
2 Attachment(s)
In the changelog;
Code:

l/freetype-2.7.1-x86_64-1.txz:  Upgraded.
  Subpixel hinting has been enabled upstream by default, but you may adjust
  this in /etc/profile.d/freetype.{csh,sh}.

Wanted to try this out, so left this file as default. My fonts look alot nice with this on, notably in firefox and the xfce menus.

However, conky and urxvt look strange and i'm not sure what i need to change in my Xresources/conkyrc relating to fonts, to adjust for subpixel hinting being enabled.

Basically there is alot of spacing between the letters, and the font has become ultra large. I have tried adjusting/commenting some things, but not alot changes.

Here's my Xresources file as it has been before the freetype update, and i attached 2 images. The one with the large font is how it looks since the updated package, but ideally i want it to look as it did previously. Why the drastic change of appearance in urxvt/conky ?
Code:

Xft.dpi: 96
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.lcdfilter: lcddefault
Xft.rgba: rgb
Xft.autohint: 0

! desktop term
tdesktop.scrollBar: 0
tdesktop.geometry: 90x48
tdesktop.internalBorder: 25
tdesktop.borderWidth: 0
tdesktop.borderless: 1
tdesktop.borderwidth: 0
tdesktop.shading: 30

*.font: -misc-tamsyn-medium-r-normal-*-15-*-*-*-*-*-*-*

URxvt.font: xft:Tamsyn:Size=14:antialias=false
URxvt*iconFile: /home/ricky/Pictures/avatars/urxvt.png
URxvt.inheritPixmap: 1
URxvt.utf8: 1
URxvt.geometry:            85x25
URxvt*internalBorder: 10
URxvt.iso14755:        False
URxvt.depth: 32
URxvt.perl-ext-common: default,matcher,fullscreen
URxvt.url-launcher: /usr/bin/firefox
URxvt.matcher.button: 1
URxvt.keysym.F11: perl:fullscreen:switch
URxvt*colorUL: #c5f779
URxvt*underlineColor: #c5f779
URxvt.scrollstyle: plain
URxvt*scrollBar_right:              True
URxvt*scrollColor:                  #008877
URxvt*scrollTtyKeypress: true
URxvt*scrollTtyOutput: 1
URxvt*scrollWithBuffer: 1
URxvt*thickness: 1
URxvt*saveLines: 65535
URxvt*cursorUnderline: 1
URxvt*.transparent: true
URxvt*shading: 15
URxvt*fading: 0
URxvt*buffered: 1








! special
*.foreground:  #c0cedb
*.background:  #0b0f12
*.cursorColor:  #c0cedb

! black
*.color0:      #3c4145
*.color8:      #85ce53

! red
*.color1:      #6684a3
*.color9:      #cd8fe0

! green
*.color2:      #4c5a67
*.color10:      #ba924d

! yellow
*.color3:      #3f4a54
*.color11:      #92c7f1

! blue
*.color4:      #5a6876
*.color12:      #e9b659

! magenta
*.color5:      #798d9e
*.color13:      #dc92f1

! cyan
*.color6:      #a1b6ca
*.color14:      #51cbbb

! white
*.color7:      #dce3eb
*.color15:      #44dfcd


coralfang 04-27-2017 05:52 AM

I've also tried rebuilding any additional font packages (such as tamsyn, being used here) from slackbuilds, and running;
Code:

# /usr/bin/fc-cache -f
But still no changes. Any ideas?

Gerard Lally 04-27-2017 06:10 AM

Quote:

Originally Posted by coralfang (Post 5702879)
I've also tried rebuilding any additional font packages (such as tamsyn, being used here) from slackbuilds, and running;
Code:

# /usr/bin/fc-cache -f
But still no changes. Any ideas?

With regard to urxvt, I always have URxvt.letterSpace: -1 in .Xresources

GazL 04-27-2017 06:26 AM

Up to now, my font config has comprised of

ln -s ../conf.avail/10-autohint.conf /etc/fonts/conf.d/

And,

Xresources:
Code:

! XFT Font Rendering settings

Xft.antialias: true
Xft.hinting: true
Xft.hintstyle: hintslight

Whenever I've tried changing any of the subpixel settings before it's only made things worse.

I haven't tried to re-tweak the settings for the new renderer yet, but I'll be watching this thread with interest as to what are the new recommended settings. I use an unaliased terminus bitmap font in xterm so that's not really affected by any of this stuff, but I'd be interested to know some good settings for DejaVu Sans | Sans Mono, which I also use.

coralfang 04-27-2017 07:56 AM

As far as conky and urxvt go, it seems to be an issue with setting an xft font. I decided to drop back to using a normal x11 font for my Xresources which looks virtually as it should using xft anyway.

Now set them as so, for both conky and urxvt (using xfontsel)
Code:

# Xresources
*.font: -misc-tamsyn-medium-r-normal-*-16-*-*-*-*-*-*-*

# conky
use_xft no
font -misc-tamsyn-medium-r-normal-*-12-*-*-*-*-*-*-*

I guess that's a workaround for these 2 programs. However i noticed that tamsyn is no longer available to use as a font when using the xfce appearances tool...

zakame 04-27-2017 07:58 AM

Also take care if you're using a PCF font like Terminus. You will need to use e.g. "xos4 Terminus" instead. I just posted in http://www.linuxquestions.org/questi...ts-4175604756/ about it.

coralfang 04-27-2017 08:04 AM

Quote:

Originally Posted by zakame (Post 5702923)
Also take care if you're using a PCF font like Terminus. You will need to use e.g. "xos4 Terminus" instead. I just posted in http://www.linuxquestions.org/questi...ts-4175604756/ about it.

Ah you are right, i see "Misc Tamsyn" and "xos4 Terminus" in the xfce appearences tool for setting the font. So i guess this has changed some font names?

Edit: Just updated my conkyrc and Xresources to reflect those font name changes, and it works again fine when using xft. I guess this was the issue, some fonts became renamed with the new package?

RafaBR 04-27-2017 02:36 PM

Hi, please ...
How can I do that update in the file Xresources? Where is it? Thanks :)

Didier Spaier 04-27-2017 02:43 PM

Quote:

Originally Posted by RafaBR (Post 5703131)
Hi, please ...
How can I do that update in the file Xresources? Where is it? Thanks :)

You have to create it yourself in your user's home directory aka $HOME or ~.


All times are GMT -5. The time now is 12:40 AM.