How to Enable Embedded Bitmap FontsWilliam Wei Xue, April 2008 In some TrueType fonts, there are several sizes of embedded bitmap fonts. What is the advantage of embedding bitmap fonts into TrueType fonts?
Embedding bitmap fonts can improve the on-screen appearance of small pixel sizes. If you have a TrueType font that has embedded bitmaps, you can
customize the bitmaps for a specific small pixel size or render the characters from the regular outline data. Of course, these embedded small-size bitmap
fonts should be included in your TrueType font files. Here I give an example of how to enable embedded bitmap fonts for the UMing TrueType font
( Note: This information is written for the Solaris Operating System, but it should also be suitable for other forms of UNIX, such as Linux. The
Figure 1: Scalable TrueType Font Without Embedded Bitmap Fonts To enable embedded bitmap fonts, modify (or create) the <match target="font"> <test name="prefer_bitmap"> <bool>true</bool> </test> <test name="family"> <string>AR PL ShanHeiSun Uni</string> </test> <test name="pixelsize" compare="more_eq"> <double>11</double> </test> <test name="pixelsize" compare="less"> <double>16</double> </test> <edit name="antialias" mode="assign"> <bool>false</bool> </edit> </match> In the section
Figure 2: Scalable TrueType Font With Embedded Bitmap Fonts For More Information
Comments (latest comments first)Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics | ||||