[ubuntu-ko] Çѱ¹¾î¿ë language-selector.conf ¼³Á¤¿¡ ´ëÇÑ °³¼± ÀÇ°ß

Young-Ho Cha ganadist at gmail.com
Sat Oct 20 15:46:27 BST 2007


07. 10. 20, ¸¶ÀÕ(Mait) <mattengi at gmail.com>´ÔÀÌ ÀÛ¼º:
> ¿ìºÐÅõÀÇ °æ¿ì ±Û²Ã ¼³Á¤ Áö¿ªÈ­¸¦ À§Çؼ­ language-selector ÆÐÅ°Áö¿¡¼­
> /etc/fonts/languageselector.conf ÆÄÀÏÀ» ÀûÀýÇÑ ÆÄÀÏ·Î ¸µÅ©ÇØÁÖ°í ÀÖ½À´Ï´Ù. ÀÌ ÆÄÀÏÀº
> /etc/fonts/conf.d/52-languageselector.conf ÆÄÀÏ¿¡ ÀÇÇؼ­ Àоîµé¿©Áö°Ô µË´Ï´Ù.
>
> Çѱ¹¾î ¼³Á¤¿¡ ÇØ´çÇÏ´Â ÆÄÀÏÀº /usr/share/language-selector/fontconfig/ko_KR ÀÔ´Ï´Ù.
>
> ¿ì¼± ÀÌ ÆÄÀÏÀÇ ¿ì¼±¼øÀ§°¡ 50-user.conf, 51-local.confÀÇ ¼³Á¤À» µ¤¾î¾²µµ·Ï µÇ¾î ÀÖ´Ù´Â Á¡À» ¸»¾¸µå¸³´Ï´Ù.
>
> ÀÌ°ÍÀº °¢°¢,
> ~/.fonts.conf (°³º° »ç¿ëÀÚÀÇ ¼³Á¤)
> /etc/fonts/local.conf (½Ã½ºÅÛ Àüü¿¡ Àû¿ëµÇ¸ç ÆÐÅ°Áö ¾÷µ¥ÀÌÆ®½Ã °Çµå·ÁÁöÁö ¾ÊÀ½)
> ÆÄÀϵ鿡 ´ëÀÀµÇ´Â ¼³Á¤ÀÔ´Ï´Ù.
>
> ±×·¡¼­ ÀÌ ÆÄÀÏ¿¡ ¼²ºÒ¸® Àü¿ª ¼³Á¤À» Àû¿ëÇϸé ÆÐÅ°Áö ¾÷±×·¹À̵å½Ã µ¤¾î¾º¿öÁö°Ô µÇ´Â
> /usr/share/language-selector/fontconfig/ko_KR ÆÄÀÏÀ» Á÷Á¢ ¼öÁ¤ÇØ¾ß ÇÏ´Â ¹ø°Å·Î¿òÀÌ
> »ý±é´Ï´Ù.
>
> ÀÏ´Ü ÀÌ ¹®Á¦´Â languageselector.confÀÇ Àû¿ë ¿ì¼±¼øÀ§¸¦ ¹Ù²Ù´Â ÂÊÀ¸·Î ÇØ°áÇØ¾ß ÇÑ´Ù´Â »ý°¢ÀÌ µé±¸¿ä, ÆÄÀÏ
> ³»¿ë ÀÚü¸¸À» ÀdzíÇغÃÀ¸¸é ÁÁ°Ú½À´Ï´Ù.
>
> 1) ´ÙÀ½ ¼³Á¤Àº ¿µ¹®, ÇÑ±Û ±Û²ÃÀ» Æ÷ÇÔÇÑ ¸ðµç ±Û²ÃÀÇ antialias, hinting, hintstyleÀ» ¹Ù²Ù´Â
> ¼³Á¤ÀÔ´Ï´Ù. ÀÌ·¯ÇÑ Àü¿ª ¼³Á¤À» ¿©±â¼­ ÇÏ´Â °ÍÀº ÁÁÀº Á¢±ÙÀÌ ¾Æ´Ï¶ó°í º¸ÀÔ´Ï´Ù. ±×¸®°í antialias ¼³Á¤°ú
> hinting ¼³Á¤Àº ±âº»°ª°ú µ¿ÀÏÇÕ´Ï´Ù. ¹Ýº¹ÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. hintstyleÀÇ °æ¿ì ÀÏ´Ü ±âº» ¼³Á¤À» µû¸£°í ÇѱÛ
> ±Û²Ãµé¿¡ ´ëÇؼ­¸¸ µû·Î Àû¿ëÇÏ´Â °ÍÀÌ ¹Ù¶÷Á÷ÇÏ´Ù°í »ý°¢ÇÕ´Ï´Ù. ±×·¡¼­ ´ÙÀ½ ¼³Á¤À» ¸ðµÎ »èÁ¦Çϴ°ÍÀ» ÃßõÇÕ´Ï´Ù.
>
> <!-- Turn on antialias and hinting with hintmedium -->
> <match target="font" >
>         <edit mode="assign" name="antialias" >
>                 <bool>true</bool>
>         </edit>
> </match>
> <match target="font" >
>         <edit mode="assign" name="hinting" >
>                 <bool>true</bool>
>         </edit>
> </match>
> <match target="font" >
>         <edit mode="assign" name="hintstyle" >
>                 <const>hintmedium</const>
>         </edit>
> </match>
>

