Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Korean Fonts on Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
tachikoma
n00b
n00b


Joined: 31 Mar 2004
Posts: 15
Location: Newark, NJ

PostPosted: Wed Mar 31, 2004 7:50 pm    Post subject: Installing Korean Fonts on Gentoo Reply with quote

1) copy the c:\windows\fonts\gulim.ttc from windows to /data/fonts/ms-gulim
2) nano /data/fonts/ms-gulim/fonts.dir
Code:
64
vl=y:eb=y:fn=0:gulim.ttc      -ms-Gulim-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=0:ai=0.5:gulim.ttc   -ms-Gulim-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=0:ai=0.5:gulim.ttc   -ms-Gulim-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=0:ab=y:gulim.ttc   -ms-Gulim-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=0:ai=0.5:ab=y:gulim.ttc   -ms-Gulim-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=0:ai=0.5:ab=y:gulim.ttc   -ms-Gulim-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=0:gulim.ttc      -ms-Gulim-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=0:ai=0.5:gulim.ttc   -ms-Gulim-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=0:ai=0.5:gulim.ttc   -ms-Gulim-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=0:ab=y:gulim.ttc   -ms-Gulim-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=0:ai=0.5:ab=y:gulim.ttc   -ms-Gulim-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=0:ai=0.5:ab=y:gulim.ttc   -ms-Gulim-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-1
eb=y:fn=0:gulim.ttc         -ms-Gulim-medium-r-normal--0-0-0-0-p-0-iso8859-1
eb=y:fn=0:ai=0.5:gulim.ttc      -ms-Gulim-medium-i-normal--0-0-0-0-p-0-iso8859-1
eb=y:fn=0:ab=y:gulim.ttc      -ms-Gulim-bold-r-normal--0-0-0-0-p-0-iso8859-1
eb=y:fn=0:ai=0.5:ab=y:gulim.ttc   -ms-Gulim-bold-i-normal--0-0-0-0-p-0-iso8859-1
vl=y:eb=y:fn=1:gulim.ttc      -ms-GulimChe-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=1:ai=0.5:gulim.ttc   -ms-GulimChe-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=1:ai=0.5:gulim.ttc   -ms-GulimChe-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=1:ab=y:gulim.ttc   -ms-GulimChe-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=1:ai=0.5:ab=y:gulim.ttc   -ms-GulimChe-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=1:ai=0.5:ab=y:gulim.ttc   -ms-GulimChe-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=1:gulim.ttc      -ms-GulimChe-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=1:ai=0.5:gulim.ttc   -ms-GulimChe-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=1:ai=0.5:gulim.ttc   -ms-GulimChe-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=1:ab=y:gulim.ttc   -ms-GulimChe-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=1:ai=0.5:ab=y:gulim.ttc   -ms-GulimChe-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=1:ai=0.5:ab=y:gulim.ttc   -ms-GulimChe-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-1
eb=y:fn=1:gulim.ttc         -ms-GulimChe-medium-r-normal--0-0-0-0-m-0-iso8859-1
eb=y:fn=1:ai=0.5:gulim.ttc      -ms-GulimChe-medium-i-normal--0-0-0-0-m-0-iso8859-1
eb=y:fn=1:ab=y:gulim.ttc      -ms-GulimChe-bold-r-normal--0-0-0-0-m-0-iso8859-1
eb=y:fn=1:ai=0.5:ab=y:gulim.ttc   -ms-GulimChe-bold-i-normal--0-0-0-0-m-0-iso8859-1
vl=y:eb=y:fn=2:gulim.ttc      -ms-Dotum-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=2:ai=0.5:gulim.ttc   -ms-Dotum-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=2:ai=0.5:gulim.ttc   -ms-Dotum-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=2:ab=y:gulim.ttc   -ms-Dotum-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=2:ai=0.5:ab=y:gulim.ttc   -ms-Dotum-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=2:ai=0.5:ab=y:gulim.ttc   -ms-Dotum-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=2:gulim.ttc      -ms-Dotum-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=2:ai=0.5:gulim.ttc   -ms-Dotum-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=2:ai=0.5:gulim.ttc   -ms-Dotum-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=2:ab=y:gulim.ttc   -ms-Dotum-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=2:ai=0.5:ab=y:gulim.ttc   -ms-Dotum-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=2:ai=0.5:ab=y:gulim.ttc   -ms-Dotum-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-1
eb=y:fn=2:gulim.ttc         -ms-Dotum-medium-r-normal--0-0-0-0-p-0-iso8859-1
eb=y:fn=2:ai=0.5:gulim.ttc      -ms-Dotum-medium-i-normal--0-0-0-0-p-0-iso8859-1
eb=y:fn=2:ab=y:gulim.ttc      -ms-Dotum-bold-r-normal--0-0-0-0-p-0-iso8859-1
eb=y:fn=2:ai=0.5:ab=y:gulim.ttc   -ms-Dotum-bold-i-normal--0-0-0-0-p-0-iso8859-1
vl=y:eb=y:fn=3:gulim.ttc      -ms-DotumChe-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=3:ai=0.5:gulim.ttc   -ms-DotumChe-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=3:ai=0.5:gulim.ttc   -ms-DotumChe-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=3:ab=y:gulim.ttc   -ms-DotumChe-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=3:ai=0.5:ab=y:gulim.ttc   -ms-DotumChe-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=3:ai=0.5:ab=y:gulim.ttc   -ms-DotumChe-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-0
vl=y:eb=y:fn=3:gulim.ttc      -ms-DotumChe-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=3:ai=0.5:gulim.ttc   -ms-DotumChe-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=3:ai=0.5:gulim.ttc   -ms-DotumChe-medium-i-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=3:ab=y:gulim.ttc   -ms-DotumChe-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=3:ai=0.5:ab=y:gulim.ttc   -ms-DotumChe-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-1
vl=y:eb=y:fn=3:ai=0.5:ab=y:gulim.ttc   -ms-DotumChe-bold-i-normal--0-0-0-0-c-0-ksc5601.1987-1
eb=y:fn=3:gulim.ttc         -ms-DotumChe-medium-r-normal--0-0-0-0-m-0-iso8859-1
eb=y:fn=3:ai=0.5:gulim.ttc      -ms-DotumChe-medium-i-normal--0-0-0-0-m-0-iso8859-1
eb=y:fn=3:ab=y:gulim.ttc      -ms-DotumChe-bold-r-normal--0-0-0-0-m-0-iso8859-1
eb=y:fn=3:ai=0.5:ab=y:gulim.ttc   -ms-DotumChe-bold-i-normal--0-0-0-0-m-0-iso8859-1


