View previous topic :: View next topic |
Author |
Message |
herr_tichy n00b

Joined: 09 Aug 2012 Posts: 11 Location: NRW, Germany
|
Posted: Tue Oct 07, 2014 9:04 am Post subject: some fonts are broken in Chromium but not in Firefox |
|
|
Hi,
I have a problem with Chromium. Some fonts look broken there, see this example:
http://i.imgur.com/S2XeES9.png
The same page in Firefox looks okay:
http://i.imgur.com/VTbCSnQ.png
I don't even know where to start with this issue, can you guys point me in the right direction? Thanks! |
|
Back to top |
|
 |
i92guboj Bodhisattva


Joined: 30 Nov 2004 Posts: 10310 Location: Córdoba (Spain)
|
Posted: Tue Oct 07, 2014 9:09 am Post subject: |
|
|
There are lots of guides about getting nice fonts in linux. Like these:
http://www.lagom.nl/lcd-test/subpixel.php
http://wiki.gentoo.org/wiki/Fontconfig
What really made a difference for me, was adding those substitutions in /etc/fonts/local.conf
Code: |
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
<family>Droid Sans</family>
</prefer>
<default><family>DejaVu Sans</family></default>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Sans</family>
<family>Droid Sans</family>
</prefer>
<default><family>DejaVu Sans</family></default>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Droid Sans Mono</family>
</prefer>
<default><family>DejaVu Sans Mono</family></default>
</alias>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<alias>
<family>Arial</family>
<prefer>
<family>DejaVu Sans</family>
<family>Ubuntu</family>
</prefer>
<default><family>DejaVu Sans</family></default>
</alias>
<alias>
<family>Helvetica</family>
<prefer>
<family>DejaVu Sans</family>
<family>Ubuntu</family>
</prefer>
<default><family>DejaVu Sans</family></default>
</alias>
<alias>
<family>Verdana</family>
<prefer>
<family>DejaVu Sans</family>
<family>Ubuntu</family>
</prefer>
<default><family>DejaVu Sans</family></default>
</alias>
<alias>
<family>Courier</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Ubuntu Mono</family>
</prefer>
<default><family>DejaVu Sans Mono</family></default>
</alias>
</fontconfig>
|
Those are the most common fonts in the web. If you want to add some others you might find this chrome extension useful, since it will help you identify the fonts that a given block in a given web page use:
https://chrome.google.com/webstore/detail/whatfont/jabopobgcpjmedljpbcaablpmlmfcogm?hl=en _________________ Gentoo Handbook | My website |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|