±âº»ÀûÀ¸·Î´Â ÈùÆÃÀ» Äѵΰí Çѱ۸¸ ²ø ¼ö ÀÖÀ¸¸é ÁÁÀ» °Í °°½À´Ï´Ù.

±×¸®°í ÈùÆÃÀÌ Áö¿øµÇ´Â ¸¼Àº ±Û²ÃÀº ÄÑµÎ¸é µÉ °Í °°½À´Ï´Ù.


<snip>

> 3) ´ÙÀ½ ¼³Á¤Àº 10Çȼ¿ ÃÊ°ú 22Çȼ¿ ¹Ì¸¸ÀÇ ÇÑ±Û ¿µ¿ªÀ» Æ÷ÇÔÇÑ ±Û²ÃÀ» Ç¥½ÃÇÒ ¶§ antialias, autohint
> ¼³Á¤À» ²ô°í hintstyleÀ» º¯°æÇÏ´Â ³»¿ëÀÔ´Ï´Ù. ÀÌ°ÍÀº ¾Æ¸¶µµ ¿¹Àü¿¡ fontconfig¿¡¼­ embeddedbitmap
> ¼Ó¼ºÀ» Áö¿øÇÏÁö ¾ÊÀ»¶§ ÈçÈ÷µé ÀÚÁÖ »ç¿ëÇÏ´Â ±¼¸², µ¸¿òü¸¦ Á¦´ë·Î º¸À̱â À§Çؼ­ Àû¿ëµÈ ¼³Á¤À¸·Î ÁüÀ۵˴ϴÙ. À©µµ¿ìÁî¿¡
> Æ÷ÇÔµÈ ±¼¸² °°Àº °æ¿ì ÀϺΠũ±â¿¡ ´ëÇؼ­ ºñÆ®¸ÊÀÌ ³»ÀåµÇ¾ú±â ¶§¹®¿¡ ÀÌ·¸°Ô ÇØ¾ß À©µµ¿ìÁî¿Í µ¿ÀÏÇÑ ¸ð¾çÀÇ Ãâ·ÂÀ» ¾òÀ» ¼ö
> ÀÖ¾ú½À´Ï´Ù.
>
> ÇÏÁö¸¸ Áö±ÝÀº embeddedbitmap ¼Ó¼ºÀÌ Áö¿øµÇ°í ±âº»ÀûÀ¸·Î ÄÑÁ® ÀÖ½À´Ï´Ù. ÀÌ Àǹ̴ ºñÆ®¸ÊÀ» ³»ÀåÇÑ ±Û²ÃÀÇ °æ¿ì
> antialias ¼³Á¤°ú »ó°ü¾øÀÌ ³»ÀåµÈ ºñÆ®¸ÊÀÌ ¿ì¼±ÀûÀ¸·Î º¸¿©Áø´Ù´Â °ÍÀÔ´Ï´Ù. ÀÌÁ¦´Â ÀÇ¹Ì ¾ø´Â ¼³Á¤À̶ó°í ¿©°ÜÁö°í ºñÆ®¸Ê
> ¿µ¿ªÀÌ ¾ø´Â ´ëºÎºÐÀÇ Æ®·çŸÀÔ ±Û²Ã ¼³Ä¡½Ã¿¡ º¸±â ¾ÊÁÁÀº Ãâ·ÂÀ» ¾òÀ» ¼ö ¹Û¿¡ ¾ø´Â À§ÇèÇÑ ¼³Á¤À̶ó°í »ý°¢ÇÕ´Ï´Ù.
> autohint ¼Ó¼ºÀÇ °æ¿ì ±âº»°ªÀ¸·Î ²¨Áø »óÅÂÀÔ´Ï´Ù. ÀÌ´Â dpkg-reconfigure fontconfig-confg
> ¸í·ÉÀ¸·Î ÄÓ ¼ö ÀÖ½À´Ï´Ù.
>
> <!-- Turn off antialias and autohint for Korean fonts depending on pixelsize -->
> <match target="font">
>         <test name="lang" compare="contains">
>                 <string>ko</string>
>         </test>
>         <test name="pixelsize" compare="more">
>                 <int>10</int>
>         </test>
>         <test name="pixelsize" compare="less">
>                 <int>22</int>
>         </test>
>         <edit name="antialias" mode="assign">
>                 <bool>false</bool>
>         </edit>
>         <edit name="autohint" mode="assign">
>                 <bool>false</bool>
>         </edit>
>         <edit name="hintstyle" mode="assign">
>                 <const>hintmedium</const>
>         </edit>
> </match>
>
¸¼Àº °íµñÀÇ °æ¿ì¿¡´Â ÈùÆÃÀ» ÄÑ°í aa¸¦ ²¨¾ß À©µµ¿Í ºñ½ÁÇÑ Ç°ÁúÀ» ¾òÀ» ¼ö ÀÖ½À´Ï´Ù.