4) nano /etc/X11/XF86Config
- comment out freetype, comment in xtt, add Fontpath
- xtt is better than freetype for reading tt korean characters
Code:
  # This loads the Type1 and FreeType font modules
  Load        "type1"
  #  Load        "freetype" ---------------> comment out
  Load        "xtt"  -------------------->comment in
 
  ......     
                                                                               
  FontPath   "/usr/X11R6/lib/X11/fonts/local/"
  FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
  FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
  FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
  FontPath   "/data/fonts/"
  FontPath   "/data/fonts/ms-gulim/" -------------------> add this


5) nano -w /etc/fonts/local.conf
Code:
   <dir>/data/fonts/ms-gulim</dir> ----------> add this
</fontconfig>


6) env-update
7) fc-cache -fv

also, for gtk and gtk2 fonts, edit ~/.gtkrc and ~/.gtkrc-2.0
here's my .gtkrc
Code:
   style "gtk-default-ko" {
           fontset = "-microsoft-verdana-medium-r-normal-*-*-120-*-*-p-*-viscii1.1-1,\
                  -*-gulim-medium-r-normal--*-120-*-*-*-*-ksc5601.1987-0,*"
   }
   class "GtkWidget" style "gtk-default-ko"


and .gtkrc-2.0
Code:
  gtk-font-name = "Gulim 12"


Hope this helps..
Back to top
View user's profile Send private message
aqua0125
n00b
n00b


Joined: 05 Jun 2003
Posts: 9
Location: Seoul,Korea

PostPosted: Fri Apr 02, 2004 9:16 am    Post subject: Reply with quote

http://cvs.kldp.net/cgi-bin/cvsweb.cgi/?cvsroot=ebuild

Did you know there's Korean localization ebuild project? :)
put them on.. PORTAGE_OVERAY_DIR

and emerge unfonts
:D

unfonts are the only Korean fonts which has Bold & Italic area. :D




ms-gulim's real name is hanyang system-gulim

Code:
cd /usr/share/fonts
mkdir ms-fonts
cd ms-fonts
cp /somewhere/gulim.ttc ./
ttmkfdir
mkfontdir


is better than copying fonts.dir :D
no env-update needed
:twisted:
_________________
---------------------------------------------------------
enjoy life!! :D
Back to top
View user's profile Send private message
Taeyoung
n00b
n00b


Joined: 16 Oct 2004
Posts: 14
Location: Seoul, Korea

PostPosted: Sat Oct 16, 2004 3:11 pm    Post subject: Reply with quote

unfonts is splited to unfonts & unfonts-extra
and we have two more GPLed Korean font (alee-fonts & baekmuk-fonts) :D




Code:
emerge unfonts unfonts-extra alee-fonts baekmuk-fonts

_________________
It is only with the heart that one can see rightly; what is essential is invisible to the eye.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum