A Hybrid Approach to Rendering Handwritten Characters

A Hybrid Approach to Rendering Handwritten Characters

A Hybrid Approach to Rendering Handwritten Characters Sara L. Su Chenyu Wu Ying-Qing Xu, Massachusetts Institute of Carnegie Mellon University Heung-Yeung Shum Technology Robotics Institute Computer Science and Artificial 5000 Forbes Avenue Microsoft Research Asia Intelligence Laboratory Pittsburgh, PA 15213, USA 5/F, Beijing Sigma Center No.49 Zhichun Road, Hai Dian 200 Technology Square [email protected] Cambridge, MA, 02139, USA Beijing, China 100080 [email protected] {yqxu,hshum}@microsoft.com ABSTRACT With the growing popularity of penbased computers comes the need to display clear handwritten characters at small sizes on lowresolution displays. This paper describes a method for automatically constructing hinted TrueType fonts from online handwriting data. Hints add extra information to glyph outlines in the form of imperative constraints overriding side effects of the rasterization process. We use an aggressive matching strategy to find correspondences between an input glyph and a previouslyhinted template, considering both global and local features to allow hinting even when they differ in shape and topology. Recognizing that stroke width statistics are among features that characterize a person’s handwriting, we recalculate global values in the control value table (CVT) before transfer to preserve the characteristics of the original handwriting. Keywords Handwriting, automatic hinting, digital typography, shape matching, penbased interaction. 1. INTRODUCTION computers, targeting users who work away from the Handwriting plays an integral role in our thought desk, tout them as being as natural to write on as a processes, functional tasks, and communication with pad of paper. peers, and perhaps even offers some insight into Much work has been done in the areas of recognition personality traits [Bra91]. How we write, along with [Mac94], simulation [Dev95], and learningbased what we write, defines who we are. synthesis of handwriting [Guy96, Wan02], but less With all that we rely on handwriting for, it is perhaps attention has been paid to the problem of rendering unsurprising that penbased computers are growing the resulting characters on screen. Whether they in popularity. Appearing as small handheld devices, were synthesized, scanned, or written directly onto a personal tablet computers, and large whiteboard tablet screen, digital handwriting must at some point displays, numerous systems since Sketchpad [Sut63] be rendered legibly and without loss of quality. have demonstrated stylusbased interaction to be a Recognizing the demand for onscreen text that is concise, effective means of user input. both readable and unique to the user, digital type While many handhelds accept characterbycharacter foundries have begun offering “personal handwriting input as stylized “graffiti” [Mac97], as the popularity fonts”, typefaces designed based on a customer’s of penbased computing continues to grow, an signature or writing samples. Like other typefaces, increasing number of people will rely on applications some of these fonts contain essential gridfitting with freehand input. Advertisements for tablet instructions, hints , that specify the appearance of characters at varying point sizes and display Permission to make digital or hard copies of all or part of resolutions. While some handwriting fonts are this work for personal or classroom use is granted without manually hinted (an extremely timeconsuming task), fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this most are either hinted automatically by a typeface notice and the full citation on the first page. To copy authoring system such as Macromedia Inc.’s otherwise, or republish, to post on servers or to redistribute Fontographer or contain no hints at all. While to lists, requires prior specific permission and/or a fee. Fontographer’s autohinting system is effective for traditional typefaces of size 24 pt or larger, Journal of WSCG, Vol.12, No.1-3, ISSN 1213-6972 handwritten glyphs are a special case that most WSCG’2004, February 2-6, 2003, Plzen, Czech Republic. Copyright UNION Agency – Science Press existing autohinters do not handle well. We propose a hybrid method for automatically this information to optimize the distribution of pixels hinting handwriting by considering global and local by stretching or compressing glyph outlines within features of each glyph against knowledge of already the defined bands. Because control of the character’s hinted templates. Though in this paper we discuss final appearance falls to the rasterizer, the these techniques in the terms of TrueType template typographer cannot specify exactly what it will look fonts and hint instructions, we see them as applicable like when rendered. However, the relative simplicity in the more general context of intelligent rendering of Postscript hints makes it more straightforward to of handwriting. Here we implement the specific case develop automatic hinting systems based on of converting handwritten characters from a recognition of semantic features. polylines on a tablet device to TrueType glyphs. The results are encouraging and suggest an application 2.2 TrueType hinting scenario in which the user can create a more legible In TrueType, there is no concept of bowls, stems, or form of his or her own handwriting directly on a other semantic features of a character; there are only tablet without having to wait for a company to knots and splines. The designer of a TrueType font digitize and hint writing samples as a typeface. can control the precise layout of a glyph’s pixels at a particular size by programming explicit gridfitting 2. BACKGROUND instructions into the description of the font. Tools Although many alternative representations have been such as Fontographer and Visual TrueType [Sta98] proposed [Knu86, Kla93, McG95], outline fonts are generate hint instructions in highlevel, declarative still the format most widely used today. Outlines languages that are then compiled to the TrueType avoid many of the problems that plagued earlier assembly language. Like Zongker et al. [Zon00], we bitmap fonts (every required size must be hand discuss hint translation in terms of the VTT Talk designed, they are tuned to a specific printer, and the language provided by Visual TrueType [Mic97]. footprint of a font grows quickly with the size of the A single VTT Talk instruction specifies a constraint characters), but to be displayed on screen, they must between two knots in a glyph, between a knot and a eventually be converted to bitmaps [Rub88]. gridline, or on a group of knots in a contour. The Hinting gives a typographic engineer fine control following types of VTT Talk hints are defined: An over the appearance of glyphs when rasterized. With anchor rounds a parentless knot to the grid or to a these gridfitting instructions, the typographer gridline specified by a CVT entry. A child knot’s specifies constraints between knots of a glyph or position is maintained relative to its anchored parent between a knot and a gridline. Though it is a with the use of distance and link constraints. A laborious task, hinting is essential for legible distance constraint specifies the absolute distance to rendering of glyphs. Stroke width uniformity, stroke maintain while a link refers to a CVT entry. Both continuity, glyph spacing: all are controlled by parent and child are rounded to gridlines such that hinting. The difference in quality between hinted and there is a minimum distance of 1 pixel between the unhinted glyphs is most apparent for small point two. A child knot’s position is maintained relative to sizes displayed at typical screen resolutions of 72 two parents with an interpolate instruction. A shift 120 dpi. Hinting also improves the appearance of maintains a child’s distance to its parent even if small text faxed at 200 dpi or printed at 300600 dpi hinting has moved the parent. Unlike with a link, the [Sta97]. child’s position is not rounded to the grid, thereby allowing movements of less than a full pixel. Deltas The two major font standards, TrueType and and moves , known as exceptions, are used to specify Postscript (or Type 1), though both using outline the exact number of pixels at a point at a particular representations of characters, incorporate two very glyph size. A delta affects a single size while a move different hinting philosophies. While Postscript fonts applies to all sizes of a glyph. leave control of a character’s final appearance to the rasterizer [Ado90], a typographer embeds explicit There has been significant earlier work on automatic gridfitting instructions in the outline description “tuning” of typefaces including [Her91, Hob93, when designing a TrueType font [App96, Con97, Her94, Zon00, Sha03]. Typ96]. Hersch and Bétrisey [Her91] developed modelbased methods for automatic hinting, transferring 2.1 Postscript hinting gridfitting instructions from specially constructed In the description of a Postscript font, semantic intermediate models. The model for each glyph features of each glyph are marked, and hints contain includes both an outline description of shape as well information about vertical and horizontal bands as a listing of its semantic parts. After matching the across these features. It is up to the rasterizer to use outlines of the glyph to be hinted to those of the model, the semantic features of the target glyph can “handwritinglike” glyphs has more to do with letter be labeled and hints generated. formation patterns than

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us