You are not logged in.

#1 2012-01-09 04:44:40

cerilla
Member
Registered: 2012-01-09
Posts: 6

[SOLVED] Japanese Character Looks bad

Hello, i just installed Arch Linux with Gnome3 DE. Everything looks good except for the Japanese character that looks bad.

Screenshot of my box
broken, potentially NSFW link due to shutdown website

I have read the Font Configuration wiki page and installed the Ubuntu patched package.
I also have installed hi-quality japanese character fonts as you can see below

[11:31]cerilla > fc-list :lang=ja
IPAMonaGothic,IPA モナー ゴシック:style=Book,Regular
Sazanami Mincho,さざなみ明朝:style=Mincho-Regular,Regular
IPAMonaMincho,IPA モナー 明朝:style=Book,Regular
IPAMonaPGothic,IPA モナー Pゴシック:style=Book,Regular
Sazanami Gothic,さざなみゴシック:style=Gothic-Regular,Regular
Fixed:style=ko
Fixed:style=ja
IPAMonaPMincho,IPA モナー P明朝:style=Regular
IPAMonaUIGothic,IPA モナー UIゴシック:style=Regular
Monapo:style=Regular

The font cache is already reloaded with fc-cache -vf command, but the problem persist
Anyway, here is my ~/.fonts.conf config file

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
       <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>hintslight</const>
               </edit>
       </match>
</fontconfig>

Any pointer for fixing this problem? Thanks smile

Last edited by V1del (2020-12-13 10:52:10)


/人◕ ‿‿ ◕人\

Offline

#2 2012-01-09 05:10:36

kcirick
Member
Registered: 2010-06-21
Posts: 364

Re: [SOLVED] Japanese Character Looks bad

What exactly is the problem with your font? It looks fine from your screenshot...

Offline

#3 2012-01-09 05:12:46

cerilla
Member
Registered: 2012-01-09
Posts: 6

Re: [SOLVED] Japanese Character Looks bad

Er, it looks pretty jaggy.
In other word : No anti-aliasing


/人◕ ‿‿ ◕人\

Offline

#4 2012-01-09 18:13:22

erm67
Member
From: Europe
Registered: 2007-08-01
Posts: 123

Re: [SOLVED] Japanese Character Looks bad

For gnome it is not enough if you enable rgba subpixel rendering in fonts.conf, you have to enable it also for gnome using gnome-tweak-tool or dconf editor. I had the same problem and after some tweaking I managed to make everything look good.
see this:
https://wiki.archlinux.org/index.php/Ta … g_settings

Last edited by erm67 (2012-01-09 18:16:07)

Offline

#5 2012-01-10 04:44:17

cerilla
Member
Registered: 2012-01-09
Posts: 6

Re: [SOLVED] Japanese Character Looks bad

erm67 wrote:

For gnome it is not enough if you enable rgba subpixel rendering in fonts.conf, you have to enable it also for gnome using gnome-tweak-tool or dconf editor. I had the same problem and after some tweaking I managed to make everything look good.
see this:
https://wiki.archlinux.org/index.php/Ta … g_settings

I have tried everything that is written there, but i see no change at all
Thanks for the pointer and the talk page anyway, that's new to me


/人◕ ‿‿ ◕人\

Offline

#6 2012-01-10 09:17:58

erm67
Member
From: Europe
Registered: 2007-08-01
Posts: 123

Re: [SOLVED] Japanese Character Looks bad

What do you have now if you do a xrdb -query?

Last edited by erm67 (2012-01-10 10:18:17)

Offline

#7 2012-01-10 10:43:20

Ranmaru
Member
From: Japan
Registered: 2011-11-20
Posts: 60

Re: [SOLVED] Japanese Character Looks bad

Could you post your .Xdefaults? Seems like your fallback font does not support smoothing and your primary font just doesn't include kanji. That should at least fix it for your terminals ... I'm not sure about the GUI windows, but don't the Gnome settings provide something like a fallback font option? (I haven't used Gnome for a while, so I don't know ... forgive me.)

You might just want to change your fallback font to something like this ...

URxvt.font:xft:Inconsolata:pixelsize=13:antialias=true,xft:Droid Sans Fallback:pixelsize=12:antialias=true
URxvt.boldFont:xft:Inconsolata:pixelsize=13:Bold:antialias=true,xft:Droid Sans Fallback:pixelsize=12:Bold:antialias=true

This is what I use, and it looks like this ... wink

oP6BQ.png

Last edited by Ranmaru (2012-01-10 10:45:12)

Offline

#8 2012-01-10 16:59:29

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] Japanese Character Looks bad

Here are some examples of fonts I have.

Rendering is pretty awful, so I mostly used bold:

http://ompldr.org/vYzZlcA

URxvt.font: xft:Terminus:pixelsize=16,xft:EPSON\ 丸ゴシック体M:weight=bold,xft:Symbola

Offline

#9 2012-01-11 05:05:04

cerilla
Member
Registered: 2012-01-09
Posts: 6

Re: [SOLVED] Japanese Character Looks bad

@erm67

[12:03] cerilla > xrdb -query
Xft.antialias:	1
Xft.dpi:	96
Xft.hinting:	1
Xft.hintstyle:	hintmedium
Xft.lcdfilter:	lcddefault
Xft.rgba:	rgb

It is loaded all right, i see


@ranmaru
Sweet, that does it.
Since now i am using Xmonad/MPD instead of Gnome/Clementine, i guess i could say the problem is solved.

Thanks smile

Last edited by cerilla (2012-01-11 05:06:22)


/人◕ ‿‿ ◕人\

Offline

#10 2012-01-15 00:23:53

jtkmt
Member
From: Japan
Registered: 2009-11-23
Posts: 14

Re: [SOLVED] Japanese Character Looks bad

You marked the thread as solved, but let me post one thing.

Install otf-ipafont in AUR, which is the most beautiful open source Japanese fonts.
And add the following section to your ~/.fonts.conf.
(DejaVu is just an example. For hinting, it depends on your liking, so I omit them.)

 <alias>
    <family>serif</family>
    <prefer>
      <family>DejaVu Serif</family>
      <family>IPAPMincho</family>
    </prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>DejaVu Sans</family>
      <family>IPAPGothic</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>DejaVu Sans Mono</family>
      <family>IPAGothic</family>
      <!-- or if you prefer serif for monospace
      <family>IPAMincho</family>
      -->
    </prefer>
  </alias>

With above, you should have a better look.

Offline

#11 2012-01-18 15:12:16

M4he
Member
Registered: 2011-08-11
Posts: 75

Re: [SOLVED] Japanese Character Looks bad

I don't know about terminal but I always get nice japanese characters in applications when I install ttf-droid


Arch - makes me feel right at /home

Offline

Board footer

Powered by FluxBB