2

My Chrome fonts are too narrow and line spacing is too big:

Chrome fonts  too narrow and line spacing too big

How do change the settings to make it display the fonts properly? By the way, this issue is not related to fonts size type of thing though. Any ideas?

Edit: Is this due to certain font-family style? I've found arial,sans-serif in multiple places upon inspecting the webpage in Chrome.

  • Select a bit of the text, right-click, choose "Inspect...". A new window (or pane) will open. In the right-hand column, scroll down until you find the property "font-family". What does it say? – Jos Feb 20 '17 at 13:48
  • In the 'Elements' tab of the top-right panel, I found no such thing as 'font-family' unfortunately. However, I did find one ( arial,sans-serif ) under the 'Styles' tab in the bottom-right panel, with some other those keywords in strike-through text style. Hope that would be helpful. – James Wong Feb 20 '17 at 14:32
  • arial, sans-serifis the expected font on Google search pages. Did you install the Microsoft core fonts? Check with fc-match Arial; it should say something like Arial.ttf. If not, do sudo apt install ttf-mscorefonts-installer, press OK to agree to the license agreement, then do sudo fc-cache. You need to restart Chrome to have any effect. – Jos Feb 20 '17 at 14:55
  • That's good to know, and yet fc-match Arial throws me ARIALN.TTF: "Arial" "Narrow". Is that weird? The ttf-mscorefonts-installer is already the newest version (3.4+nmu1ubuntu2) is what I got upon entering your next line. lol – James Wong Feb 20 '17 at 15:46
  • 1
    Ah, there is your problem: you use font substitution so the Arial font is substituted by Arial Narrow. – Jos Feb 20 '17 at 15:58
2

My solution is simple but mostly credited to @Jos.

Make sure ttf-mscorefonts-installer is installed correctly in the system. If not, uninstall and reinstall it with the following commands.

  1. sudo dpkg -P ttf-mscorefonts-installer

  2. sudo apt-get install ttf-mscorefonts-installer

  3. Use TAB and Enter keys to navigate the installing process.

  4. sudo fc-cache

And it should work properly now. But It may not apply to everybody else's situation though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.