Re: CSS transform ¤¤¤å¦rÅܧΰÝÃD ¡X ®³±¼ÂI°}¦r§Î¡]Bitmap Strike¡^ªº CSS3 Fonts ÄÝ©Ê

2011/7/5 Kang-Hao (Kenny) Lu <kennyluck@w3.org>:

>> ·íµMª½±µ§âÂI°}¦r«¬±À­Ë¦¨±×ªº¡A·|¦³«ÜÄY­«ªº¿÷¾¦ª¬²£¥Í¡C
>> ©Ò¥H¤ñ¸û¦nªº°µªk¬OµLµø¤º´OÂI°}¦r«¬¡A§ï¥Î¦V¶q¦r¨Ã¶}±ÒAA¡C

> ©Ò¥H Linux ¤U FF ªº²{ªp¬O¡G
> 1) ¨S±×Å骺®É­Ô¨Ï¥ÎÂI°}¦r§Î¡A¨Ã¥BÃö³¬ AA
> 2) ±×Å骺®É­Ô¤´¨Ï¥ÎÂI°}¦r§Î¡A¦ý¬O¶}±Ò AA
¤£¹ï¡A
1) ¨S±×Å骺®É­Ô¡A¨Ì·Ó¨Ï¥ÎªÌfontconfigªº³]©w¡A
¡u³q±`¡v¦³¤º´OÂI°}®ÉÀu¥ý¥ÎÂI°}¦r¡AÃö³¬AA¡C
2) artificial ±×Å骺®É­Ô¡AµLµø¤º´OÂI°}¦r¤@«ß¥Î¦V¶q¦r¡A¨Ã¶}±ÒAA¡C
 (¦h¼Ædistro¹w³]ªº fontconfig ³W«h)

½Ð°Ñ¦ÒªþÀɪººI¹Ïfont_test.png¡C·íµM¡A³o¸Ì¬O¹ïLCD¿Ã¹õ³Ì¨Î¤Æ¡C

¹ï¤ñ¤WGoogle Chrome 13.0.782.32 betaªººI¹Ïft_chrome.png¡A¦ü¥Ggoogle¤´»Ý§V¤O... XD
¤£¶ÈAAÂaÄg(¤]³\¤£¤Ö¤H¤Ï¦Ó³ßÅw¡H)¡AÂI°}¦r¨S¦³¿ìªkÅã¥Ü±×Åé¡C

¤]³\¸Ó¿ì­Ó§ë²¼¡H§A³ßÅw­þ­Ó¡H(§Ú·Q­n3¡A¦ýchrome¥uµ¹§Ú2)
1) http://labs.trolltech.com/blogs/wp-content/uploads/2008/09/text_nofilter_slight1.png
2) http://labs.trolltech.com/blogs/wp-content/uploads/2008/09/text_filter_slight2.png
3) http://labs.trolltech.com/blogs/wp-content/uploads/2008/09/text_legacy1.png
4) http://labs.trolltech.com/blogs/wp-content/uploads/2008/09/text_legacy_slight1.png

(°Ñ¦Ò http://labs.qt.nokia.com/2008/09/01/subpixel-antialiasing-on-x11/
http://martin.ankerl.com/2009/01/22/beautiful-font-hinting-in-ubuntu-810/ »¡©ú)

>> ©Ò¥H³o¸Ì§Ú­ÌÀ³¸Ó°µªº¡A¬O¥hFFµobug report§ïµ½transform«á¦r«¬Åã¥Üªº«~½è¡H
> ´N­ì¥ý¤õª°ªº­¶­±ªº°ÝÃDªº½T¬O³o¼Ë¡AÁöµM³s ABCD ³£¦³°ÝÃD¥Nªí³o¤£¬O¤¤¤åªº°Ý
> ÃD¤]¥i¯à¦³¤Hµo¹L³o­Ó bug report ¤F¡C¤]´N¹³§AÁ¿ªº¡A¨º¸ò AA ¤ñ¸û¦³Ãö¡A¸òÂI
> °}¦r«¬À³¸Ó¤ñ¸ûµLÃö¡C
­n¬Ý³o­ÓABCD¬O¤¤¤å¦r«¬¡AÁÙ¬O­^¤å¦r«¬¨Óªº¡I(³q±`¨Ï¥ÎªÌµLªk¤À§O«ü©w¤£¦P¦r«¬)
¤¤¤å¦r«¬ªº­^¼Æ¦r·|¥H¤¤¤å¦P¼Ë¤è¦¡³B²z¡C

