Skip to content

Chrome monospace fonts

A few weeks ago, I went through this: https://www.reddit.com/r/archlinux/comments/5r5ep8/make_your_arch_fonts_beautiful_easily/

Fonts look good, but I recently noticed that github/bitbucket's code blocks are now using a non-monospaced font, which is driving me crazy. Unicode characters are also showing up as blocks.

In my chrome settings (chrome://settings/fonts), I have the DejaVue font family configured appropriately (serif->serif, sans->sans, monospace->monospace). Anything else I should check?

As for the UTF issue - is there a particular font family I should install? I've gone through the fonts wiki page and installed what I think are the appropriate ones, but maybe I'm missing something. Or maybe the customizations from the "Make your arch fonts beautiful easily" are breaking things?

Any tips would be appreciated.

2 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
74895d

Author

28
posts
129
comments
0
media
View profile

5 comments

unknown author1 hidden

Deleted before we saved it.

2 points

Most of that has become useless since freetype 2.8.1

How so? https://sourceforge.net/projects/freetype/files/freetype2/2.8.1/

Section I talks about bug fixes relating to interpreter 40 being chosen, which I assume is relevant.

Section II Important Changes says no need to resort to ClearType techniques of resolution tripling and filtering. That might be related to the OP's how-to no longer needing the 3 font preset links creates? But that's hardly "most".

I'm not trying to call you out on this - I honestly don't understand the implications of the changelog.

1 points

Select some text that's supposed to be mono on that website you think is broken. Open the right-click menu and choose the "Inspect" menu entry. Some extra view will open on the bottom of the window. Somewhere in there, you'll find a tab named "computed". In that tab, look for the "font-family" property. Take the name you see there and go to a terminal and use fc-match to look up what concrete font your system selects for it.

If something's wrong with what you get with fc-match, meaning it's supposed to be a result that's some mono font but instead a non-mono font gets selected, then you need to look through your fontconfig files to try to find what's causing the problem.

About the Unicode stuff, I'd try copying one of those blocks you see and paste it into Google Search to maybe find out what language it is, then search with pacman or in the AUR for some font for that language.

One font package you might want to try to install is ttf-droid from the normal Arch repos. One of the fonts in that package is "Droid Sans Fallback". I think that one is some sort of catch-all font that's used on Android to provide all kinds of obscure characters that are missing in the normal Roboto and Noto fonts used on Android.

That post you link to, I wonder if that /etc/fonts/local.conf example that's shown in that post isn't kind of broken with that first rule. Is that rule prepending Noto Sans to all font search result lists? Maybe that's why the stuff breaks on github/bitbucket? To set mono, sans, serif names, I use structures like this:

  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Liberation Sans</family>
      <family>Noto Sans</family>
      <family>DejaVu Sans</family>
      <family>Droid Sans Fallback</family>
    </prefer>
  </alias>

Those multiple fonts mentioned is to make fontconfig look through the fonts in that order to find missing characters.

1 points

Is that rule prepending Noto Sans to all font search result lists?

That was it! Thanks.

1 points

Oh, installing ttf-droid fixed my unicode issues as well.

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.