LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-18-2017, 05:15 AM   #1
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, Xubuntu
Posts: 334

Rep: Reputation: 57
Current64 - May 16 updates - freetype 2.8: dejavu sans 10 looks different


Current64 XFCE - Tue May 16 20:11:03 UTC 2017 updates - l/freetype-2.8-x86_64-1.txz: Upgraded

The dejavu sans 10 font looks somewhat more taller and narrower than before, whereas the 9 and 11 fonts look the same.
Also the font for the menu (which is supposed to be dejavu sans 10) looks smaller.
Anyone else seeing this too?

Last edited by burdi01; 05-18-2017 at 06:57 AM.
 
Old 05-18-2017, 06:41 AM   #2
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 248

Rep: Reputation: 41
I'm seeing font differences in Thunderbird specifically. Not sure if this is related but my standard font setting for writing emails was Helvetica/Arial Medium. This now results in a larger looking font ...
 
Old 05-18-2017, 07:34 AM   #3
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,473
Blog Entries: 14

Rep: Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307
DejaVu Sans Book at 10 does look significantly taller than Liberation Sans Regular, Luxi Sans Regular, and Nimbus Sans Regular at the same size (which in comparison all seem very uniform to each other).

At size 11, they are far more uniform and mostly seem to differ in condensedness (width), which DejaVu Sans is known for anyway.

I can't say I noticed a change between the versions of freetype, but I wasn't paying attention, so it's possible. Whether the font or render is at fault I couldn't guess.
 
Old 05-18-2017, 01:06 PM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,595

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Yes I am having this issue also with Deja Vu and Arial fonts. I am slowly making the transition to liberation fonts and haven't really bothered to investigate this yet.
 
Old 05-19-2017, 10:13 AM   #5
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, Xubuntu
Posts: 334

Original Poster
Rep: Reputation: 57
For the time being I rolled back to freetype 2.7.1 -- and blacklisted freetype for slackpkg. I know that there is a CVE, but the risk seems minor for me.

