{{{#!html
Emacs ±Û²Ã ¹Ù²Ù±â
}}}
[[TableOfContents]]
----
ÀÌ ±ÛÀº X¿ë Emacs¿¡¼ ¼Õ½±°Ô ±Û²Ã (fontset)À» ¼³Á¤ÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ ¼³¸íÇÕ´Ï´Ù. ¸ÕÀú EmacsChangeColors¸¦ Àаí, ¿øÇÏ´Â »ö»óÀ» ¼³Á¤ÇÏ´Â ¹æ¹ýÀ» º¸½Ã±â¸¦ ÃßõÇÕ´Ï´Ù. ÀÌ ±Û¿¡¼ ¼³¸íÇÏÁö ¾Ê´Â ¼¼¼¼ÇÑ ºÎºÐÀÌ ¼³¸íµÇ¾î Àֱ⠶§¹®ÀÔ´Ï´Ù.
=== X ±Û²Ã ±âº» Áö½Ä°ú ÇÊ¿ä ±Û²Ã ¼³Ä¡ ===
X Window system¿¡¼ emacs´Â X¿¡¼ Á¦°øÇÏ´Â ±Û²ÃÀ» ½á¼ ÅؽºÆ®¸¦ Ç¥½ÃÇÕ´Ï´Ù. ¾Æ½±°Ôµµ? ¾ÆÁ÷Àº Xft¿Í °°Àº È®Àå ¶óÀ̺귯¸®¸¦ Áö¿øÇÏÁö ¾Ê½À´Ï´Ù. ¿©·¯ºÐÀÌ ¾²°í ÀÖ´Â ½Ã½ºÅÛ¿¡¼ ¾î¶² ±Û²ÃÀ» Á¦°øÇÏ´ÂÁö ¾Ë±â À§Çؼ´Â Å©°Ô µÎ °¡Áö À¯Æ¿¸®Æ¼¸¦ ¾µ ¼ö ÀÖ½À´Ï´Ù. Çϳª´Â ±Û²Ã À̸§À» º¸¿©ÁÖ´Â xlsfonts(1)ÀÌ°í, ´Ù¸¥ Çϳª´Â ±Û²ÃÀÇ ´ëüÀûÀÎ ¸ð¾çÀ» ½±°Ô º¼ ¼ö ÀÖ°Ô ÇØ ÁÖ´Â xfontsel(1)ÀÔ´Ï´Ù. (Âü°í·Î µÎ À¯Æ¿¸®Æ¼ ¸ðµÎ X°¡ µ¿ÀÛÇÏ°í ÀÖÀ» ¶§¿¡¸¸ ¾µ ¼ö ÀÖ½À´Ï´Ù.) xlsfonts(1)´Â ls(1) ¸í·É°ú ºñ½ÁÇÏ°Ô ¼³Ä¡µÇ¾î ÀÖ´Â ±Û²ÃÀÇ ¸ñ·ÏÀ» Å͹̳ο¡ Ãâ·ÂÇØ ÁÝ´Ï´Ù. ¸ñ·ÏÀÌ ²Ï ±æ±â ¶§¹®¿¡ º¸Åë more(1)³ª less(1)ÀÇ ÀÔ·ÂÀ¸·Î ÆÄÀÌÇÁ¸¦ Àü´ÞÇؼ º¾´Ï´Ù:
{{{#!vim sh
$ xlsfonts | less
-admas-ethiomx16f-medium-r-normal--0-0-100-100-m-0-ethiopic-unicode
-admas-ethiomx16f-medium-r-normal--16-150-100-100-m-160-ethiopic-unicode
-admas-ethiomx16f-medium-r-normal--24-225-100-100-m-240-ethiopic-unicode
-adobe&cbs&yasuoka-fixed-medium-r-normal--0-0-75-75-c-0-jisx0212.1990-0
...
$ _}}}
xfontsel(1)Àº ±×³ª¸¶? visualÇÏ°Ô ±Û²Ã¿¡ ´ëÇØ ¾Ë¾Æº¼ ¼ö ÀÖ½À´Ï´Ù. »ç¿ë¹ýÀº ½ÇÇàÇÏ°í ³ª¸é ´ëÃæ ¾Ë ¼ö ÀÖ½À´Ï´Ù:
attachment:xfontsel.png
ÀÏ´Ü ¸ÕÀú, X ±Û²ÃÀÌ ¾î¶² ½ÄÀ¸·Î À̸§ÀÌ ºÙ´ÂÁö ¾Ë ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. °¡·É ±Û²Ã À̸§ÀÌ ´ÙÀ½°ú °°´Ù°í °¡Á¤ÇØ º¾½Ã´Ù:
{{{-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1}}}
ÀÌ °æ¿ì, '-'·Î ±¸º°µÇ´Â °¢ Ç׸ñÀ» ´ÙÀ½°ú °°ÀÌ Çؼ®ÇÕ´Ï´Ù:
{{{-MAKER-FAMILY-WEIGHT-SLANT-WIDTHTYPE-STYLE...
...-PIXELS-HEIGHT-HORIZ-VERT-SPACING-WIDTH-REGISTRY-ENCODING}}}
ª°Ô °¢ Ç׸ñÀÇ Àǹ̸¦ ¼³¸íÇϸé:
* MAKER - ±Û²Ã Á¦ÀÛÀÚ
* FAMILY - ±Û²Ã À̸§
* WEIGHT - ±½Àº ±Û²Ã(bold), º¸Åë(normal), °¡´Â ±Û²Ã(light)µîÀÇ ¼Ó¼º
* SLANT - ±â¿ï±â ±âÁ¤. ·Î¸¸(r), ÀÌÅŸ¯(i), ¿Àºí¸®Å©(o) µî
* WIDTHTYPE - ±Û²Ã Æø ŸÀÔ
* STYLE - ½ºÅ¸ÀÏ
* PIXELS - ±Û²Ã Å©±â (Çȼ¿ ´ÜÀ§ÀÇ ³ôÀÌ)
* HEIGHT - ±Û²Ã Å©±â (Æ÷ÀÎÆ® ´ÜÀ§ÀÇ ³ôÀÌ)
* HORIZ - ¼öÆò ÇØ»óµµ
* VERT - ¼öÁ÷ ÇØ»óµµ
* SPACING - °¡º¯ Æø(p)ÀÎÁö °íÁ¤Æø(m)ÀÎÁö µîÀ» ÁöÁ¤.
* WIDTH - Çȼ¿ ´ÜÀ§·Î °¢ ±ÛÀÚÀÇ Æò±Õ Æø
* REGISTRY, ENCODING - character set ÁöÁ¤
ÀÔ´Ï´Ù. ÀϹÝÀûÀ¸·Î ÀÌ ¸ðµç °ÍÀ» ´Ù ¾Ë ÇÊ¿ä´Â ÀüÇô! ¾ø½À´Ï´Ù. ´Ù¸¸ MAKER, FAMILY, WEIGHT, SLANT, PIXELS, REGISTRY Á¤µµ¸¸ ¾Ë°í ¾²¸é µË´Ï´Ù. ½ÃÇè»ï¾Æ xfontsel(1)À» ½ÇÇà½ÃÄѼ ¿©·¯°¡Áö¸¦ ¹Ù²ã°¡¸ç Å×½ºÆ®Çغ¸¸é ´ëÃæ ¾î¶² Àǹ̷Π¾²ÀÌ´ÂÁö ±Ý¹æ ¾Ë ¼ö ÀÖ½À´Ï´Ù.
Emacs¿¡¼ ¿µ¾î¸¸À» ¾´´Ù¸é »ó°ü¾ø°ÚÁö¸¸, ÇѱÛÀ» ºñ·Ô, ¿©·¯ °¡Áö ¾ð¾î¸¦ ¾µ ÇÊ¿ä°¡ ÀÖ´Ù¸é, °¢ ³ª¶óº°·Î °¡Àå ±âº»ÀûÀÎ? ±Û²ÃÀ» ½Ã½ºÅÛ¿¡ ¼³Ä¡ÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù. °¢ ³ª¶óº° ±Û²ÃÀÌ ¾ø´Ù°í °ÆÁ¤ÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ÀÌ ¸ñÀûÀ¸·Î ÀÌ¹Ì ±Û²Ã ÆÐÅ°Áö°¡ ³ª¿Í Àֱ⠶§¹®ÀÔ´Ï´Ù. ¸ÕÀú xfontsel(1)À» ½ÇÇà½ÃÄѼ MAKER¿¡ (xfontsel¿¡¼´Â 'fndry' Ç׸ñ) "etl"ÀÌ ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù. ÀÖÀ¸¸é ¼³Ä¡µÈ °ÍÀ̱⠶§¹®¿¡ ´õ ÀÌ»ó ÀÛ¾÷ÀÌ ÇÊ¿ä¾øÁö¸¸, ¾ø´Ù¸é intlfonts¶ó´Â ÆÐÅ°Áö¸¦ ¼³Ä¡Çϱ⠹ٶø´Ï´Ù ([http://directory.fsf.org/intlfonts.html intlfonts ȨÆäÀÌÁö]).
* Redhat ¶Ç´Â Fedora Core »ç¿ëÀÚ´Â ¼Ò½º¸¦ ¹Þ¾Æ¼ ¼³Ä¡.
* !SuSE »ç¿ëÀÚ´Â intlfonts-bdf-X.Y.Z.noarch.rpm°ú intlfonts-ttf-X.Y.Z.noarch.rpmÀ» ¼³Ä¡.
* Gentoo »ç¿ëÀÚ´Â {{{emerge intlfonts}}} ½ÇÇà.
* Debian »ç¿ëÀÚ´Â {{{apt-get install emacs-intl-fonts}}} ½ÇÇà.
* Slackware »ç¿ëÀÚ´Â ¼Ò½º¸¦ ¹Þ¾Æ¼ ¼³Ä¡.
¼³Ä¡ ÈÄ, emacs¸¦ ½ÇÇà½ÃÄѼ, "C-h h"¸¦ ½ÇÇàÇϸé, °¢ ³ª¶óº°·Î Àλ縻À» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù:
attachment:emacs-hello.png
=== FontsetÀÇ ÀÌÇØ ===
¿©·¯ ³ª¶ó ±Û²ÃÀ» Áö¿øÇϱâ À§ÇØ, Emacs´Â fontsetÀ̶ó´Â X resource¸¦ ¾¹´Ï´Ù. ¹¹ ´ë´ÜÇÑ °ÍÀº ¾Æ´Ï°í, ¿©·¯ ±Û²ÃÀ» Çϳª·Î ¹¾î¼ ¿©·¯ encodingÀ» ó¸®ÇÒ ¼ö ÀÖ°Ô ÇÏ´Â °ÍÀÔ´Ï´Ù.
¿©·¯ºÐÀÌ Æ¯º°È÷ ÁöÁ¤ÇÏÁö ¾Ê´õ¶óµµ, emacs´Â ±âº»ÀûÀ¸·Î µÎ °³ÀÇ fontsetÀ» °¡Áö°í ÀÖ½À´Ï´Ù. Çϳª´Â ¿©·¯ºÐÀÌ emacs¸¦ ½ÇÇàÇßÀ» ¶§ ±âº»ÀûÀ¸·Î ¾²¿©Áö´Â startup fontsetÀÌ°í, Çϳª´Â ¿©·¯ ¾ð¾î¸¦ µ¿½Ã¿¡ ¾µ ¼ö ÀÖµµ·Ï ¸¸µé¾îÁø standard fontsetÀÔ´Ï´Ù. ±âº»ÀûÀ¸·Î emacs´Â startup fontsetÀ» ½á¼ ½ÇÇàµÇ°Ô µÇ¾î ÀÖÁö¸¸, standard fontsetÀ» ¾²°Ô ÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÏ¸é µË´Ï´Ù:
{{{#!vim sh
$ emacs -fn fontset-standard
}}}
Startup fontsetÀ» ¾´ emacsÀÇ screenshotÀº ´ÙÀ½°ú °°½À´Ï´Ù:
http://wiki.kldp.org/pds/EmacsChangeColors/emacs-splash-colors.png
Standard fontsetÀ» ¾´ emacsÀÇ screenshotÀº ´ÙÀ½°ú °°½À´Ï´Ù:
attachment:emacs-standard-fontset.png
µû·Î ¿©·¯ºÐÀÌ Á÷Á¢ ±Û²ÃÀ» ¹Ù²Ù±â À§Çؼ´Â fontsetÀ» Á÷Á¢ ¸¸µé¾î ÁÖ¾î¾ß ÇÕ´Ï´Ù. FontsetÀº ´ë°³ X server resourceÀÇ ÇüÅ·ΠÁ¤ÀÇÇϸç, ´ë°³ $HOME/.Xdefaults¿¡ ±â·ÏµË´Ï´Ù. (DebianÀÇ °æ¿ì¿¡´Â $HOME/.Xresources¿¡ ±â·ÏÇÑÈÄ¿¡ "xrdb -merge ~/.Xresources"¸¦ ½ÇÇà½ÃÄÑÁÖ¸é µË´Ï´Ù.) ÀÚ¼¼ÇÑ °ÍÀº EmacsChangeColors¸¦ Âü°íÇϱ⠹ٶø´Ï´Ù.) FontsetÀº ´ÙÀ½°ú °°Àº ²Ã·Î Á¤ÀÇÇÕ´Ï´Ù:
{{{
FONTPATTERN, [CHARSETNAME:FONTNAME]...
}}}
ÀÏ´Ü, fontsetÀÇ À̸§À» Áö¾î¾ß ÇÕ´Ï´Ù. º¸Åë fontset¿¡ ¾²ÀÌ´Â °¡Àå ÀϹÝÀûÀÎ ±Û²ÃÀÇ À̸§À» ¾²´Âµ¥, À̸§ÀÇ ¸¶Áö¸· µÎ °³ÀÇ Ç׸ñ, Áï ¾Õ Àå¿¡¼ ¼³¸íÇÑ REGISTRY¿Í ENCODINGÀ» »©°í, REGISTRY ÀÚ¸®¿¡ "fontset"À», ENCODING ÀÚ¸®¿¡ ÀÌ fontsetÀ» ´ëÇ¥Çϴ ªÀº À̸§À» ¾¹´Ï´Ù. (Àß ÀÌÇØ°¡ µÇÁö ¾ÊÀ¸¸é, Á¶±Ý µÚ¿¡ ³ª¿À´Â ¿¹¸¦ Âü°íÇϱ⠹ٶø´Ï´Ù.)
±× ´ÙÀ½¿¡´Â ¾µ character set À̸§, ":", ±Û²Ã À̸§ ¼øÀ¸·Î Â÷·Ê·Î ³ª¿ÇÕ´Ï´Ù. ÀÌ °ÍÀ» ¸ðµÎ ÇÑ ÁÙ¿¡ ¾²±â Èûµé±â ¶§¹®¿¡ º¸Åë ¹é½½·¡½Ã ¹®ÀÚ¸¦ ½á¼ ´ÙÀ½ ÁÙ·Î À̾´Ï´Ù. ¿¹¸¦ µé¸é ´ÙÀ½°ú °°½À´Ï´Ù:
{{{#!vim xdefaults
! My favorite emacs fontset.
Emacs.Fontset-0:-*-lucidatypewriter-*-*-*-*-14-*-*-*-*-*-fontset-lucida14,\
ascii:-*-lucidatypewriter-*-*-*-*-14-*-*-*-*-*-*-1, \
korean-ksc5601:-*-gulimche-*-*-*-*-14-*-*-*-*-180-ksc5601*-*
}}}
À§´Â fontsetÀº À̸§ÀÌ "lucida14"ÀÌ°í, ASCII character-setÀ» ¾´ ¹®ÀÚ´Â "-*-lucidatypewriter-*-*-*-*-14-*-*-*-*-*-*-1" ±Û²ÃÀ» ½á¼ Ç¥½ÃÇϸç, korean-ksc5601 character-setÀ» ¾´ ¹®ÀÚ(Áï ÇѱÛ)´Â "-*-gulimche-*-*-*-*-14-*-*-*-*-180-ksc5601*-*" ±Û²ÃÀ» ½á¼ Ç¥½ÃÇÕ´Ï´Ù.
ÁÖÀÇÇÒ °ÍÀº, ±Û²ÃÀ» À§¿Í °°ÀÌ ÁöÁ¤Çϱâ Àü¿¡ ¹Ýµå½Ã xfontsel(1)°ú °°Àº À¯Æ¿¸®Æ¼¸¦ ½á¼, ÇØ´çÇÏ´Â ±Û²ÃÀÌ ¾µ ¼ö ÀÖ´Â À̸§ÀÎÁö È®ÀÎÀ» ÇØ¾ß ÇÕ´Ï´Ù. À߸øµÈ ±Û²Ã À̸§À» ¾´ °æ¿ì, ´ÙÀ½¿¡ emacs¸¦ ½ÇÇàÇÒ ¶§, Á¦´ë·Î ½ÇÇàµÇÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù.
À§¸¦ ÀúÀåÇÏ°í emacs¸¦ ´Ù½Ã ½ÇÇàÇصµ ±Û²ÃÀÌ ¹Ù²îÁö´Â ¾Ê½À´Ï´Ù. emacs â °¡¿îµ¥ Âë, ¸¶¿ì½º Æ÷ÀÎÅ͸¦ À§Ä¡½ÃÅ°°í, shift Å°¸¦ ´©¸¥ »óÅ¿¡¼ ¸¶¿ì½º ¿ÞÂÊ ¹öÆ°À» ´©¸£¸é, ±Û²ÃÀ» ¼±ÅÃÇÒ ¼ö Àִ ȸéÀÌ ³ª¿À°í, ¿©±â¿¡¼ ¿ì¸®°¡ ¸¸µç fontsetÀÎ "lucida14"°¡ ÀÖ´Â °ÍÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.
attachment:emacs-sel-fontset.png
ÀÌ°ÍÀ» ¼±ÅÃÇÏ°í ³ª¸é, ºñ·Î¼Ò! ±Û²ÃÀÌ ¹Ù²ò´Ï´Ù. ¾Æ·¡´Â ÀÌ »óÅ¿¡¼ M-x display-splash-screenÀ» ½ÇÇàÇÑ »óÅÂÀÇ screenshotÀÔ´Ï´Ù.
attachment:emacs-fontset-lucida14.png
¹°·Ð ¸Å¹ø ÀÌ·± ½ÄÀ¸·Î ±Û²ÃÀ» ¹Ù²ã ÁÖ±â¶õ ±ÍÂúÀº ÀÏÀÔ´Ï´Ù. ¾Æ±î .Xdefaults¿¡ ±â·ÏÇÒ ¶§, ¾Æ·¡ ÁÙÀ» Ãß°¡ÇØÁÖ¸é, emacs°¡ ½ÃÀÛÇÒ ¶§ ÀÚµ¿À¸·Î ÁöÁ¤ÇÑ fontsetÀ» ¾²°Ô ÇÕ´Ï´Ù:
{{{#!vim xdefaults
! Set the default fontset of emacs
Emacs.Font: fontset-lucida14
}}}
=== ¿©·¯ °³ Fontset Á¤ÀÇ ===
´«Ä¡°¡ ºü¸¥ ºÐÀº ÀÌ¹Ì ¾Æ½Ã°ÚÁö¸¸, ¿©·¯ °³ÀÇ fontsetÀ» Á¤ÀÇÇÏ´Â °Íµµ °£´ÜÇÕ´Ï´Ù. ¾Õ¿¡¼ fontsetÀ» Á¤ÀÇÇÒ ¶§ Emacs.Fontset-0À̶ó°í ¾´ °ÍÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù. µÎ¹ø° fontsetÀ» Á¤ÀÇÇÒ ¶§¿¡´Â Emacs.Fontset-1À», ¼¼¹ø°´Â Emacs.Fontset-2¸¦ ¾²½Ã¸é, ¿©·¯ °³ÀÇ fontsetÀ» ¸¸µé ¼ö ÀÖ½À´Ï´Ù.
=== Fontset Á¤ÀÇ ¿¹Á¦ ===
¾Æ·¡´Â Á¦ gentoo ½Ã½ºÅÛÀÇ emacs fontset¿¡ ´ëÇÑ Á¤º¸ÀÔ´Ï´Ù. Âü°íÇϽñ⸦ ¹Ù¶ø´Ï´Ù:
{{{#!vim xdefaults
Emacs.Fontset-0:-*-lucidatypewriter-*-*-*-*-14-*-*-*-*-*-fontset-lucida14,\
ascii:-*-lucidatypewriter-*-*-*-*-14-*-*-*-*-*-*-1, \
korean-ksc5601:-*-gulim-bold-*-*-*-14-*-*-*-*-140-ksx1001.1998-*
Emacs.Fontset-1:-etl-fixed-medium-r-normal-*-14-*-*-*-*-*-fontset-etl14,\
ascii:-etl-fixed-medium-r-normal-*-14-*-iso8859-1,\
korean-ksc5601:-*-gulim-medium-r-normal-*-14-*-ksx1001.1998-*
Emacs.Fontset-2:-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-etl16,\
ascii:-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-*-1, \
korean-ksc5601:-*-gulim-medium-r-normal-*-16-*-*-*-*-*-ksx1001.1998-*
Emacs.Fontset-3:-etl-*-medium-r-normal-*-18-*-*-*-*-*-fontset-etl18,\
ascii:-etl-*-medium-r-normal-*-18-*-*-*-*-*-*-1, \
korean-ksc5601:-*-gulim-medium-r-normal-*-18-*-*-*-*-*-ksx1001.1998-*
Emacs.Fontset-4:-etl-*-medium-r-normal-*-24-*-*-*-*-*-fontset-etl24,\
ascii:-etl-*-medium-r-normal-*-24-*-*-*-*-*-*-1, \
korean-ksc5601:-*-gulim-medium-r-normal-*-24-*-*-*-*-*-ksx1001.1998-*
Emacs.Fontset-5:-*-lucidatypewriter-*-*-*-*-18-*-*-*-*-*-fontset-lucida18,\
ascii:-*-lucidatypewriter-*-*-*-*-18-*-*-*-*-*-*-1, \
korean-ksc5601:-*-gulim-bold-*-*-*-18-*-*-*-*-*-ksx1001*-*
Emacs.Fontset-6:-*-fixed-bold-*-*-*-14-*-*-*-*-*-fontset-fixed14,\
ascii:-*-fixed-bold-*-*-*-14-*-*-*-*-*-iso8859*-*,\
korean-ksc5601:-*-gulim-*-*-*-*-*-*-*-*-*-*-ksc5601*-*
Emacs.Font: fontset-lucida14
}}}
Á¦ ½Ã½ºÅÛ¿¡¼ À§¿¡¼ ¼³Á¤ÇÑ °¢°¢ÀÇ fontsetÀ» ¾´ screenshotÀº ´ÙÀ½°ú °°½À´Ï´Ù.
==== lucida14 ====
attachment:emacs-lucida14.png
==== lucida18 ====
attachment:emacs-lucida18.png
==== etl14 ====
attachment:emacs-etl14.png
==== etl16 ====
attachment:emacs-etl16.png
==== etl18 ====
attachment:emacs-etl18.png
==== etl24 ====
attachment:emacs-etl24.png
=== Emacs 23¹öÁ¯¿¡¼ÀÇ ±Û²Ã ¼³Á¤ ===
'''{{{#ff0000 ÁÖÀÇ!!! Emacs Version 23Àº ÇöÀç CVS °³¹ß ¹öÀüÀ̱⠶§¹®¿¡, ¾Æ·¡ ¹æ¹ýÀÌ µ¿ÀÛÇÒ ¼öµµ, ÇÏÁö ¾ÊÀ» ¼öµµ ÀÖÀ¸¸ç, ÃÖÁ¾ÀûÀ¸·Î ¾Æ·¡ ¹æ½Äº¸´Ù ´õ ÁÁÀº ¹æ½ÄÀÌ ³ª¿Ã ¼öµµ ÀÖ½À´Ï´Ù.}}}'''
ÇöÀç °³¹ß ¹öÀüÀÎ Emacs 23.x¿¡´Â Xft¸¦ ½á¼ Truetype font¸¦ ¾µ ¼ö ÀÖ´Â ±â´ÉÀÌ µé¾î ÀÖ½À´Ï´Ù. ¸¹Àº ºÐµéÀÌ º¸±â ÁÁÀº ÆùÆ®¸¦ ¾²´Â °ÍÀ» Èñ¸ÁÇϱ⠶§¹®¿¡, ¾ÆÁ÷ ¾ÈÁ¤µÇÁö ¾Ê¾ÒÁö¸¸ Emacs 23.x¸¦ ¾²´Â ºÐµéÀÌ ¸¹½À´Ï´Ù. ¿©±â¿¡´Â °£´ÜÇÏ°Ô Truetype fontµéÀ» ¼³Á¤ÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ ´Ù·ç°Ú½À´Ï´Ù.
Ãʺ¸ÀÚ¶ó¸é, Emacs¸¦ ½ÃÀÛÇÑ ´ÙÀ½, {{{[Option]->[Set Default Font...]}}}¿¡¼ ÆùÆ®¸¦ ¼³Á¤ÇÏ°í, {{{[Option]->[Save Options]}}}¸¦ ´·¯¼ »óŸ¦ ÀúÀåÇÏ¸é µË´Ï´Ù.
Á¶±Ý °í±Þ »ç¿ëÀÚ¶ó¸é µÎ °¡Áö ¹æ¹ýÀ» ¾µ ¼ö Àִµ¥, Çϳª´Â X resource¿¡¼ ÆùÆ®¸¦ ¼³Á¤ÇÏ´Â °ÍÀÌ°í, ´Ù¸¥ Çϳª´Â lisp Äڵ忡¼ ¼³Á¤ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. (²À TruetypeÀ̶󼰡 ¾Æ´Ï¶ó ±âÁ¸ ÆùÆ®µµ µÎ ¹æ½Ä ¸ðµÎ ¾µ ¼ö ÀÖ½À´Ï´Ù.)
==== Xft X Resource Setting ====
X resource¿¡¼ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº ±âÁ¸ bitmap font¿Í °°½À´Ï´Ù. ´Ù¸¸ FAMILY À̸§¸¸ truetype font·Î ¹Ù²ãÁÖ¸é µË´Ï´Ù.
(±×³É Emacs.Font¸¦ ¾²Áö ¾Ê°í Emacs.FontsetÀ» ¾²´Â ÀÌÀ¯´Â, º¸Åë ¿µ¹® ÆùÆ®¿Í ÇÑ±Û ÆùÆ®¸¦ ¹¾î¼ ¾²±â ¶§¹®ÀÔ´Ï´Ù.
¿ø·¡ fontconfig ¼³Á¤¿¡ µû¶ó ´ëü ÆùÆ®¸¦ °í¸£´Â °ÍÀÌ Á¤¼®À̳ª, Emacs´Â fontconfig ÀÌÀüºÎÅÍ ÀÌ·± ±â´ÉÀ» Á¦°øÇϱ⠶§¹®¿¡, ¼³Á¤ ÀÚü°¡ Ãæµ¹ÇÏ´Â °ÍÀÌ Çö½ÇÀÔ´Ï´Ù. ¸¸¾à »ç¿ëÀÚÀÇ fontconfig ¼³Á¤ÀÌ ÀÌ¹Ì Àß µÇ¾î ÀÖ´Ù¸é, ±»ÀÌ EmacsÀÇ fontset ±â´ÉÀ» ¾²Áö ¾Ê°í, ´Ü¼øÈ÷ Emacs.Font¸¸ ½á ÁÖ´Â °ÍÀ¸·Îµµ °¡´ÉÇÒ °ÍÀÔ´Ï´Ù.)
{{{#!vim xdefaults
Emacs.Fontset-0:-*-Bitstream Vera Sans Mono-*-*-*-*-14-*-*-*-*-*-fontset-vera14,\
latin:-*-Bitstream Vera Sans Mono-*-*-*-*-14-*-*-*-*-*-*-*, \
hangul:-*-NanumGothic_Coding-*-*-*-*-*-*-*-*-*-*-*-*
Emacs.Fontset-1:-*-DejaVu Sans Mono-*-*-*-*-14-*-*-*-*-*-fontset-dejavu14,\
latin:-*-DejaVu Sans Mono-*-*-*-*-14-*-*-*-*-*-*-*, \
hangul:-*-NanumGothic_Coding-*-*-*-*-*-*-*-*-*-*-*-*
Emacs*Fontset-2:-*-Consolas-*-*-*-*-14-*-*-*-*-*-fontset-consolas,\
latin:-*-Consolas-*-*-*-*-14-*-*-*-*-*-*,\
hangul:-*-NanumGothic_Coding-*-*-*-*-*-*-*-*-*-*-*
Emacs*Fontset-3:-*-Monaco-*-*-*-*-14-*-*-*-*-*-fontset-monaco,\
latin:-*-Monaco-*-*-*-*-14-*-*-*-*-*-*,\
hangul:-*-NanumGothic_Coding-*-*-*-*-*-*-*-*-*-*-*
Emacs.Font: fontset-vera14
}}}
ÀÌ ¹æ½ÄÀº (±âÁ¸ emacs version¿¡¼µµ ¸¶Âù°¡Áö) ¿©·¯ °³ÀÇ ÆùÆ®¼ÂÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ°í, ¶Ç shift + left mouse button clickÀ¸·Î ¸Þ´º¸¦ ¶ç¿ö¼ Á¢±ÙÇÒ ¼ö ÀÖ´Ù´Â ÀåÁ¡ÀÌ ÀÖ½À´Ï´Ù.
´Ù¸¸, ´ÜÁ¡À¸·Î, ±âÁ¸ emacs¿Í emacs-23À» º´ÇàÇÏ´Â °æ¿ì, ±âÁ¸ emacs (version 22 ÀÌÇÏ)¿¡¼ true type ÆùÆ®¸¦ ÀÌÇØÇÒ ¼ö ¾ø±â ¶§¹®¿¡, ´ÙÀ½°ú °°ÀÌ ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù:
{{{#!vim sh
$ emacs-22
No fonts match `-*-bitstream vera sans mono-*-*-*-*-14-*-*-*-*-*-*'
$ _
}}}
==== Xft Lisp Setting ====
ÀÌ ¹æ½ÄÀº, X resource¸¦ È°¿ëÇÏÁö ¾Ê°í, Á÷Á¢ lisp ÄÚµå·Î font¸¦ ÁöÁ¤ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. (Áï .emacs¿¡ ½á ÁÜ) ÀåÁ¡À¸·Î´Â Emacs version¿¡ µû¶ó ÆùÆ®¸¦ µû·Î ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù´Â °ÍÀ̸ç, ´ÜÁ¡À¸·Ð ¿©·¯ °³ÀÇ ÆùÆ®¸¦ ¼Õ½±°Ô ¹Ù²ãÁÙ ¼ö ÀÖ´Â ±â´É(shift + left mouse click)À» ¾µ ¼ö ¾ø´Ù´Â °ÍÀÔ´Ï´Ù.
¹°·Ð lisp Äڵ带 ´õ Ãß°¡Çϸé shift + left mouse click ¸Þ´º¿¡µµ µî·ÏÇÒ ¼ö ÀÖÁö¸¸, ÇÊ¿äÇÑ ¼³¸íÀÌ ³Ê¹« ¸¹¾Æ¼ »ý·«~
µû¶ó¼ ¾Æ·¡¿Í °°ÀÌ lisp Äڵ忡¼ xftp ÇÔ¼ö·Î Emacs¿¡ xft ±â´ÉÀÌ ÀÖ´ÂÁö È®ÀÎÇÏ´Â ÇÔ¼ö¸¦ ¸¸µé¾ú½À´Ï´Ù:
{{{#!vim lisp
(defun xftp (&optional frame)
"Return t if FRAME support XFT font backend."
(let ((xft-supported))
(mapc (lambda (x) (if (eq x 'xft) (setq xft-supported t)))
(frame-parameter frame 'font-backend))
xft-supported))
}}}
±×¸®°í ³ª¼ ¾Æ·¡¿Í °°ÀÌ ÆùÆ® ¼³Á¤À» ÇÕ´Ï´Ù:
{{{#!vim lisp
(when (xftp)
(let ((fontset "fontset-default"))
(set-fontset-font fontset 'latin
'("DejaVu Sans Mono" . "unicode-bmp"))
(set-fontset-font fontset 'hangul
'("NanumGothic_Coding" . "unicode-bmp"))
(set-face-attribute 'default nil
:font fontset
:height 110)))
}}}
==== Screenshots ====
µÎ ½ºÅ©¸° ¼¦ ¸ðµÎ EmacsColorTheme ÆÐÅ°Áö¿¡¼ Á¦°øÇÏ´Â (color-theme-robin-hood)¸¦ »ç¿ëÇßÀ¸¸ç, ¾Õ X Resource Setting ¹æ¹ýÀ» ½á¼ ¼³Á¤ÇÑ È¸éÀÔ´Ï´Ù.
Bitstream Vera Sans Mono + ³ª´®°íµñ_ÄÚµù:
attachment:emacs-xft-vera_1.png
DejaVu Sans Mono + ³ª´®°íµñ_ÄÚµù:
attachment:emacs-xft-dejavu_1.png
Consolas + ³ª´®°íµñ_ÄÚµù:
attachment:emacs-xft-consola.png
Monaco + ³ª´®°íµñ_ÄÚµù:
attachment:emacs-xft-monaco.png
==== X Resource ±âŸ ====
¾î¶² ºÐÀÌ ¾Æ·¡¿Í °°Àº ³»¿ëÀ» ¿Ã·Á Á̴ּµ¥, ¼³¸íÀ» ¾ÈÇϼ̳׿ä.. ÀÌ ºÎºÐÀº Á¦°¡ Ưº°È÷ ¼³¸íµå¸± ´É·ÂÀÌ ¾ÈµÇ´Â±º¿ä. ÇöÀç, °³¹ß ¹öÀü EmacsÀÇ °æ¿ì XftÀÇ ¼³Á¤À» system-wide¿¡¼ Àоî¿ÀÁö ¾Ê°í X resource¿¡¼ Àоî¿Â´Ù°í Çϴµ¥ Á¤È®È÷ È®ÀÎÇغ¸Áö´Â ¾Ê¾Ò½À´Ï´Ù. Âü°í»ï¾Æ ³²°Ü µÓ´Ï´Ù.
{{{#!vim sh
Emacs.font: ±¼¸²Ã¼-13
Emacs.FontBackend: xft
Xft.dpi: 96
Xft.antialias: 0
Xft.hinting: 0
Xft.hintstyle: hintfull
Xft.rgba:rgb
}}}
³¡. B) -- [http://www.cinsk.org/ ½Å¼º±¹]
----
* {{{#ff0000 TODO}}} Á» ´õ ÀÚ¼¼È÷ ½á¾ß Çϳª??
----
À©µµ¿ì¿¡¼ÀÇ ¼³Á¤µµ ´Ù·ç¾î ÁÖ½É °¨»çÇÏ°Ú½À´Ï´Ù. ƯÈ÷ UTF-8·Î ....
°¡º¯ ±Û²ÃÀÌ ³ª¿À´Â ¹æ¹ýÀÌ ¾øÀ» ±î¿ä info¸¦ º¸¸é ¿µ¹®Àº Å©°í ÁøÇÏ°Ô ³ª¿À´Âµ¥ ÇѱÛÀº ¾ÈµÇ´Â ±º¿ä.
--[HoSungKim] [[Date(2006-05-02T05:49:30)]]
=> Á˼ÛÇÕ´Ï´Ù. :( Á¦°¡ Windows¿¡¼´Â Emacs¸¦ ¾²Áö ¾Ê¾Æ¼.. Àß ¸ð¸£°Ú±º¿ä. [http://www.cinsk.org/ ½Å¼º±¹]
----
andale mono³ª courier new¿Í °°ÀÌ Áß°£ÀÌ ¶ç¾î¾²±â°¡ ÀÖ´Â ±Û²ÃÀÇ °æ¿ì¿¡´Â ¾î¶»°Ô ÇÏ´ÂÁö ±Ã±ÝÇÕ´Ï´Ù. ¿©·¯°¡Áö ½ÃµµÇغ¸¾Ò´Âµ¥ ¾ÈµÇ³×¿ä. (À§Å°, ¾ÆÁ÷ Àͼ÷Ä¡ ¾Ê½À´Ï´Ù) --[Amunsen] [06-12-14]
=> Áß°£¿¡ ¶ç¾î¾²±â°¡ À־ »ó°ü¾ø½À´Ï´Ù. ±×´ë·Î ¶ç¾î¾²¸é µË´Ï´Ù. [http://www.cinsk.org/ ½Å¼º±¹]
----
----
ÁÁÀº ³»¿ë °¨»çÇÕ´Ï´Ù. ±×¸²ÀÇ emacs´Â ¸Þ´º°¡ ¾ÆÁÖ ¿¹»Û ±Û¾¾·Î ³ª¿À´Â±º¿ä. ¾î¶² ÀÌÀ¯ÀÎÁö ±Ã±ÝÇÕ´Ï´Ù. Ȥ½Ã xft branch¸¦ »ç¿ëÇϼ̴ÂÁö¿ä? --[Oppor] [07-01-19]
=> ¾Æ´Ï¿ä, Áú¹®ÇϼÌÀ»¶§ ±×¸²ÀÇ emacs´Â ¸ðµÎ bitmap ±Û²ÃÀÔ´Ï´Ù. [http://www.cinsk.org/ ½Å¼º±¹]
----
CategoryEmacs
----
CategoryEmacs