>> ­Ó¤Hı±o³o¸Ì¦³ÂI­Ë¦]¬°ªG¡A¦]¬°ÂI°}¦r«¬¶}AA¬O¨S¦³·N¸qªº... XD
¸É¥R¤@ÂI¡A¡u¥j¥N¡vªºLinux¥u¦³ÂI°}¦r(X core font)¡AÁY©ñÂI°}¦r¤~»Ý­n¶}AA¡C
·íµM®ÄªG³q±`ºG¤£§Ô¸@¡A¥u¤ñ¥þ¿÷¾¦¦n¤@ÂIÂI¡C

>> ¦Ó¥B¦pªG¨Ï¥Î©úÅé¦r«¬ªº¸Ü¡A¤p¦r¸¹¨Ï¥Î¦V¶q¶}±ÒAA¤£·|¤ñ¸û¦n¬Ý¡A
> ¨º»Ý­n°µªº¹êÅç¦n¹³¬O¡A¦b©úÅé¡A¤p¦r¸¹¡A¦³ transform ªº±¡§Î¡A¤ñ¸û¥H¤U­þ­Ó
> ¤ñ¸û¦n¬Ý¡G
> 1) ÂI°}¦r«¬¡A¤£¶} AA
> 2) ÂI°}¦r«¬¡A¶} AA
> 3) ¦V¶q¦r«¬¡A¤£¶} AA
> 4) ¦V¶q¦r«¬¡A¶} AA
­Ó¤Hı±oÀ³¸Ó±Ä¥Î4)¡A»P±×Åé¦P¼Ëªº³B²z¤è¦¡¡C¦Ó2)À³¸Ó¬O¤£»Ý­nªº¡C

> 2 ·|»·³Ó 1 ¶Ü¡H¥t¥~¡A4 ·|¸ò 2 ®t«Ü¦h¶Ü¡]»Ý­n¤F¸Ñ font-bitmap: none; ¤§Ãþ
> ¦b¤@¯ë¹q¸£¤W¨ì©³»ù­È¦³¦h°ª¡^¡H
>
> §Ú¥i¥H·Q¹³¦b¨S¦³ AA ªºÀô¹Ò¡]¹q¤l®Ñ¡H¡^¡A3 À³¸Ó·|»·³Ó©ó 1 ©Ò¥H font-
> bitmap ¥i¯à¦³»ù­È¡A¤£¹L¦pªG Hax ¯à´£¨Ñ¤@±i·Ó¤ù¦õÃÒ¨º´N³Ì¦n¤F¡C
­Ó¤H¸gÅç¡Ahinting°µ±o¦nªº¸Ü¡A3¤]³\¥i¥H±µªñ1¡A¦ý³q±`À³¸Ó¤â¤u¨èªº1·|¤ñºâ¥X¨Óªº3¦n¡C

>> ¬Æ¦Ühinting³B²z¤£¦nªº¸Ü¡Aµ§¹º¼Ò½k·|ÄY­«¼vÅT¾\Ū¡C
>> ¬Û¹ï¨Ó»¡¶ÂÅé¦r«¬«h¬O­è¦n¬Û¤Ï¡C(³q±`¤]¨S¦³¤º´OÂI°}¦r«¬)

> ¥þ³¡Âkµ²¨ì UA ªº implementation ªº¦n³Bªº¬O¤£¿ù¡A²¦³º¤£¥Î¥[¤ÓÃøÀ´ªº·sÄÝ
> ©Ê¡C°ß¤@­Ó¯ÊÂI¬O¦b°ÊºAÀô¹Ò¤U¤£ª¾¹D·|¤£·|²£¥Í¤£¨ó½Õªº©_©Ç²{¶H¡C¤ñ¦p»¡§A·Q
> ¹³¤@¤U¤@¦ê¦r¦b¨º¸ÌºCºC±ÛÂà¦ý¬O¥u¦³ ¦b 0 «×ªº®É­Ô¨S¦³ AA¡C
À³¸Ó¬O0, 90, 180, 270«×ªº®É­Ô... :D

> ÁöµM³oºØ±¡§ÎÀ³¸Ó«Ü¤Öµo¥Í¥i¥H¼È®ÉµLµø¡B¡B¡B
¤]³\¤ñ¸û²³æªº§@ªk¡A¬O¥u­n¦³transformation¡A´N¤@«ß¥Î¦V¶q¦r¡H
²¦³º¦bºô­¶¯S®Ä¤W¡A¬n±×ªº¤p¦rÁ¿¨D readability ¦ü¥G¤£¬O«Ü¦³·N¸q¡C :D

¥t¥~¤@­Ó°ÝÃD¡A¤£¾å±o¥Ø«e´X­ÓÂsÄý¾¹¹ï¤å¦rtransformªº¹ê§@ªk¬O«ç¼Ëªº¡H
¦]¬°sub-pixel AA¥²¶·¦Ò¼{¨ìLCDªºRGB±Æ¦C¤è¦V¡A¦pªG¬O¥ýrender§¹¦¨ÂI°}¹Ï¡A
¦Atransformªº¸Ü¡A¤å¦rsub-pixel AA¤]·|Äê±¼ªº¡C


-- 
Best regards,
Yuan Chao

Received on Tuesday, 5 July 2011 21:31:33 UTC