The liberation fonts with freetype 2.8 seem acceptable to me, as do the noto fonts. Curiously enough their size 10 is too small as compared to my dejavu sans at 10 (with freetype 2.7.1.

I will return to things in due time.
 
Old 05-19-2017, 11:07 AM   #6
kh3phr3n
LQ Newbie
 
Registered: May 2017
Posts: 3

Rep: Reputation: Disabled
I'm not on Slack, but the problem appears in Arch too (freetype2 2.8), in my case Iosevka Term is concerned in i3bar/i3block/dmenu and gvim but not in urxvt/vim.

I tried with Consolas/Fira Mono and there are no problems, Now I don't know if it's a bug or just a change in the font rendering.
 
Old 05-20-2017, 12:32 AM   #7
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,595

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Looking again at the changelog I see this...
Quote:
II. IMPORTANT BUG FIXES - `Light' auto-hinting mode no longer uses TrueType metrics for TrueType fonts. This bug was introduced in version 2.4.6, causing horizontal scaling also. Almost all GNU/Linux distributions (with Fedora as a notable exception) disabled the corresponding patch for good reasons; chances are thus high that you won't notice a difference. If optical backward compatibility for legacy applications is necessary, you might enable the AF_CONFIG_OPTION_TT_SIZE_METRICS configuration option. However, it is strongly recommended to avoid that, adjusting font sizes instead.

- If a TrueType font gets loaded with FT_LOAD_NO_HINTING, FreeType now scales the font linearly again (bug introduced in version 2.4.6).
Also see this post on the freetype mailing list with a response from the freetype developer.
http://lists.nongnu.org/archive/html.../msg00010.html

Last edited by Daedra; 05-20-2017 at 12:35 AM.
 
Old 05-20-2017, 12:53 AM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,595

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Ok after reading the above information I recompiled freetype 2.8 with the #define AF_CONFIG_OPTION_TT_SIZE_METRICS option re-enabled in the include/freetype/config/ftoption.h file and it does restore the look of previous releases. However given the fact that the freetype developer states that this is actually a long standing bug and recommends NOT to re-enable this feature I am personally not going to do it, but I can confirm that will "fix" your font rendering problem if you want to re-enable this option in the build. If you want to enable it quickly just add this sed line to the build script.

sed -i "929i #define AF_CONFIG_OPTION_TT_SIZE_METRICS" include/freetype/config/ftoption.h

Last edited by Daedra; 05-20-2017 at 01:00 AM.
 
Old 05-20-2017, 01:42 AM   #9
kh3phr3n
LQ Newbie
 
Registered: May 2017
Posts: 3

Rep: Reputation: Disabled
You're right, it's a bug correction, according to Arch reddit, the "fix" with #define AF_CONFIG_OPTION_TT_SIZE_METRICS works too. But I prefer to keep the "new original" version.
For me the big difference appears only with Iosevka, so I just recompiled the font with a custom value for "width" parameter (500 -> 525).
The result is very good even better than before

Thanks for your time.
 
Old 05-20-2017, 04:48 AM   #10
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, Xubuntu
Posts: 334

Original Poster
Rep: Reputation: 57
@kh3phr3n:
Quote:
so I just recompiled the font with a custom value for "width" parameter (500 -> 525).
May I ask how you did that? I downloaded the https://github.com/dejavu-fonts/deja...on_2_37.tar.gz source and did not find an applicable setting.
Regards, Dick


Edit: I had a look at https://github.com/be5invis/Iosevka/...arameters.toml and noticed that dejavu does not have such an explicit parameters file ...

Last edited by burdi01; 05-20-2017 at 04:56 AM.
 
Old 05-20-2017, 05:19 AM   #11
kh3phr3n
LQ Newbie
 
Registered: May 2017
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by burdi01 View Post
@kh3phr3n:
May I ask how you did that? I downloaded the https://github.com/dejavu-fonts/deja...on_2_37.tar.gz source and did not find an applicable setting.
Regards, Dick


Edit: I had a look at https://github.com/be5invis/Iosevka/...arameters.toml and noticed that dejavu does not have such an explicit parameters file ...
Indeed Iosevka comes with parameters.toml.
Many years ago, I patched the lineheight for Consolas with this: https://gist.github.com/evocateur/79238
I don't know if it's possible but maybe there is a way to make DejaVu more wider with these tools.

Good luck

Edit:I don't know anything about fonts, but you can find Ascent, Descent, TTFWeight, TTFWidth etc in DejaVuSansMono.sfd, you can maybe ask to the maintainer some advices

Last edited by kh3phr3n; 05-20-2017 at 05:31 AM.
 
Old 02-04-2018, 05:33 PM   #12
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 141

Rep: Reputation: 18
I confirm with 2.8,and 2.9 font rendering is really really bad
Not only on Slackware,even opensuse.
I have tried the patch,but is still bad,i have an eye red(it happen to me when fonts are too small)
 
Old 02-04-2018, 05:52 PM   #13
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,405

Rep: Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009
Quote:
I have tried the patch,but is still bad,i have an eye red(it happen to me when fonts are too small)
Are you describing small font sizes in Qt applications? Perhaps you could run 'qtconfig' and check your font settings.
 
Old 02-05-2018, 08:17 PM   #14
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 141

Rep: Reputation: 18
Quote:
Originally Posted by allend View Post
Are you describing small font sizes in Qt applications? Perhaps you could run 'qtconfig' and check your font settings.
Not only qt,general(gtk,xfce,firefox),fonts are too "small" comparing with the 14.2,of course I use the same font settings on both versions.
 
Old 02-06-2018, 05:20 AM   #15
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,405

Rep: Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009Reputation: 2009
For gtk3, I have
Code:
gtk-font-name="Sans 10"
in ~/.config/gtk-3.0/settings.ini
Not sure on xfce - every time I play there I rapidly revert to my beloved Windowmaker.
For firefox, I make use of the Ctrl-mousewheel combination.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] DejaVu fonts recently released v. 2.34 corvid Slackware 2 09-23-2013 08:41 AM
Dejavu danliston LinuxQuestions.org Member Intro 0 04-19-2012 05:09 PM
Invisible fonts in GTK(+2) apps with dejavu in -current. pdw_hu Slackware 6 03-25-2008 11:13 AM
enabling dejavu/bitstream vera font in emacs skrishnan_v Slackware 5 01-03-2008 07:35 AM
Freetype-devel for freetype-2.1.4-1 (redhat 9) Goog Linux - Distributions 0 05-05-2003 06:55 PM

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

All times are GMT -5. The time now is 07:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration