UWSpace is currently experiencing technical difficulties resulting from its recent migration to a new version of its software. These technical issues are not affecting the submission and browse features of the site. UWaterloo community members may continue submitting items to UWSpace. We apologize for the inconvenience, and are actively working to resolve these technical issues.
 

COI: A First Step towards TrueType Bytecode Analysis

Loading...
Thumbnail Image

Date

2015-01-21

Authors

Man, Wenzhu

Journal Title

Journal ISSN

Volume Title

Publisher

University of Waterloo

Abstract

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.

Description

Keywords

TrueType bytecode

LC Keywords

Citation