Emacs Change Fonts
Emacs ±Û²Ã ¹Ù²Ù±â
ÀÌ ±ÛÀº X¿ë Emacs¿¡¼ ¼Õ½±°Ô ±Û²Ã (fontset)À» ¼³Á¤ÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ ¼³¸íÇÕ´Ï´Ù. ¸ÕÀú EmacsChangeColors¸¦ Àаí, ¿øÇÏ´Â »ö»óÀ» ¼³Á¤ÇÏ´Â ¹æ¹ýÀ» º¸½Ã±â¸¦ ÃßõÇÕ´Ï´Ù. ÀÌ ±Û¿¡¼ ¼³¸íÇÏÁö ¾Ê´Â ¼¼¼¼ÇÑ ºÎºÐÀÌ ¼³¸íµÇ¾î Àֱ⠶§¹®ÀÔ´Ï´Ù.
1. X ±Û²Ã ±âº» Áö½Ä°ú ÇÊ¿ä ±Û²Ã ¼³Ä¡ ¶X Window system¿¡¼ emacs´Â X¿¡¼ Á¦°øÇÏ´Â ±Û²ÃÀ» ½á¼ ÅؽºÆ®¸¦ Ç¥½ÃÇÕ´Ï´Ù. ¾Æ½±°Ôµµ? ¾ÆÁ÷Àº Xft¿Í °°Àº È®Àå ¶óÀ̺귯¸®¸¦ Áö¿øÇÏÁö ¾Ê½À´Ï´Ù. ¿©·¯ºÐÀÌ ¾²°í ÀÖ´Â ½Ã½ºÅÛ¿¡¼ ¾î¶² ±Û²ÃÀ» Á¦°øÇÏ´ÂÁö ¾Ë±â À§Çؼ´Â Å©°Ô µÎ °¡Áö À¯Æ¿¸®Æ¼¸¦ ¾µ ¼ö ÀÖ½À´Ï´Ù. Çϳª´Â ±Û²Ã À̸§À» º¸¿©ÁÖ´Â xlsfonts(1)ÀÌ°í, ´Ù¸¥ Çϳª´Â ±Û²ÃÀÇ ´ëüÀûÀÎ ¸ð¾çÀ» ½±°Ô º¼ ¼ö ÀÖ°Ô ÇØ ÁÖ´Â xfontsel(1)ÀÔ´Ï´Ù. (Âü°í·Î µÎ À¯Æ¿¸®Æ¼ ¸ðµÎ X°¡ µ¿ÀÛÇÏ°í ÀÖÀ» ¶§¿¡¸¸ ¾µ ¼ö ÀÖ½À´Ï´Ù.) xlsfonts(1)´Â ls(1) ¸í·É°ú ºñ½ÁÇÏ°Ô ¼³Ä¡µÇ¾î ÀÖ´Â ±Û²ÃÀÇ ¸ñ·ÏÀ» Å͹̳ο¡ Ãâ·ÂÇØ ÁÝ´Ï´Ù. ¸ñ·ÏÀÌ ²Ï ±æ±â ¶§¹®¿¡ º¸Åë more(1)³ª less(1)ÀÇ ÀÔ·ÂÀ¸·Î ÆÄÀÌÇÁ¸¦ Àü´ÞÇؼ º¾´Ï´Ù:
$ 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ÇÏ°Ô ±Û²Ã¿¡ ´ëÇØ ¾Ë¾Æº¼ ¼ö ÀÖ½À´Ï´Ù. »ç¿ë¹ýÀº ½ÇÇàÇÏ°í ³ª¸é ´ëÃæ ¾Ë ¼ö ÀÖ½À´Ï´Ù:
[PNG image (8.32 KB)] ÀÏ´Ü ¸ÕÀú, X ±Û²ÃÀÌ ¾î¶² ½ÄÀ¸·Î À̸§ÀÌ ºÙ´ÂÁö ¾Ë ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. °¡·É ±Û²Ã À̸§ÀÌ ´ÙÀ½°ú °°´Ù°í °¡Á¤ÇØ º¾½Ã´Ù:
-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1
ÀÌ °æ¿ì, '-'·Î ±¸º°µÇ´Â °¢ Ç׸ñÀ» ´ÙÀ½°ú °°ÀÌ Çؼ®ÇÕ´Ï´Ù:
-MAKER-FAMILY-WEIGHT-SLANT-WIDTHTYPE-STYLE... ...-PIXELS-HEIGHT-HORIZ-VERT-SPACING-WIDTH-REGISTRY-ENCODINGª°Ô °¢ Ç׸ñÀÇ Àǹ̸¦ ¼³¸íÇϸé:
Emacs¿¡¼ ¿µ¾î¸¸À» ¾´´Ù¸é »ó°ü¾ø°ÚÁö¸¸, ÇѱÛÀ» ºñ·Ô, ¿©·¯ °¡Áö ¾ð¾î¸¦ ¾µ ÇÊ¿ä°¡ ÀÖ´Ù¸é, °¢ ³ª¶óº°·Î °¡Àå ±âº»ÀûÀÎ? ±Û²ÃÀ» ½Ã½ºÅÛ¿¡ ¼³Ä¡ÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù. °¢ ³ª¶óº° ±Û²ÃÀÌ ¾ø´Ù°í °ÆÁ¤ÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ÀÌ ¸ñÀûÀ¸·Î ÀÌ¹Ì ±Û²Ã ÆÐÅ°Áö°¡ ³ª¿Í Àֱ⠶§¹®ÀÔ´Ï´Ù. ¸ÕÀú xfontsel(1)À» ½ÇÇà½ÃÄѼ MAKER¿¡ (xfontsel¿¡¼´Â 'fndry' Ç׸ñ) "etl"ÀÌ ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù. ÀÖÀ¸¸é ¼³Ä¡µÈ °ÍÀ̱⠶§¹®¿¡ ´õ ÀÌ»ó ÀÛ¾÷ÀÌ ÇÊ¿ä¾øÁö¸¸, ¾ø´Ù¸é intlfonts¶ó´Â ÆÐÅ°Áö¸¦ ¼³Ä¡Çϱ⠹ٶø´Ï´Ù (intlfonts ȨÆäÀÌÁö).
[PNG image (33.3 KB)] 2. FontsetÀÇ ÀÌÇØ ¶¿©·¯ ³ª¶ó ±Û²ÃÀ» Áö¿øÇϱâ À§ÇØ, Emacs´Â fontsetÀ̶ó´Â X resource¸¦ ¾¹´Ï´Ù. ¹¹ ´ë´ÜÇÑ °ÍÀº ¾Æ´Ï°í, ¿©·¯ ±Û²ÃÀ» Çϳª·Î ¹¾î¼ ¿©·¯ encodingÀ» ó¸®ÇÒ ¼ö ÀÖ°Ô ÇÏ´Â °ÍÀÔ´Ï´Ù.
¿©·¯ºÐÀÌ Æ¯º°È÷ ÁöÁ¤ÇÏÁö ¾Ê´õ¶óµµ, emacs´Â ±âº»ÀûÀ¸·Î µÎ °³ÀÇ fontsetÀ» °¡Áö°í ÀÖ½À´Ï´Ù. Çϳª´Â ¿©·¯ºÐÀÌ emacs¸¦ ½ÇÇàÇßÀ» ¶§ ±âº»ÀûÀ¸·Î ¾²¿©Áö´Â startup fontsetÀÌ°í, Çϳª´Â ¿©·¯ ¾ð¾î¸¦ µ¿½Ã¿¡ ¾µ ¼ö ÀÖµµ·Ï ¸¸µé¾îÁø standard fontsetÀÔ´Ï´Ù. ±âº»ÀûÀ¸·Î emacs´Â startup fontsetÀ» ½á¼ ½ÇÇàµÇ°Ô µÇ¾î ÀÖÁö¸¸, standard fontsetÀ» ¾²°Ô ÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÏ¸é µË´Ï´Ù:
$ emacs -fn fontset-standard
Startup fontsetÀ» ¾´ emacsÀÇ screenshotÀº ´ÙÀ½°ú °°½À´Ï´Ù:
Standard fontsetÀ» ¾´ emacsÀÇ screenshotÀº ´ÙÀ½°ú °°½À´Ï´Ù:
[PNG image (36.08 KB)] µû·Î ¿©·¯ºÐÀÌ Á÷Á¢ ±Û²ÃÀ» ¹Ù²Ù±â À§Çؼ´Â 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 À̸§, ":", ±Û²Ã À̸§ ¼øÀ¸·Î Â÷·Ê·Î ³ª¿ÇÕ´Ï´Ù. ÀÌ °ÍÀ» ¸ðµÎ ÇÑ ÁÙ¿¡ ¾²±â Èûµé±â ¶§¹®¿¡ º¸Åë ¹é½½·¡½Ã ¹®ÀÚ¸¦ ½á¼ ´ÙÀ½ ÁÙ·Î À̾´Ï´Ù. ¿¹¸¦ µé¸é ´ÙÀ½°ú °°½À´Ï´Ù:
! 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"°¡ ÀÖ´Â °ÍÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.
[PNG image (21.39 KB)] ÀÌ°ÍÀ» ¼±ÅÃÇÏ°í ³ª¸é, ºñ·Î¼Ò! ±Û²ÃÀÌ ¹Ù²ò´Ï´Ù. ¾Æ·¡´Â ÀÌ »óÅ¿¡¼ M-x display-splash-screenÀ» ½ÇÇàÇÑ »óÅÂÀÇ screenshotÀÔ´Ï´Ù.
[PNG image (36.16 KB)] ¹°·Ð ¸Å¹ø ÀÌ·± ½ÄÀ¸·Î ±Û²ÃÀ» ¹Ù²ã ÁÖ±â¶õ ±ÍÂúÀº ÀÏÀÔ´Ï´Ù. ¾Æ±î .Xdefaults¿¡ ±â·ÏÇÒ ¶§, ¾Æ·¡ ÁÙÀ» Ãß°¡ÇØÁÖ¸é, emacs°¡ ½ÃÀÛÇÒ ¶§ ÀÚµ¿À¸·Î ÁöÁ¤ÇÑ fontsetÀ» ¾²°Ô ÇÕ´Ï´Ù:
! Set the default fontset of emacs
Emacs.Font: fontset-lucida14 3. ¿©·¯ °³ Fontset Á¤ÀÇ ¶´«Ä¡°¡ ºü¸¥ ºÐÀº ÀÌ¹Ì ¾Æ½Ã°ÚÁö¸¸, ¿©·¯ °³ÀÇ fontsetÀ» Á¤ÀÇÇÏ´Â °Íµµ °£´ÜÇÕ´Ï´Ù. ¾Õ¿¡¼ fontsetÀ» Á¤ÀÇÇÒ ¶§ Emacs.Fontset-0À̶ó°í ¾´ °ÍÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù. µÎ¹ø° fontsetÀ» Á¤ÀÇÇÒ ¶§¿¡´Â Emacs.Fontset-1À», ¼¼¹ø°´Â Emacs.Fontset-2¸¦ ¾²½Ã¸é, ¿©·¯ °³ÀÇ fontsetÀ» ¸¸µé ¼ö ÀÖ½À´Ï´Ù.
4. Fontset Á¤ÀÇ ¿¹Á¦ ¶¾Æ·¡´Â Á¦ gentoo ½Ã½ºÅÛÀÇ emacs fontset¿¡ ´ëÇÑ Á¤º¸ÀÔ´Ï´Ù. Âü°íÇϽñ⸦ ¹Ù¶ø´Ï´Ù:
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Àº ´ÙÀ½°ú °°½À´Ï´Ù.
5. Emacs 23¹öÁ¯¿¡¼ÀÇ ±Û²Ã ¼³Á¤ ¶ÁÖÀÇ!!! 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À̶󼰡 ¾Æ´Ï¶ó ±âÁ¸ ÆùÆ®µµ µÎ ¹æ½Ä ¸ðµÎ ¾µ ¼ö ÀÖ½À´Ï´Ù.)
5.1. Xft X Resource Setting ¶X resource¿¡¼ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº ±âÁ¸ bitmap font¿Í °°½À´Ï´Ù. ´Ù¸¸ FAMILY À̸§¸¸ truetype font·Î ¹Ù²ãÁÖ¸é µË´Ï´Ù.
(±×³É Emacs.Font¸¦ ¾²Áö ¾Ê°í Emacs.FontsetÀ» ¾²´Â ÀÌÀ¯´Â, º¸Åë ¿µ¹® ÆùÆ®¿Í ÇÑ±Û ÆùÆ®¸¦ ¹¾î¼ ¾²±â ¶§¹®ÀÔ´Ï´Ù.
¿ø·¡ fontconfig ¼³Á¤¿¡ µû¶ó ´ëü ÆùÆ®¸¦ °í¸£´Â °ÍÀÌ Á¤¼®À̳ª, Emacs´Â fontconfig ÀÌÀüºÎÅÍ ÀÌ·± ±â´ÉÀ» Á¦°øÇϱ⠶§¹®¿¡, ¼³Á¤ ÀÚü°¡ Ãæµ¹ÇÏ´Â °ÍÀÌ Çö½ÇÀÔ´Ï´Ù. ¸¸¾à »ç¿ëÀÚÀÇ fontconfig ¼³Á¤ÀÌ ÀÌ¹Ì Àß µÇ¾î ÀÖ´Ù¸é, ±»ÀÌ EmacsÀÇ fontset ±â´ÉÀ» ¾²Áö ¾Ê°í, ´Ü¼øÈ÷ Emacs.Font¸¸ ½á ÁÖ´Â °ÍÀ¸·Îµµ °¡´ÉÇÒ °ÍÀÔ´Ï´Ù.)
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 ÆùÆ®¸¦ ÀÌÇØÇÒ ¼ö ¾ø±â ¶§¹®¿¡, ´ÙÀ½°ú °°ÀÌ ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù:
$ emacs-22
No fonts match `-*-bitstream vera sans mono-*-*-*-*-14-*-*-*-*-*-*' $ _ 5.2. Xft Lisp Setting ¶ÀÌ ¹æ½ÄÀº, X resource¸¦ È°¿ëÇÏÁö ¾Ê°í, Á÷Á¢ lisp ÄÚµå·Î font¸¦ ÁöÁ¤ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. (Áï .emacs¿¡ ½á ÁÜ) ÀåÁ¡À¸·Î´Â Emacs version¿¡ µû¶ó ÆùÆ®¸¦ µû·Î ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù´Â °ÍÀ̸ç, ´ÜÁ¡À¸·Ð ¿©·¯ °³ÀÇ ÆùÆ®¸¦ ¼Õ½±°Ô ¹Ù²ãÁÙ ¼ö ÀÖ´Â ±â´É(shift + left mouse click)À» ¾µ ¼ö ¾ø´Ù´Â °ÍÀÔ´Ï´Ù.
¹°·Ð lisp Äڵ带 ´õ Ãß°¡Çϸé shift + left mouse click ¸Þ´º¿¡µµ µî·ÏÇÒ ¼ö ÀÖÁö¸¸, ÇÊ¿äÇÑ ¼³¸íÀÌ ³Ê¹« ¸¹¾Æ¼ »ý·«~
µû¶ó¼ ¾Æ·¡¿Í °°ÀÌ lisp Äڵ忡¼ xftp ÇÔ¼ö·Î Emacs¿¡ xft ±â´ÉÀÌ ÀÖ´ÂÁö È®ÀÎÇÏ´Â ÇÔ¼ö¸¦ ¸¸µé¾ú½À´Ï´Ù:
(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)) ±×¸®°í ³ª¼ ¾Æ·¡¿Í °°ÀÌ ÆùÆ® ¼³Á¤À» ÇÕ´Ï´Ù:
(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))) 5.3. Screenshots ¶µÎ ½ºÅ©¸° ¼¦ ¸ðµÎ EmacsColorTheme ÆÐÅ°Áö¿¡¼ Á¦°øÇÏ´Â (color-theme-robin-hood)¸¦ »ç¿ëÇßÀ¸¸ç, ¾Õ X Resource Setting ¹æ¹ýÀ» ½á¼ ¼³Á¤ÇÑ È¸éÀÔ´Ï´Ù.
Bitstream Vera Sans Mono + ³ª´®°íµñ_ÄÚµù:
[PNG image (108.63 KB)] DejaVu Sans Mono + ³ª´®°íµñ_ÄÚµù:
[PNG image (101 KB)] Consolas + ³ª´®°íµñ_ÄÚµù:
[PNG image (95.61 KB)] Monaco + ³ª´®°íµñ_ÄÚµù:
[PNG image (87.21 KB)] 5.4. X Resource ±âŸ ¶¾î¶² ºÐÀÌ ¾Æ·¡¿Í °°Àº ³»¿ëÀ» ¿Ã·Á Á̴ּµ¥, ¼³¸íÀ» ¾ÈÇϼ̳׿ä.. ÀÌ ºÎºÐÀº Á¦°¡ Ưº°È÷ ¼³¸íµå¸± ´É·ÂÀÌ ¾ÈµÇ´Â±º¿ä. ÇöÀç, °³¹ß ¹öÀü EmacsÀÇ °æ¿ì XftÀÇ ¼³Á¤À» system-wide¿¡¼ Àоî¿ÀÁö ¾Ê°í X resource¿¡¼ Àоî¿Â´Ù°í Çϴµ¥ Á¤È®È÷ È®ÀÎÇغ¸Áö´Â ¾Ê¾Ò½À´Ï´Ù. Âü°í»ï¾Æ ³²°Ü µÓ´Ï´Ù.
Emacs.font: ±¼¸²Ã¼-13
Emacs.FontBackend: xft Xft.dpi: 96 Xft.antialias: 0 Xft.hinting: 0 Xft.hintstyle: hintfull Xft.rgba:rgb ³¡. -- ½Å¼º±¹
À©µµ¿ì¿¡¼ÀÇ ¼³Á¤µµ ´Ù·ç¾î ÁÖ½É °¨»çÇÏ°Ú½À´Ï´Ù. ƯÈ÷ UTF-8·Î ....
°¡º¯ ±Û²ÃÀÌ ³ª¿À´Â ¹æ¹ýÀÌ ¾øÀ» ±î¿ä info¸¦ º¸¸é ¿µ¹®Àº Å©°í ÁøÇÏ°Ô ³ª¿À´Âµ¥ ÇѱÛÀº ¾ÈµÇ´Â ±º¿ä.
--HoSungKim 2006-05-02
=> Á˼ÛÇÕ´Ï´Ù. Á¦°¡ Windows¿¡¼´Â Emacs¸¦ ¾²Áö ¾Ê¾Æ¼.. Àß ¸ð¸£°Ú±º¿ä. ½Å¼º±¹
andale mono³ª courier new¿Í °°ÀÌ Áß°£ÀÌ ¶ç¾î¾²±â°¡ ÀÖ´Â ±Û²ÃÀÇ °æ¿ì¿¡´Â ¾î¶»°Ô ÇÏ´ÂÁö ±Ã±ÝÇÕ´Ï´Ù. ¿©·¯°¡Áö ½ÃµµÇغ¸¾Ò´Âµ¥ ¾ÈµÇ³×¿ä. (À§Å°, ¾ÆÁ÷ Àͼ÷Ä¡ ¾Ê½À´Ï´Ù) --Amunsen 06-12-14
=> Áß°£¿¡ ¶ç¾î¾²±â°¡ À־ »ó°ü¾ø½À´Ï´Ù. ±×´ë·Î ¶ç¾î¾²¸é µË´Ï´Ù. ½Å¼º±¹
ÁÁÀº ³»¿ë °¨»çÇÕ´Ï´Ù. ±×¸²ÀÇ emacs´Â ¸Þ´º°¡ ¾ÆÁÖ ¿¹»Û ±Û¾¾·Î ³ª¿À´Â±º¿ä. ¾î¶² ÀÌÀ¯ÀÎÁö ±Ã±ÝÇÕ´Ï´Ù. Ȥ½Ã xft branch¸¦ »ç¿ëÇϼ̴ÂÁö¿ä? --Oppor 07-01-19
=> ¾Æ´Ï¿ä, Áú¹®ÇϼÌÀ»¶§ ±×¸²ÀÇ emacs´Â ¸ðµÎ bitmap ±Û²ÃÀÔ´Ï´Ù. ½Å¼º±¹
|
You like to form new friendships and make new acquaintances. |