Linuxdoc Sgml/X-True Type-KLDP
<!doctype linuxdoc system>
<article>
<title>X truetype ÆùÆ® »ç¿ëÇÏ±â ¹Ì´Ï ÇÏ¿ìÅõ
<author>ÀÓ ÀºÀç,
(<htmlurl
url="mailto:eunjea@kldp.org"
name="eunjea@kldp.org">)
<date>¸¶Áö¸· ¼öÁ¤ÀÏ 2000³â 7¿ù 25ÀÏ
<abstract>
º» ¹®¼´Â X ¿¡¼ Æ®·çŸÀÔ ÆùÆ® »ç¿ë ¹æ¹ý¿¡ °üÇÑ ÂªÀº ±ÛÀÔ´Ï´Ù.
</abstract>
<toc>
<sect>¼Ò°³
<p>
X ¿¡¼ ¿øµµ±×ÀÇ ±¼¸²Ã¼, arial µîÀÇ truetype ÆùÆ®¸¦ »ç¿ëÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ Áú¹®ÀÌ ¸¹ÀÌ ¿À±â¿¡
¾ÆÁÖ °£´ÜÇÏ°Ô Á¤¸®ÇÏ¿´½À´Ï´Ù.
Ãß°¡ ÇÒ°ÍÀ̳ª ¼öÁ¤ »çÇ×ÀÌ ÀÖÀ¸¸é ÇÊÀÚ¿¡°Ô ¾ðÁ¦ µçÁö ¿¬¶ôÁֽñ⠹ٶø´Ï´Ù.
<sect> X ¼¹ö
<p>
XFree86-3.3.X ´ë¿¡¼´Â freetype ÆÐŰÁö <url url="http://freetype.org" name="http://freetype.org"> ¿Í xtt ÆÐÄ¡°¡ ÇÊ¿äÇÕ´Ï´Ù. <url url="http://X-TT.dsl.gr.jp/" name="http://X-TT.dsl.gr.jp/">
Çѱ¹ÀÇ ¹èÆ÷º»µé¿¡´Â ´ëºÎºÐ ÀÌ¹Ì ÆÐÄ¡°¡ µÇ¾î ÀÖ´Â °ÍÀ¸·Î ¾Ë°í ÀÖ½À´Ï´Ù.
X 4.0.X ¿¡´Â ÀÌ¹Ì freetype, xtt ÆÐŰÁö°¡ µé¾î ÀÖÀ¸¹Ç·Î, ¼³Á¤ ÆÄÀÏ(/etc/X11/XF86Config)¿¡¼ ¸ðµâ¸¸ ÀоîµéÀÌ¸é µË´Ï´Ù.
<code>
Section "Module"
Load "xtt"
EndSection
</code>
À§¿Í °°ÀÌ º»ÀÎÀÇ ¼³Á¤ÆÄÀÏ¿¡ Load "xtt"°¡ µé¾î ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù.
À̶§ ÁÖÀÇÇÒ°ÍÀº "freetype" ¸ðµâÀ» µ¿½Ã¿¡ ÀоîµéÀÌ¸é ¾ÈµË´Ï´Ù.
Ãß°¡·Î Æ®·çŸÀÔ°ú´Â Á÷Á¢ÀûÀÎ »ó°üÀÌ ¾øÁö¸¸ Çѱۻç¿ë¿¡ ¿µÇâÀ» ¹ÌÄ¡´Â
ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù.
/usr/X11R6/lib/X11/locale/ko/XLC_LOCALE ¸¦ »ìÆìº¸½Ã°í ´ÙÀ½°ú °°ÀºÁö È®ÀÎÇÕ´Ï´Ù.
<code>
.......
.......
# fs1 class
fs1 {
charset {
name KSC5601.1987-0:GL
}
font {
primary KSC5601.1987-0:GL
substitute KSC5601.1987-0:GL # À̺κÐÀÌ ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù.
}
}
END XL_FONTSET
.......
.......
</code>
<sect> ÆùÆ® ¼³Á¤(X 3.3.X, 4.0.X µ¿ÀÏ)
<p>
<verb>
mkdir /usr/X11R6/lib/X11/fonts/truetype/
cd /usr/X11R6/lib/X11/fonts/truetype/
ln -sf /mnt/harde/hwin98/fonts/gulim.ttc .
ln -sf /mnt/harde/hwin98/fonts/arial.ttf .
ln -sf /mnt/harde/hwin98/fonts/times.ttf .
....
....
</verb>
À§¿Í °°ÀÌ µð·ºÅ丮¸¦ »ý¼ºÇÏ¿© truetype ÆùÆ®¸¦ º¹»çÇØ ³Ö°Å³ª, ¿øµµ±× ÆÄƼ¼ÇÀÌ
Á¸Àç ÇÑ´Ù¸é ¸µÅ© ÇØÁÝ´Ï´Ù.
¾ÆÁ÷±îÁö truetype ÆùÆ®¿¡ ´ëÇÑ fonts.dir ÆÄÀÏÀ» Á¦´ë·Î »ý¼ºÇØÁÖ´Â ÅøÀÌ ¾øÀ¸¹Ç·Î
Á÷Á¢ ¼ÕÀ¸·Î ¸¸µé¾î Áà¾ß ÇÕ´Ï´Ù.
ÆùÆ®µéÀÌ µé¾î ÀÖ´Â µð·ºÅ丮¿¡ fonts.dir À̶ó´Â ÆÄÀÏÀ» ´ÙÀ½°ú °°Àº
¿ä·ÉÀ¸·Î ¸¸µì´Ï´Ù.
<verb>
14
eb=y:fn=0:gulim.ttc -ms-gulim-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
eb=y:fn=0:gulim.ttc -ms-gulim-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-0
eb=y:ab=y:gulim.ttc -ms-gulim-bold-r-normal--0-0-0-0-c-0-ksc5601.1987-0
eb=y:ab=y:gulim.ttc -ms-gulim-bold-o-normal--0-0-0-0-c-0-ksc5601.1987-0
eb=y:fn=2:gulim.ttc -ms-dotum-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
eb=y:fn=2:gulim.ttc -ms-dotum-medium-o-normal--0-0-0-0-c-0-ksc5601.1987-0
arial.ttf -ms-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-1
ariali.ttf -ms-Arial-medium-i-normal--0-0-0-0-p-0-iso8859-1
arialbd.ttf -ms-Arial-bold-r-normal--0-0-0-0-p-0-iso8859-1
arialbi.ttf -ms-Arial-bold-i-normal--0-0-0-0-p-0-iso8859-1
times.ttf -ms-times-medium-r-normal--0-0-0-0-p-0-iso8859-1
arial.ttf -ms-Arial-medium-r-normal--0-0-0-0-p-0-koi8-ru
comic.ttf -ms-Comic-medium-r-normal--0-0-0-0-p-0-iso8859-1
comicbd.ttf -ms-Comic-bold-r-normal--0-0-0-0-p-0-iso8859-1
</verb>
¿É¼Ç¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¼³¸íÀº »ý·«ÇϰڽÀ´Ï´Ù. ±Ã±ÝÇϽŠºÐµéÀº
ÃÖÁØÈ£´ÔÀÇ ±ÛÀ» ÀÐ¾î º¸½Ê½Ã¿ä.
<url url="http://www.kr.freebsd.org/~cjh/freetime/x11/xtt/" name="http://www.kr.freebsd.org/~cjh/freetime/x11/xtt/">
À§ÀÇ ¼³Á¤ ±×´ë·Î »ç¿ëÇϼŵµ ¹«¹æÇÕ´Ï´Ù. ¹°·Ð ÇØ´ç ÆùÆ®µéÀÌ Á¸ÀçÇØ¾ß °ÚÁÒ.
ÀÌÁ¦ º»ÀÎÀÇ XF86Config ¼³Á¤ÆÄÀÏ¿¡ ÇØ´ç ÆùÆ® °æ·Î¸¦ ³Ö¾î ÁÝ´Ï´Ù.
<verb>
Section "Files"
........
........
FontPath "/usr/X11R6/lib/X11/fonts/truetype/"
........
........
EndSection
</verb>
¿äÁò ¹èÆ÷º»µéÀ» »ìÆìº¸´Ï xfs ¸¦ »ç¿ëÇÏ´Â °ÍµéÀÌ ¸¹´õ±º¿ä.
º°´Ù¸¥ ÀÌÀ¯°¡ ¾ø´Ù¸é xfs ¸¦ Á×À̰í Á÷Á¢ ·ÎµùÇÏ´Â °ÍÀÌ ´õ ºü¸¨´Ï´Ù.
Á¦ ¼³Á¤ ÆÄÀÏÀÇ ÀϺΠÀÔ´Ï´Ù.
<verb>
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/truetype/"
FontPath "/usr/X11R6/lib/X11/fonts/ttfonts/"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/PEX/"
FontPath "/usr/share/fonts/default/Type1"
EndSection
</verb>
X ¸¦ ´Ù½Ã ½ÃÀÛÇÕ´Ï´Ù.
xfontsel À» ½ÇÇà½ÃÄÑ fndry ¸¦ ms·Î fmly¸¦ gulim À¸·Î ÇØº¾´Ï´Ù.
À̶§ ±¼¸²Ã¼°¡ º¸À̸é ÀÌÁ¦ ¸ðµç Áغñ´Â ³¡³µ½À´Ï´Ù.
¸¸¾à ÇØ´ç ÆùÆ®µéÀÇ À̸§ÀÌ ³ªÅ¸³ªÁö ¾Ê°Å³ª ±ÛÀÚ°¡ Á¦´ë·Î Ç¥½ÃµÇÁö ¾Ê´Â´Ù¸é
À̱ÛÀ» óÀ½ºÎÅÍ ´Ù½Ã Â÷±ÙÂ÷±Ù »ìÆìº¸¼¼¿ä ;-)
<sect> ÆùÆ® »ç¿ëÇϱâ
<p>
<sect1> netscape
<p>
¼³Á¤ÅÇÀ¸·Î µé¾î°¡ ÆùÆ® °ü·ÃÀ» »ìÆìº¾´Ï´Ù.
<verb>
For the Encoding: Korean(ks c 5601-1987)
Variable Width Font: Gulim (Ms)
size´Â 0À¸·Î ÇØµÓ´Ï´Ù. (µÚ¿¡ µû·Î ÆùÆ® Å©±â ¼³Á¤À» ¼³¸í ÇϰڽÀ´Ï´Ù.)
Allow Scaling Àº enable ·Î ÇØÁÝ´Ï´Ù.
¿µ¹® ÆùÆ®´Â ÀúÀÇ °æ¿ì arial À» ¾¹´Ï´Ù.
For the Encoding: Western(iso-8859-1)
Variable Width Font: Arial (Ms)
¿ª½Ã size´Â 0, Allow Scaling Àº enable ·Î.
</verb>
ok ¸¦ ´·¯ÁØÈÄ netscapeÀ» ´Ù½Ã ½ÃÀÛÇÏ¿© <url url="http://kldp.org" name="http://kldp.org"> ¸¦ Çѹø µÑ·¯º¾´Ï´Ù ;-)
±ÛÀÚ Å©±â°¡ ³Ê¹« Å©°Å³ª ÀÛ´Ù±¸¿ä? ¹Ù²ã ÁݽôÙ.
º»ÀÎÀÇ home µð·ºÅ丮¿¡ ÀÖ´Â ~/.Xdefaults ¿¡ ´ÙÀ½À» Ãß°¡ ÇÑ´ÙÀ½,
<code>
Netscape*documentFonts.defaultFont*ks_c_5601-1987.prop: ms-gulim-160-scale
Netscape*documentFonts.defaultFont*iso-8859-1.prop: ms-arial-160-scale
</code>
xrdb -load ~/.Xdefaults ÇØÁÝ´Ï´Ù.
ÀÌÁ¦ ´Ù½Ã netscape ¸¦ Àç½ÇÇà ÇÏ¿© ±ÛÀÚ Å©±â¸¦ º»ÈÄ º»ÀÎÀÌ ¸¾¿¡ µå´Â ÆùƮũ±â·Î
Á¶ÀýÇÕ´Ï´Ù.
.Xdefaults¿¡ ³Ö¾î ³õ¾Ò´ø ¼ýÀÚ¸¦ ¹Ù²ã°¡¸ç À§ °úÁ¤À» ¹Ýº¹ÇÏ¸é µÇ°ÚÁö¿ä?
<figure>
<eps file="images/netscape.eps">
<img src="images/netscape.jpg">
<caption>netscape¿¡¼ ±¼¸²Ã¼¿Í arial Æ®·çŸÀÔ ÆùÆ®¸¦ »ç¿ëÇÑ ¿¹</caption>
</figure>
<sect1> gtk
<p>
´ÙÀ½Àº º»ÀÎÀÇ gtkrc ¼³Á¤ ÆÄÀÏÁß ÀϺÎÀÔ´Ï´Ù.
¼³Ä¡ ÇüÅ¿¡ µû¶ó gtkrc °¡ À§Ä¡ÇØ ÀÖ´Â °÷ÀÌ ´Ù¸¨´Ï´Ù.
º¸Åë /usr/share/gtkrc ¶Ç´Â /usr/local/etc/gtk/gtkrc ÀÔ´Ï´Ù.
<code>
style "default"
{
fontset = "-adobe-helvetica-bold-r-*-*-15-*-*-*-*-*-iso8859-1,\
-ms-gulim-medium-o-normal--0-140-0-0-c-0-ksc5601.1987-0"
}
</code>
À§¿Í °°Àº Çü½ÄÀ¸·Î »ç¿ëÇÒ ¿µ¹® ÆùÆ® ´ÙÀ½¿¡ ±¼¸²Ã¼¸¦ ¼³Á¤ÇØ ÁÖ¾ú½À´Ï´Ù.
±×¸²Àº gnumeric ÀÇ ¸ð½ÀÀÔ´Ï´Ù.
<figure>
<eps file="images/gnumeric.eps">
<img src="images/gnumeric.jpg">
<caption>gnumeric</caption>
</figure>
<sect1> X À©µµ ¸Å´ÏÀú
<p>
¿µ¹® ·¹µåÇò¿¡ ÆÐŰ¡µÇ¾î ÀÖ´Â X À©µµ¿ì ¸Å´ÏÁ®µéÀº i18n ¿É¼ÇÀ» »©°í ÆÐŰ¡ µÇ¾î
ÀÖ½À´Ï´Ù. ÇѱÛÀÌ Á¦´ë·Î Ç¥½ÃµÇ·Á¸é Àç ÄÄÆÄÀÏÀÌ ÇÊ¿äÇѵ¥ ÀúÀÇ °æ¿ì AfterstepÀ»
»ç¿ëÇϹǷΠ¼Ò½º¸¦ ¹Þ¾Æ´Ù ./configure --enable-i18n À» ÁÖ°í ÄÄÆÄÀÏÇØ¼
»ç¿ëÁßÀÔ´Ï´Ù.
´ÙÀ½ ÇÑ±ÛÆùÆ® ¼³Á¤Àº »ç¿ëÇÒ look ÆÄÀÏÀÇ Font Ç׸ñ¿¡ ´ÙÀ½°ú °°ÀÌ ¿µ¹® ÆùÆ®¸í
µÚ¿¡ ÇÑ±Û ÆùÆ®¸íÀ» Ãß°¡ÇØÁÖ¸é µÇ°Ú½À´Ï´Ù.
<code>
Font -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*,
-ms-gulim-medium-o-normal--0-120-0-0-c-0-ksc5601.1987-0
</code>
´Ù¸¥ À©µµ¿ì ¸Å´ÏÀúµéµµ °ÅÀÇ °°Àº ¹æ¹ýÀ¸·Î ¸Þ´ºµî¿¡ ÇѱÛÀ» Ç¥½ÃÇÒ¼ö ÀÖ½À´Ï´Ù.
X À©µµ ¸Å´ÏÀúµéÀÇ ÇÑ±Û »ç¿ë¿¡ ´ëÇÑ °ÍÀº <url url="http://kldp.org/~mindgame/unix/hangul/" name="http://kldp.org/~mindgame/unix/hangul/"> ¿¡¼ ã¾Æº¸½Ç¼ö ÀÖ½À´Ï´Ù.
<sect1> ÇÑÅÒ
<p>
ÇÑÅÒ¿¡¼ ÆùÆ®»ç¿ëÀº ´ÙÀ½°ú °°ÀÌ Á÷Á¢ ÆùÆ®¸¦ ÁöÁ¤ÇØ Áְųª
hanterm -hfn -ms-gulim-medium-o-normal--0-190-0-0-c-0-ksc5601.1987-0 -fn *-normal-*-c-100-iso8859-1
Ç×»ó Àû¿ë ½ÃŰ·Á¸é .Xdefault ¿¡
<code>
Hanterm*hangulFont: -ms-gulim-medium-o-normal--0-190-0-0-c-0-ksc5601.1987-0
Hanterm*Font: 8x13bold
</code>
¿Í °°Àº ¹®ÀåÀ» ³ÖÀº ´ÙÀ½ xrdb -load ~/.Xdefaults ÇØÁØÈÄ ÇÑÅÒÀ» ½ÇÇà½Ãŵ´Ï´Ù.
º»ÀÎÀÇ ÀÔ¸À¿¡ ¸Â°Ô ¿µ¹® ÆùÆ®¿Í ÇÑ±Û ÆùÆ®ÀÇ Å©±â¸¦ Àû´çÇÏ°Ô ¹Ù²Ù¾î ÁÝ´Ï´Ù.
<figure>
<eps file="images/hanterm.eps">
<img src="images/hanterm.jpg">
<caption>ÇÑÅÒ¿¡¼ ±¼¸²Ã¼¸¦ »ç¿ëÇÏ¿© slrn À» ½ÇÇà½ÃŲ ¸ð½ÀÀÔ´Ï´Ù.</caption>
</figure>
<sect> Âü°í, ¸Î´Â¸»
<p>
½á³õ°í º¸´Ï ÀÌ ±ÛÀÌ ¾ó¸¶³ª µµ¿òÀÌ µÉ±î ÇÏ´Â Àǹ®ÀÌ µé Á¤µµ·Î ¸¾¿¡ µéÁö ¾Ê³×¿ä :-(
ÇÏÁö¸¸ ¾ÕÀ¸·Î ´õ Ãß°¡,¼öÁ¤ ÇØ¼ ´õ ³ªÀº ¹®¼·Î ¸¸µé°Ú½À´Ï´Ù.
¸¶Áö¸·À¸·Î ¿ì¸®°¡ ¾Ë°Ô ¸ð¸£°Ô ¸®´ª½º¿¡¼ÀÇ ÇÑ±Û »ç¿ë¿¡ ÈûÀ» ¾²½Ã´Â ¸¹Àº ºÐµéÀÌ °è½Ê´Ï´Ù. ±×ºÐµé²² Áø½ÉÀ¸·Î °¨»çÇÏ´Ù´Â ¸»À» ÇÏ°í ½Í³×¿ä.
</article>
|
The wise shepherd never trusts his flock to a smiling wolf. |











