Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3369  / 2 Years ago, fri, march 18, 2022, 9:24:46

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.


More From » fonts

 Answers
3

Solution:




  • 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!




Monaco problem solved image



If you want to know more, check out ArchLinux's fontconfig wiki page that helped me to solve this problem.


[#28129] Friday, March 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ligenvirt

Total Points: 238
Total Questions: 98
Total Answers: 100

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
ligenvirt questions
Tue, Aug 17, 21, 02:28, 3 Years ago
Thu, Sep 23, 21, 17:55, 3 Years ago
Mon, Oct 18, 21, 03:34, 3 Years ago
;