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.
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- 74895d
5 comments
Deleted before we saved it.
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.
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-matchto 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-droidfrom 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:
Those multiple fonts mentioned is to make fontconfig look through the fonts in that order to find missing characters.
That was it! Thanks.
Oh, installing
ttf-droidfixed my unicode issues as well.