>

<snip>

> 7) À̰͵µ ¿Ö ÀÌ·¸°Ô Çß´ÂÁö Á¦°¡ Àß ÀÌÇØÇÒ ¼ö ¾ø´Â ³»¿ëÀ̾ú½À´Ï´Ù. ¾Æ¸¶ °ú°ÅÀÇ ¾î¶² ¹ö±×¶§¹®¿¡ ¾î¶² ÀӽùæÆíÀ» »ç¿ëÇÑ
> °ÍÀÎÁö ÃßÃø¸¸ Çغ¼ ¼ö ÀÖ¾ú½À´Ï´Ù. ¾Æ·¡ÂÊ ¼³Á¤ÀÇ ±¸½½ ¸ð³ë´Â À§¿¡¼­ ¾ð±ÞÇß´Ù½ÃÇÇ ¾ø¾îÁø ±Û²Ã ÀÔ´Ï´Ù.
>
> <!-- Bind EunGuseul with Bitstream Vera Sans -->
> <match target="pattern">
>         <test name="family">
>                 <string>Guseul</string>
>         </test>
>         <edit mode="append" binding="strong" name="family">
>                 <string>Bitstream Vera Sans</string>
>         </edit>
> </match>
>
> <!-- Bind EunGuseul Mono with Bitstream Vera Sans Mono -->
> <match target="pattern">
>         <test name="family">
>                 <string>Guseul Mono</string>
>         </test>
>         <edit mode="append" binding="strong" name="family">
>                 <string>Bitstream Vera Sans Mono</string>
>         </edit>
> </match>
>
> °á°úÀûÀ¸·Î °íÁ¤Æø ±Û²Ã ¼³Á¤À» Á¦¿ÜÇϸé ÀüºÎ ¾ø¾îÁ®¾ß ÇÑ´Ù´Â °á·Ð¿¡ À̸£·¶½À´Ï´Ù. ±×¸®°í fontconfig ÆÐÅ°ÁöÀÇ ±âº»°ªÀÎ
> ¹é¹¬ ¹ÙÅÁ°ú ¹é¹¬ µ¸¿òÀ» »ç¿ëÇÏ´Â ¼³Á¤À» Àº¹ÙÅÁ°ú Àºµ¸¿ò, ±¸½½·Î ¹Ù²Ù´Â ¼³Á¤¸¸À» Ãß°¡ ÇÏ´Â °ÍÀÌ ÁÁÀ» °Í °°´Ù´Â°ÍÀÌ Á¦ °á·Ð
> ÀÔ´Ï´Ù.
>

°³ÀÎÀûÀ¸·Î ±¸½½ ¹ÙÀεùÀº »°À¸¸é ÇÕ´Ï´Ù. ÇÑÀÚ ±Û²ÃµéÀÌ Á¤»óÀûÀ¸·Î ¾È¿ÀÁö ¾Ê°í µ¶À½À¸·Î ³ª¿Í¼­  µ¥½ºÅ©Å¾ ¿ëµµ·Î´Â »ó´çÈ÷
³ª»Ú´Ù°í »ý°¢µË´Ï´Ù. (±×·¸°Ô ±Û²ÃÀ» ¸¸µç ÁøÀǸ¦ ÆïÇÏÇÏ·Á´Â °ÍÀº ¾Æ´Õ´Ï´Ù.)