COI: A First Step towards TrueType Bytecode Analysis
MetadataShow full item record
TrueType fonts are ubiquitous in today’s computing environment. While TrueType is a scalable vector-based font format, optimal scaling requires font hinting for excellent font rendering at typical screen resolutions. TrueType font designers express font hints in a TrueType-specific stack-based bytecode language. Common font manipulations, such as font subsetting and merging, would therefore profit from the ability to analyze TrueType bytecode. Current tools must either omit bytecode, sacrificing readability, or conserva- tively generate duplicate bytecode, thus creating larger font files with considerable unused bytecode. Our work takes a first step towards TrueType bytecode analysis. We describe the design and implementation of COI, a new three-address intermediate representation for TrueType bytecode. COI greatly simplifies optimization for TrueType bytecode. We have implemented a tool that translates between TrueType bytecode and COI and performs standard static analyses on COI. Our experiments show that COI can enable the removal of unused bytecode, thus reducing font size.
Cite this version of the work
Wenzhu Man (2015). COI: A First Step towards TrueType Bytecode Analysis. UWSpace. http://hdl.handle.net/10012/9116