µ±Ç°Î»ÖãºLinux½Ì³Ì - Linux×ÊѶ - ´ó¼ÒÒ»Æðѧºº»¯(Ò»)

´ó¼ÒÒ»Æðѧºº»¯(Ò»)

¡¡¡¡ÈçºÎʹLinux×ÀÃæÕýÈ·ÏÔʾºÍÊäÈëÖÐÎÄ, Ò»Ö±ÊÇÁîLinux³õѧÕßÍ·Í´µÄÊÂÇé. Ä¿Ç°Óк຺ܶ»¯µÄÎÄÕÂ, µ«´ó¶àÖ»½²²½Öè¶ø²»Ì¸µÀÀí, ÈóõѧÕßÔÆÀïÀ´ÎíÀïÈ¥. ÕâƪÎÄÕ½«´ÓXµÄ×ÖÌåÔ­ÀíÈëÊÖ,°ïÖú´ó¼ÒÀí½âXµÄ×ÖÌå»úÖÆ,ÔÚºº»¯ÖÐѧϰ.¡¡¡¡¡¡¡¡Ê×ÏÈ, ÎÒÃÇÒªÀí½âXµÄ×ÖÌåÒýÇæ. XÖÐÖ§³ÖTruetype×ÖÌå(Ò»ÖÖ¿É·ÅËõ×ÖÌå) µÄÖ÷ÒªÓÐËÄÖÖÒýÇæ. freetype, xtt, xfsºÍXft. ¡¡¡¡¡¡¡¡ÆäÖÐfreetype ºÍ xtt ÊÇ X µÄÄÚ²¿Ä£¿é. ʹÓõĶ¼ÊÇfreetype1äÖȾÒýÇæ. ¡¡¡¡¡¡¡¡Xfs ºÍxft ÊÇÍⲿ·þÎñ³ÌÐò. xfs ÊÇϵͳ¼¶µÄ×ÖÌå·þÎñ³ÌÐò, Ò²¿ÉÒÔ×÷ΪXµÄÄÚ²¿Ä£¿é£¬ ʹÓõÄÊÇX ÄÚ²¿µÄfreetype2. Xft ºÍÆäËûÀà¿âÒ»Ñù, Ö»Óб»µ÷ÓõÄʱºò²Å±»¼ÓÔØ. ÆäÖÐÖ»ÓÐxft²ÅÓÐantialias Ö§³Ö. ¡¡¡¡¡¡¡¡ÕâÀïÓбØÒª½²½²freetype. Freetype ÊÇ¿ªÔ´×ÖÌåäÖȾÒýÇæ, ²¢²»Ö»ÎªXÉè¼Æ. ËüµÄ¹¦ÄܾÍÊǶÁÈ¡Truetype×ÖÌåÐÅÏ¢, Èç´óС, ·Ö±æÂÊ, ±àÂëµÈ, È»ºóäÖȾ³ÉËùÐèµÄλͼÊý¾ÝÊä³ö. Freetype ÏÖÔڵİ汾ÊÇ 2.x, Óë1.0 Ïà±È, ×î´óµÄ²î±ð¾ÍÊǼÓÈëÁË¿¹¾â³Ý¹¦ÄÜ. ¡¡¡¡¡¡¡¡ÓÐÕâô¶àÒýÇæ,µ½µ×ÒªÓÃÄĸöºÃ? ÆäʵÎÒÃÇĿǰΪֹ, Ö§³ÖÖÐÎÄ×îºÃµÄ»¹ÊÇxtt. ÒòΪС×ÖÌåµÄʱºò, Óú¯ÊýÃèÊö·¨Ëã³öÀ´µÄÖÐÎÄ×ÖÌåЧ¹û²»ÄÜÈÃÈËÂúÒâ, ËùÒԺܶàÖÐÎÄ×ÖÌ幫˾¾ÍÔÚTruetype×ÖÌåÀïǶÈëÁËλͼ×ÖÌå. ÕâЩλͼ×ÖÌåÐèÒªÓÃÌØÊâµÄ·½Ê½¶Á³öÀ´, ËùÓеÄÒýÇæÖоÍÖ»ÓÐxttÄÜ×öµ½ÕâÒ»µã. ¡¡¡¡¡¡¡¡ÎÒÃÇÏÂÒ»²½¾ÍÊǽ«×ÖÌåÌí¼Óµ½XÖÐ, ʹxtt¿ÉÒÔÕýÈ·¶ÁÈ¡, ÕâÑù¾Í¿ÉÒÔÁË. ¡¡¡¡¡¡¡¡Ê×ÏÈ, ÓÉÓÚÒªÅäÖÃLinuxϵͳÎļþ, ÎÒÃÇÐèÒªÓÃrootÕʺŽøÈë, Ï൱ÓÚwindowsϵÄadministrator. ¡¡¡¡¡¡¡¡XµÄÅäÖÃÎļþÊÇ/etc/XF86Config-4 (±È½ÏеÄÏÔ¿¨) »òÕßÊÇ XF86Config (±È½ÏÀϵÄÏÔ¿¨). ÓÃÄãϲ»¶µÄÎı¾±à¼­Æ÷´ò¿ª, Èç kedit»ògedit. ¡¡¡¡¡¡¡¡´ò¿ªºóÎÒÃÇ·¢ÏÖÅäÖÃÎļþ·Ö³ÉºÜ¶à¸öSection, ÎÒÃÇÊ×ÏÈÒªÅäÖõľÍÊÇ Section "Files" , Õâ¸ö²¿·ÖÃèÊöÁËXËùÒªµ÷ÓõÄÎļþÐÅÏ¢.¡¡¡¡¡¡¡¡Òª¼ÓÈëÒ»¸ö×ÖÌåĿ¼, Ö»ÐèÔÚÀïÃæ²åÈëÒ»ÐÐ FontPath "Ŀ¼Ãû" ¾Í¿ÉÒÔÁË, Èç: ¡¡¡¡¡¡¡¡Section "Files"¡¡¡¡# Multiple FontPath entries are allowed (they are concatenated together)¡¡¡¡# By default, Mandrake 6.0 and later now use a font server independent of¡¡¡¡# the X server to render fonts.¡¡¡¡FontPath "unix/:-1"¡¡¡¡FontPath "/truetype" # ²åÈëÒ»¸ö×ÖÌåĿ¼¡¡¡¡EndSection¡¡¡¡¡¡¡¡È»ºó, ÎÒÃÇÈÃX¼ÓÔØxtt×ÖÌåÒýÇæ:¡¡¡¡¡¡¡¡ÕÒµ½Section "Module", ÏñÕâÑùÐÞ¸Ä:¡¡¡¡¡¡¡¡Section "Module"¡¡¡¡# Load "dbe" # Double-Buffering Extension¡¡¡¡# Load "v4l" # Video for Linux¡¡¡¡Load "extmod"¡¡¡¡Load "glx¡¡¡¡# Load "type1" # type1 Ä£×éÊÇäÖȾtype1×ÖÌåµÄ, ºÍxtt³åÍ», ±ØÐèÆÁ±Î¡¡¡¡# Load "freetype" # freetype Ä£×éÊÇäÖȾTruetype×ÖÌåµÄ, ºÍxtt³åÍ», ±ØÐèÆÁ±Î¡¡¡¡Load "xtt" # ¼ÓÈëxttÄ£×éÒýÇæ¡¡¡¡EndSection¡¡¡¡¡¡¡¡ºÃÁË, ÏÖÔÚxtt»á×Ô¶¯È¥ /truetype ÀïÕÒ×ÖÌå. ¡¡¡¡¡¡¡¡ÏÖÔÚ¿ªÊ¼¿½±´×ÖÌåµ½ /truetypeÀïÈ¥, ÏÈÒªÔÚ¸ùĿ¼½¨Ò»¸ötruetypeĿ¼, ´ò¡¡¡¡¡¡¡¡mkdir /truetype¡¡¡¡¡¡¡¡¾Í¿ÉÒÔÁË.¡¡¡¡¡¡¡¡´Ówindows·ÖÇø¿½±´ÒªÏÈmount, ¾ÍÊÇ×÷Ò»¸öÁª½Ó, ½«LinuxĿ¼Á¬µ½windows·ÖÇø. ÔÚ¸ùĿ¼Ï½¨Ò»¸ö"c"Ŀ¼. ¡¡¡¡¡¡¡¡mkdir /c¡¡¡¡¡¡¡¡È»ºó¡¡¡¡¡¡¡¡mount /dev/hda1 /c¡¡¡¡¡¡¡¡ÕâÑù¾Í½«windowsϵÄCÅÌ Áª½Óµ½ÎÒÃÇLinuxϵÄ/cĿ¼ÁË, ½øÈë/c, Ó¦¸Ã¿ÉÒÔ¿´µ½ÄãCÅ̵ÄÎļþ. ¡¡¡¡¡¡¡¡È»ºó, ½øÈë/c ÖеÄ×ÖÌåÎļþĿ¼, Ò»°ãÔÚwindowÏÂÃæµÄFontsÀï, ×¢ÒâĿ¼Ãû´óСдÔÚLinuxÏÂÃæÊÇÓÐÇø±ðµÄ. ¡¡¡¡¡¡¡¡¿½±´×ÖÌåÎļþµ½ /truetypeÀï, ´ò¡¡¡¡¡¡¡¡cp simsun.ttc /truetype/simsun.ttf¡¡¡¡cp tahoma* /truetype/¡¡¡¡¡¡¡¡ÕâÑù¾Í½«ÎÒÃÇËùÐèÒªµÄ×ÖÌåÎļþ¿½±´µ½truetype ÀïÁË. ¡¡¡¡¡¡¡¡ÏÂÒ»²½ÎÒÃÇÒªÉèÖÃ×ÖÌåÎļþ, LinuxÖÐXµÄ×ÖÌåÉèÖúܷ³Ëø, ²»ÏñwindowsÒ»¿½±´¾ÍÍêÊÂ, ³õ¼¶½×¶ÎÂï, ´ó¼Ò»¹ÊÇÈÌÈÌ°É, ºÇºÇ. ¡¡¡¡¡¡¡¡1. ½¨Á¢×ÖÌåÐÅÏ¢Îļþfonts.dir¡¡¡¡¡¡¡¡ÈçÏ¡¡¡¡¡¡¡¡24 ¡¡¡¡simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0¡¡¡¡ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0¡¡¡¡ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0¡¡¡¡ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0¡¡¡¡tahoma.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1¡¡¡¡ai=0.3:tahoma.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1¡¡¡¡tahomabd.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1¡¡¡¡ai=0.3:tahomabd.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1¡¡¡¡simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0¡¡¡¡ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-gbk-0¡¡¡¡ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-gbk-0¡¡¡¡ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-gbk-0¡¡¡¡simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15¡¡¡¡ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15¡¡¡¡ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15¡¡¡¡ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-fcd8859-15¡¡¡¡simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15¡¡¡¡ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15¡¡¡¡ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15¡¡¡¡ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-15¡¡¡¡simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1¡¡¡¡ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-iso10646-1¡¡¡¡ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-iso10646-1¡¡¡¡ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-iso10646-1¡¡¡¡¡¡¡¡¡¡¡¡µÚÒ»ÐеÄ24±íʾÏÂÃæÒ»¹²ÓÐ24ÐÐÉèÖà (ºÃÏñÓеãɵ) , ÆäËûµÄ¸ñʽ¶¼²î²»¶à:¡¡¡¡¡¡¡¡ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-gbk-0¡¡¡¡¡¡¡¡ËµÃ÷:¡¡¡¡¡¡¡¡simsun.ttf: ×ÖÌåÎļþÃû¡¡¡¡¡¡¡¡ds=[yn]: dsÊÇxttµÄ¹¦ÄÜ, Éè³É"y" ±íʾ´ÖÌå, "n" ±íʾÕý³£.¡¡¡¡¡¡¡¡ai=Real_number: ±íʾÇãб¶È. ²»Éè±íʾ×Ô¶¯.¡¡¡¡¡¡¡¡misc : ±íʾ×ÖÌåµÄÀà±ð¡¡¡¡¡¡¡¡SimSun : ÊÇ×ÖÌåµÄÃû³Æ¡¡¡¡¡¡¡¡bold : bold ±íʾ´ÖÌå, ÆäËûÈçmedium±íʾÕý³£, ¡¡¡¡¡¡¡¡i : ±íʾбÌå, r ÊÇÕý³£¡¡¡¡¡¡¡¡p: ¿É±ä³¤¶È, c ÊÇÕý·½ÐÎ, mÊǹ̶¨¿í¶È¡¡¡¡¡¡¡¡gbk: ×ÖÌå±àÂë¡¡¡¡¡¡¡¡ÕâÀï´ó¼Ò·¢ÏÖÎÒÃÇ»¹Ê¹ÓÃÁËtahomaÓ¢ÎÄ×ÖÌå, ÕâÑùÌæ»», ϵͳ¶ÁÈ¡SimsunÓ¢ÎÄ×ÖÌåµÄʱºò, ¾Í»áÓÃppµÄtahomaÌæ´ú. ¡¡¡¡¡¡¡¡ºÃÁË, ÏÖÔÚ´æÅÌ. È»ºó¿½±´Ò»¸öµ½fonts.scale¡¡¡¡¡¡¡¡cp fonts.dir fonts.scale¡¡¡¡¡¡¡¡È»ºó¿½±´±àÂëÎļþ encodings.dir µ½Ä¿Â¼ÀïÀ´. ¡¡¡¡¡¡¡¡cp /usr/X11R6/lib/X11/fonts/encodings/encodings.dir /truetype¡¡¡¡¡¡¡¡ºÃ, ÖØÆð, °ÑKDE, mozilla, galeon µÈµÈËùÓÐĬÈÏ×ÖÌ嶼¸Ä³Ésimsun, ¹þ¹þ, ÊDz»ÊDZȴÓǰƯÁÁÁ˺ܶà?¡¡¡¡¡¡¡¡´ó¼Ò»¹ÊÇ°ÑÕ⼸¸öÅäÖÃÎļþ±¸·ÝÆðÀ´, ÒÔºó°²×°µÄʱºò¾Í²»ÓÃÔÙÉèÖÃÁË.¡¡¡¡¡¡¡¡ÕâÀï˳´ø˵һÏÂÆäËû¼¸¸ö×ÖÌåÒýÇæµÄÅäÖÃ:¡¡¡¡¡¡¡¡xfs : ÅäÖÃÎļþÊÇ /etc/X11/fs/config¡¡¡¡xft : ÅäÖÃÎļþÊÇ /etc/X11/Xftconfig¡¡¡¡¡¡¡¡xft µÄÅäÖÃÏà¶ÔÀ´Ëµ±È½ÏÈÝÒ×, Ö»Òª½«×ÖÌ忽µ½ÅäÖÃÎļþÖÐdir Ö¸¶¨µÄÈκÎÒ»¸öĿ¼¾Í¿ÉÒÔÁË. Èç¹ûҪС×ÖÌå²»ÏÔʾAA, ¿ÉÒÔÔÚĩβ¼ÓÈë:¡¡¡¡¡¡¡¡match¡¡¡¡any size > 8¡¡¡¡any size < 17¡¡¡¡edit¡¡¡¡antialias = false;¡¡¡¡match¡¡¡¡any pixelsize > 8¡¡¡¡any pixelsize < 17¡¡¡¡edit¡¡¡¡antialias = false;¡¡¡¡¡¡¡¡ÕâÑù 8~17ºÅµÄ×ÖÌå¾Í²»»áÓÿ¹¾â³Ý¹¦ÄÜÁË.
[1] [2] ÏÂÒ»Ò³ 

£¨³ö´¦£ºhttp://www.sheup.com£©


ÉÏÒ»Ò³ [1] [2]