LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-27-2017, 05:48 AM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Changes to default freetype / font appearance on -current


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
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2017-04-27_11-43-57.jpg
Views:	101
Size:	56.0 KB
ID:	24856   Click image for larger version

Name:	Screenshot_2017-04-25_14-46-30.png
Views:	96
Size:	216.3 KB
ID:	24857  
 
Old 04-27-2017, 05:52 AM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
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?
 
Old 04-27-2017, 06:10 AM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by coralfang View Post
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
 
1 members found this post helpful.
Old 04-27-2017, 06:26 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
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.
 
1 members found this post helpful.
Old 04-27-2017, 07:56 AM   #5
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
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...
 
Old 04-27-2017, 07:58 AM   #6
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
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.

Last edited by zakame; 04-27-2017 at 07:59 AM.
 
3 members found this post helpful.
Old 04-27-2017, 08:04 AM   #7
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by zakame View Post
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?

Last edited by coralfang; 04-27-2017 at 08:07 AM.
 
Old 04-27-2017, 02:36 PM   #8
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Rep: Reputation: Disabled
Hi, please ...
How can I do that update in the file Xresources? Where is it? Thanks
 
Old 04-27-2017, 02:43 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by RafaBR View Post
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 ~.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the default Abiword font (default copy/paste font too) Quon Linux - Software 0 09-29-2012 01:29 PM
Help With Kde Font Appearance ssenuta Linux - Desktop 1 04-05-2007 12:10 PM
xorg error in -current (could not open default font 'fixed') maddox1976 Slackware 1 04-02-2007 08:25 PM
Font appearance in Linux futurist Linux - General 9 09-18-2005 12:33 PM
freetype font w/ smoothing wawanryn Linux - General 1 11-03-2002 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration