I installed Monaco font and it looks great in terminal:
but it looks ugly in the browsers:
How can I fix such a behavior? I would like to see the correct font in web pages too.
I installed Monaco font and it looks great in terminal:
but it looks ugly in the browsers:
How can I fix such a behavior? I would like to see the correct font in web pages too.
I am so glad that this was fixed.
Here is the commit that fixed this: a new font.
It can be installed using the following command:
curl -kL https://raw.github.com/cstrap/monaco-font/master/install-font-ubuntu.sh | bash
First create a file in .config/fontconfig/conf.d/ directory with 20-no-embedded.conf name.
Then put the below lines in the file to disable embedded bitmaps for all fonts.(If you don't want to disable for all fonts, but for some fonts, skip this to the next)
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
(Alternative) If you don't want to disable for all fonts, but only for a specific font, you should instead use these
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test qual="any" name="family">
<string>Monaco</string>
</test>
<edit name="embeddedbitmap">
<bool>false</bool>
</edit>
</match>
</fontconfig>
Below is a picture after successfully enabling anti-aliasing for Monaco. Have fun!
If you want to know more, check out ArchLinux's fontconfig wiki page that helped me to solve this problem.
font-family
:textarea { font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif }
I guess you noticed theMonaco
font that is placed beforeLucida Console
ormonospace
that look ok. – Ionică Bizău Dec 05 '13 at 11:20