Announcement

Collapse
No announcement yet.

Trouble using the "MS Mincho" and "MS Gothic" fonts

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trouble using the "MS Mincho" and "MS Gothic" fonts

    Hi.

    I wonder what I'm doing wrong here. I've been trying to use these two TrueType fonts, "MS Mincho" and "MS Gothic," with no success for the last several hours. I need your help.

    First, I added the font files (MSMINCHO.TTF and MSGOTHIC.TTF) to the directory called "/usr/share/fonts/truetype/msttcorefonts". Then I ran the following command to rebuild the font cache.

    Code:
    $ sudo fc-cache -f -v
    It said the operation succeeded and created ~/.fonts.conf among other things. I googled around and came to the conclusion that modifying the file as follows would do the trick.

    Code:
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    
     <alias>
     <family>serif</family>
     <prefer>
     <family>DejaVu Serif</family>
     <family>MS Mincho</family> 
     </prefer>
     </alias>
    
     <alias>
     <family>sans-serif</family>
     <prefer>
     <family>DejaVu Sans</family>
     <family>MS Gothic</family>
     </prefer>
     </alias>
    
     <alias>
     <family>monospace</family>
     <prefer>
     <family>DejaVu Sans Mono</family>
     <family>MS Gothic</family>
     </prefer>
     </alias>
    
     <match target="font" >
     <edit mode="assign" name="embeddedbitmap" >
     <bool>false</bool>
     </edit>
     </match>
    
     <match target="font" >
     <edit mode="assign" name="rgba" >
      <const>rgb</const>
     </edit>
     </match>
     <match target="font" >
     <edit mode="assign" name="hinting" >
      <bool>true</bool>
     </edit>
     </match>
     <match target="font" >
     <edit mode="assign" name="hintstyle" >
      <const>hintfull</const>
     </edit>
     </match>
     <match target="font" >
     <edit mode="assign" name="antialias" >
      <bool>true</bool>
     </edit>
     </match>
    </fontconfig>
    However, the Japanese font renders horrible on applications like Firefox and Kontact.

    If I replace "MS Mincho" and "MS Gothic" with "Sazanami Mincho" and "Sazanami Gothic," which I have installed also, then they come up rather well. Which tells me the format of my ~/.fonts.conf should be correct. Or not? I dunno...

    Any help would be appreciated!

    Dai
    Registered Linux User: #281828 | Kubuntu User: #22280

    Kubuntu 18.04 LTS
    Dell Precision Workstation T5500 (Xeon @ 2.13GHz x 2 / 12 GB RAM)
Working...
X