Skip to content

How to make fonts heavier

I'm using Arch with Gnome and fonts look a bit light or washed out, specially in websites. Any way to make them heavier/bolder? I've messed with all the font settings that are documented on the Arch wiki ( https://wiki.archlinux.org/index.php/font_configuration ).

Tips?

EDIT: removed comparision to old laptop. It was probably due to using VGA vs HDMI (probably the display had a different color profile or color setup for VGA). Still, I want fonts a bit heavier.

Edited 20 Oct 2017. We only hold this version.

6 points15 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
6 · 100% up
Kind
Text
ID
77ik65

Author

4
posts
12
comments
0
media
View profile

15 comments

I don't really understand what you mean by "heavier". You mean sharper colors?

3 points
3 points

I upvoted your post because the info in the link is clear and consise.

However, I have been using interpreter version 40 (the freetype 2 default). I switched back and forth between 40 and 38 after reading the article linked. I honestly can't tell much difference. Maybe I'm wrong, but I think I'll stick with 40.

1 points

There is an option for synthetic bold:

<match target="font">
  <edit name="embolden" mode="assign">
    <bool>true</bool>
  </edit>
</match>

You can't control how much though. I'm not even sure this is what you're looking fo since infinality definitely doesn't use this. If you could describe more technically what you're seeing or have a picture? Sometimes "lightness" is due to lack of antialiasing.

2 points

Unfortunately this makes everything bold :/ I don't want that, I just need text hinting to be heavier, but still smooth.

1 points

Please let me know if you find the answer, I've tried the new Freetype2 without luck

2 points

Here's the PKGBUILD I use to solve the same problem you have:

https://gist.github.com/Ropid/95c6c01ed73a0b08f58210aaa5a4d0e7

The changes are in the prepare() function. It's those inlined patches you see there. The first one changes the strength of the default filter. The second patch enables the use of the old subpixel filter code to make changes to the filter strength possible.

The third patch about "tt_size_metrics" is not really needed. It's about size changes of fonts that was introduced a while back. I noticed some font where I didn't like what happened to it and that's the only reason it's in the PKGBUILD.

There's also a line groups+=(modified). That's to make it so IgnoreGroup = modified can be added to /etc/pacman.conf to hold the package back when there's an update.

1 points

Didn't really want to build freetype :( I've downloaded a ICC color profile that has improved things a bit. If that doesn't work I'll probably try your PKGBUILD. Thanks!

2 points

I found out keeping it updated isn't terribly annoying if you use the SVN method to get the Arch build files for the package.

When there's a new update, you go into the folder with the PKGBUILD and do svn update . to get the new version. SVN will try to merge the new version with the local changes. I tried to edit the file in a way that this automatic merging has a good chance to be successful. When it works, you can then immediately do makepkg -i to get it installed. Freetype2 is done compiling in 15 seconds or so on a quadcore CPU.

With "SVN", I mean this here:

https://www.archlinux.org/svn/

https://wiki.archlinux.org/index.php/Arch_Build_System#Retrieve_PKGBUILD_source_using_Svn

2 points

What fonts have you tried? Most of them have light, regular and bold but not everyone looks good on the system. Ricer here, not font expert in any way.

1 points

Since the problem happens on different websites, it happens with different fonts I guess. A good example is Google's search results descriptions. Even if I change the font on the browser, the font on that pages doesn't change (nor I want to change fonts for all sites).

1 points

I've used an ICC color profile that was calibrated for this display (supposedly), and it seems to have improved things a bit! I didn't think colors were very wrong before though (and I am picky with colors), but this profile adds a bit of contrast it seems.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.