LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-14-2014, 12:12 AM   #1
xyzone
Member
 
Registered: Jun 2010
Posts: 35

Rep: Reputation: Disabled
How to change the default Japanese fonts?


Editing /usr/share/fontconfig/conf.avail/65-nonlatin.conf and putting an entry for the custom font at the very top seems to do something. Only the kana changes but the kanji is left the same. What am I missing?
 
Old 09-14-2014, 12:52 AM   #2
jessetaylor84
Member
 
Registered: Jan 2014
Location: Olympia, WA
Distribution: Debian / Tails
Posts: 47

Rep: Reputation: 10
Which Linux distribution are you using? Here is a guide for configuring it on Ubuntu: http://askubuntu.com/questions/42771...-japanese-font ... but not sure if that's going to work for you.

Last edited by jessetaylor84; 09-14-2014 at 12:57 AM.
 
1 members found this post helpful.
Old 09-14-2014, 09:35 PM   #3
xyzone
Member
 
Registered: Jun 2010
Posts: 35

Original Poster
Rep: Reputation: Disabled
Thanks. I'm on Debian, and this worked with some edits. The Ubuntu-intended files seem outdated in that some things gave warnings about incompatibilities.

New Ubuntu versions don't need this fix anymore.

This is what I ended up putting in /etc/fonts/conf.d/69-language-selector-ja-jp.conf

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <!-- Japanese (ja) -->
    <match target="pattern">
        <test qual="any" name="family">
            <string>serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>DejaVu Serif</string>
            <string>IPA P明朝</string>
            <string>IPA モナー P明朝</string>
            <string>Takao P明朝</string>
            <string>梅P明朝</string>
            <string>さざなみ明朝</string>
            <string>東風明朝</string>
        </edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>DejaVu Sans</string>
            <string>HG丸ゴシックM-PRO</string>
            <string>IPA Pゴシック</string>
            <string>IPA モナー Pゴシック</string>
            <string>Takao Pゴシック</string>
            <string>UmePlus P Gothic</string>
            <string>梅Pゴシック</string>
            <string>VL Pゴシック</string>
            <string>さざなみゴシック</string>
            <string>東風ゴシック</string>
        </edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family">
            <string>monospace</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>DejaVu Sans Mono</string>
            <string>IPAゴシック</string>
            <string>IPA モナー ゴシック</string>
            <string>Takaoゴシック</string>
            <string>UmePlus Gothic</string>
            <string>梅ゴシック</string>
            <string>VL ゴシック</string>
            <string>さざなみゴシック</string>
            <string>東風ゴシック</string>
        </edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family">
            <string>Ryumin</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>IPA P明朝</string>
            <string>IPA モナー P明朝</string>
            <string>Takao P明朝</string>
            <string>梅P明朝</string>
            <string>さざなみ明朝</string>
            <string>東風明朝</string>
        </edit>
    </match>

    <match target="pattern">
        <test qual="any" name="family">
            <string>GothicBBB</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
	    <string>HG丸ゴシックM-PRO</string>
            <string>IPA Pゴシック</string>
            <string>IPA モナー Pゴシック</string>
            <string>Takao Pゴシック</string>
            <string>UmePlus P Gothic</string>
            <string>梅Pゴシック</string>
            <string>VL Pゴシック</string>
            <string>さざなみ ゴシック</string>
            <string>東風ゴシック</string>
        </edit>
    </match>
    <!-- Japanese (ja) ends -->
Notice that I have added two custom fonts for serif and sans-serif. It's the HG fonts.
 
Old 09-19-2014, 01:18 PM   #4
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Code:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
K3b No Japanese fonts Adol Linux - Software 1 02-05-2013 10:50 PM
japanese fonts in x.org juanbobo Linux - Software 3 03-29-2005 11:06 PM
how disable anti-aliasing fonts completely and how to change the default system theme user222 Linux - General 2 10-16-2004 02:03 AM
Japanese display, fonts. Danodare Slackware 8 02-29-2004 11:47 AM
Japanese fonts under Slackware 9.1 OmegaTemplar Slackware 3 11-15-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration