“Hinting” of Scalable Outline Fonts

Total Page:16

File Type:pdf, Size:1020Kb

“Hinting” of Scalable Outline Fonts 284 TUGboat, Volume 18 (1997), No. 4 Hinting is very important at low resolution (on Font Forum screen, typically 72 dpi or 96 dpi), where it is hard to get an adequate representation of a continuous shape on a discrete grid. It is still significant at ‘Hinting’ of scalable outline fonts medium (laser printer, typically 300 dpi or 600 dpi) Berthold K.P. Horn resolution, but is not important at very high resolu- tion (image setter). ‘Font smoothing’ or anti alias- ‘Hinting’ refers to methods that guide grid fitting of ing also reduces the importance of hinting, although continuous glyph outlines onto a discrete grid, such hinting can reduce the number of ‘fuzzy edges’ that as those found on a display screen or laser printer. can be distracting in anti-aliased fonts. The need for hinting Different hinting ‘languages’ Scalable outline fonts — such as fonts in Adobe Type Intelligent grid-fitting of continuous shapes onto a 1 and TrueType format — have continuous shapes discrete grid requires a mapping that involves more described by mathematical curves. These are used than simply rounding of x and y coordinates. Much to create a discrete raster of dots on a display or can be achieved by instead setting up a piece-wise hardcopy output device at a specified size. If such linear mapping for each coordinate axis, with corner a bitmap is made in a simplistic way — such as sim- points at the edges of stems and alignment zones. ply blackening each cell whose center lies within the An alternative to such a ‘global’ approach is one contour — then a number of visually distracting ar- that depends instead on individually adjusting coor- tifacts arise — such as misalignments of features and dinates of knots. The latter approach is more pow- breaks in shapes, also called ‘drop-outs.’ erful, but more awkward to use. Typically hinting is used to do things like: The Adobe Type 1 hinting language is declar- • make sure stems intended to be equally thick ative, hence easy to use. Since the ‘brains’ behind appear equally thick; it is in the rasterizer, rasterizing quality of a font • suppress overshoots — rounded letters (O) are may be improved if an improved rasterizer is release. taller than flat ones (X); However, since the Type 1 rasterizer is not described anywhere, the exact effect of various hinting meth- • line up features on different glyphs that should ods can only be ascertained by experiment. be at the same height; The TrueType hinting language is imperative • avoid ‘drop-outs’; and powerful, but also painful to use by compari- • keep counters between stems open; son. The TrueType rasterizer is described, so it is • force consistent spacing between sets of parallel possible — in principle — to predict what the effects strokes; of a change might be. One reason the TrueType • compensate for ‘misfeatures’ of the rasteriza- hinting language needs to be more powerful is that tion algorithm such as drop-outs. the underlying rasterizer has misfeatures (like drop- outs) that need to be ‘patched up’. All the ‘brains’ A simple example is in the TrueType font — not in the rasterizer — so A simple demonstration of the need for hinting is the it benefits less from improvements to the rasterizer. following: suppose you have the letter ‘H,’ which — METAFONT also provides methods for grid-fit- when scaled to the discrete grid of the output de- ting outlines, as described in ‘Discreteness and Dis- vice — happens to have vertical stems from x =1.2 cretion,’ chapter 24 of The METAFONTbook.There to x =2.8 and from x =4.8tox =6.4. So the is no separate ‘hinting language’ in this case. The original width of both stems is 1.6 pixels. work is done using METAFONT’s built-in mecha- Now suppose that the rasterizer ‘inks’ every cell nisms for enforcing constraints established by equal- whose center is inside the outline. Also suppose that ities or inequalities. the discrete grid of pixels has integer coordinates at Hint switching and delta hints the corners and that we round continuous values to the pixel centers. Then the discrete version of the Quality hinting code is tightly interlaced with the left stem will run from x =1tox = 3, while the program that draws the glyph, since different ‘hints’ discretized version of the right stem goes from x =5 may apply to different parts of the glyphs. This is to x = 6. In the discrete version then, the left stem called ‘hint switching’. is twice as fat as the right stem — a visually very For a simple example, let us consider the ‘R’ in noticeable difference. CMR10. It has a slab lying on the baseline at the TUGboat, Volume 18 (1997), No. 4 285 bottom of the left leg and a curled shape that drops particular face at small sizes versus making it more below the baseline on the right leg. If horizontal readable. stem hints are applied to correctly grid fit the slab There are few good tools for doing quality man- on the left leg, then the right leg will be drawn be- ual hinting. For Type 1 fonts, most font generation low the baseline, even at very small sizes where this software has some support for manipulating hints looks ‘wrong’ and where pulling the right leg up to graphically. Type Designer even provides for hint the baseline produces a visually more pleasing re- switching. But without being able to see clearly sult. Conversely, if a horizontal stem hint were to what hints go where, it isn’t really good enough to be tuned for the curl in the right leg, then the slab be useful. For TrueType, the only hinting tools are at the bottom of the left leg would tend to be ras- from Type Solutions in New Hampshire. terized floating above the baseline. To get the best rasterization at all sizes, the glyph has to be split The quality of fonts and of rasterizers into two parts and the right leg rasterizered with Note that the ‘hinting’ code can be a substantial different hints than those used for the left. part of a font, particularly in the case of quality While simple shapes (like a sans serif ‘H’) re- TrueType fonts. If you pass one of the Microsoft quire no hint switching at all, some complex shapes core fonts (Arial, Times New Roman, and Courier such as the ‘Weierstrass p’ (℘) may require many New) through one of the font generation tools you switches. will see a dramatic drop in size as a result of the TrueType provides a mechanism called ‘delta fact that the original hints are lost. In some cases hinting’ which makes it possible to make correc- quality TrueType fonts shrink by almost 50% (and tions specific to particular resolutions (measured in lose their quality, of course) by this kind of liposuc- ppem — pixels per ‘em’). This is useful in correct- tion. Type 1 font hinting is simpler and so rarely ing drop-outs which occur over certain size ranges. adds more than 10% to 20% to file size. A glyph has to be checked at all sizes that a user Hinting code is interpreted by the rasterizer and is likely to use (‘waterfalls’), and drop-outs patched so its effectiveness depends on how well the raster- up using delta hints that apply at those sizes. It is izer makes use of it. Adobe Type Manager (ATM) possible to draw a complete bitmap using TrueType does the best job for fonts in Type 1 format, with hinting code. PostScript interpreters in printers typically not be- Type 1 fonts use a different (undocumented) ing quite as sophisticated. Various Display PostScript rasterization algorithm that first creates a continu- systems mostly do not do as well as ATM either. ous outline that has no drop-outs, but that is ap- This may change as Adobe upgrades PostScript in- proximately 1/2 pixel too wide all the way around. terpreters under its control. Naturally ‘clones’ don’t It then erodes this outline using Euler-number-pre- do as well. serving binary image operations — which cannot in- troduce drop-outs. Hence there is no need to ‘patch Moral up’ the result. Use only quality fonts. Fonts on those discs that offer ‘a zillion fonts for $29.95’ are mostly poorly Hint types and hinting tools made derivatives of the real thing. Typically the Some hints are font wide, such as information on original hinting is stripped out (perhaps because it ‘alignment zones,’ dominant stem widths, and over- is thought to be better protected by copyright than shoot suppression. But the bulk of hinting code is at the rest of the font program). the character level. Often the character level code is designed to interact with the font level code (e.g. so- References called ‘ghost’ stems interacting with font level align- Adobe Systems Inc. Adobe Type 1 Font Format. ment zones at x-height, cap-height, figure-height, as- Addison-Wesley, 1.1 edition, 1993. cender, descender heights and so on). Adobe Systems Inc. “Font Hint Information”. Some simple types of hints follow systematic http://www.adobe.com/supportservice/ rules and can be generated automatically by some devrelations/typeforum/hinting.html, applications such as Fontographer, FontLab, Type- 1997. Includes references to electronic copies Designer, and Ikarus. Others require judgement; of the Type 1 format specification and related quality hinting is more of an art than a science. For information. example, you get to choose (roughly speaking) be- Apple Computer, Inc. Inside Macintosh/ Text. tween preserving more of the unique character of a Apple technical library.
Recommended publications
  • Prepared for Leslie Cabarga's "Learn Fontlab Fast" Book* PC Truetype
    Prepared for Leslie Cabarga's "Learn FontLab Fast" book* PC TrueType / OpenType TT (Also known as: Data-fork TrueType, Windows TrueType, TrueType-flavored OpenType, TTF) Pros: Works on Windows, Linux and Mac OS X. May contain up to 65,535 characters, supports Unicode and can contain OpenType layout features, making the format suitable for multilingual fonts, non-latin fonts and advanced typographic features (such as automatic ligatures, small caps). TrueType hinting allows precise control in small screen sizes, can also contain bitmaps. Can include embedding rights information defining whether or not the font may be attached to electronic documents. Cons: Does not work on Mac OS 8/9; not completely cross-platform. May cause output problems on ten-year-old PostScript output and printing devices. The designer usually needs to convert the outlines from beziers which may introduce slight changes in the shape. When converted back to beziers (e.g. in Illustrator), the resulting curves have superfluous points. Manual TrueType hinting is laborious to create. The multilingual and advanced typography features only work with new OpenType-savvy applications, otherwise just the basic character set is available. For font families, requires two versions of the family name within each font: the first may contain any number of styles; the second "mini-family" may contain only four styles. OpenType PS (Also known as: OpenType-CFF, PostScript-flavored OpenType, OTF) Pros: Works on Windows, Linux, Mac OS 8.6, 9, and OS X. Uses the bezier curve system preferred by designers and used in drawing apps such as Illustrator and Freehand so letterforms can be drawn precisely and outlines need not be converted.
    [Show full text]
  • Introducing Opentype Ab
    UBS AG ab Postfach CH-8098 Zürich Tel. +41-44-234 11 11 Brand Management Visual Identity Stephanie Teige FG09 G5R4-Z8S Tel. +41-1-234 59 09 Introducing OpenType Fax +41-1-234 36 41 [email protected] July 2005 www.ubs.com OpenType is a new font format developed collaboratively by Adobe and Microsoft. OpenType enhances the TrueType and PostScript technologies and extends their capabilities. Most fonts today are released in the OpenType format, now considered the industry standard. The resulting new generation of UBSHeadline and Frutiger fonts offers improved typographic and layout features. 1. What is OpenType? Frutiger is not always Frutiger Due to the wide variety of Frutiger styles available world- A single font format wide, be sure to install and use only the client-specific UBS OpenType provides a single universally acceptable font licensed version of this font. Do not use any other versions format that can be used on any major operating system of Frutiger to create UBS media. and in any application. Using the client-specific UBS Frutiger guarantees access to Macintosh Windows UBS-relevant cuts. It also prevents changes to kerning and line-break in comparison to random Frutiger styles. UBSHeadline, Frutiger UBSHeadline, Frutiger (PostScript) (TrueType) Linotype Frutiger UBS Frutiger Frutiger LT 45 Light Frutiger 45 Light Macintosh and Frutiger LT 46 Light Italic Frutiger 45 Light Italic Windows Frutiger LT 55 Roman Frutiger 55 Roman Frutiger LT 56 Italic Frutiger 55 Roman Italic UBSHeadline, Frutiger Frutiger LT 65 Bold Frutiger 45 Light Bold (OpenType) Frutiger LT 75 Black Frutiger 55 Roman Bold Frutiger LT 47 Light Condensed Frutiger 47 Light CN Unicode OpenType supports Unicode, which allows much larger Comparison of common Linotype Frutiger versus UBS client- character sets – more than 65,000 glyphs per font in many specific Frutiger.
    [Show full text]
  • Advanced Printer Driver Ver.4.13
    Advanced Printer Driver for South Asia Ver.4 TM Printer Manual APD Overview Descriptions of the APD features. Using the APD Descriptions of simple printings and useful functions. Reference Descriptions of property seings of the printer driver. TM Flash Logo Setup Utility Ver.3 Descriptions of how to set and use the TM Flash Logo Setup Utility Ver3. Restrictions Descriptions of restrictions on use of the APD. Printer Specification Descriptions of the specifications of TM-T81. M00024103-2 Rev. D Cautions • No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Seiko Epson Corporation. • The contents of this document are subject to change without notice. Please contact us for the latest information. • While every precaution has taken in the preparation of this document, Seiko Epson Corporation assumes no responsibility for errors or omissions. • Neither is any liability assumed for damages resulting from the use of the information contained herein. • Neither Seiko Epson Corporation nor its affiliates shall be liable to the purchaser of this product or third parties for damages, losses, costs, or expenses incurred by the purchaser or third parties as a result of: accident, misuse, or abuse of this product or unauthorized modifications, repairs, or alterations to this product, or (excluding the U.S.) failure to strictly comply with Seiko Epson Corporation’s operating and maintenance instructions. • Seiko Epson Corporation shall not be liable against any damages or problems arising from the use of any options or any consumable products other than those designated as Original EPSON Products or EPSON Approved Products by Seiko Epson Corporation.
    [Show full text]
  • Font HOWTO Font HOWTO
    Font HOWTO Font HOWTO Table of Contents Font HOWTO......................................................................................................................................................1 Donovan Rebbechi, elflord@panix.com..................................................................................................1 1.Introduction...........................................................................................................................................1 2.Fonts 101 −− A Quick Introduction to Fonts........................................................................................1 3.Fonts 102 −− Typography.....................................................................................................................1 4.Making Fonts Available To X..............................................................................................................1 5.Making Fonts Available To Ghostscript...............................................................................................1 6.True Type to Type1 Conversion...........................................................................................................2 7.WYSIWYG Publishing and Fonts........................................................................................................2 8.TeX / LaTeX.........................................................................................................................................2 9.Getting Fonts For Linux.......................................................................................................................2
    [Show full text]
  • Steps to Install Your New Font
    Steps to Install your new font: • Go to Control Panel. Click on your Start button and select Settings > Control Panel (or Open My Computer then Control Panel) • Go to your Fonts folder. Open (Doubleclick) the Fonts folder. • Go to Install New Font. Select File | Install New Font. Check the Font FAQ if your Install New Font command is missing. • Find the directory/folder with the font(s) you want to install. Use the Folders: and Drives: windows to move to the folder on your hard drive, a disk, or CD where your new TrueType or OpenType fonts are located. • Find the font(s) you want to install. TrueType fonts have the extension .TTF and an icon that is a dog-eared page with two overlapping Ts and require only this one file for installation and use. OpenType fonts have the extension .TTF or .OTF and a little icon with an O and require only this one file for installation and use. Highlight the TrueType or OpenType font to install from the List of fonts window. • Install the font(s). Click OK. This completes your TrueType or OpenType font installation. Tips: 1. Put Installed Fonts on Your Hard Drive. If you are going to install TrueType or OpenType fonts from a CD be sure the 'Copy fonts to folder' box is checked; otherwise, fonts may not be available to use if the CD is not in the drive at all times. 2. Use the Right Fonts for Windows. There are slight differences in the TrueType fonts designed for each OS therefore Mac and Windows users cannot share TrueType fonts.
    [Show full text]
  • Web Typography │ 2 Table of Content
    Imprint Published in January 2011 Smashing Media GmbH, Freiburg, Germany Cover Design: Ricardo Gimenes Editing: Manuela Müller Proofreading: Brian Goessling Concept: Sven Lennartz, Vitaly Friedman Founded in September 2006, Smashing Magazine delivers useful and innovative information to Web designers and developers. Smashing Magazine is a well-respected international online publication for professional Web designers and developers. Our main goal is to support the Web design community with useful and valuable articles and resources, written and created by experienced designers and developers. ISBN: 978-3-943075-07-6 Version: March 29, 2011 Smashing eBook #6│Getting the Hang of Web Typography │ 2 Table of Content Preface The Ails Of Typographic Anti-Aliasing 10 Principles For Readable Web Typography 5 Principles and Ideas of Setting Type on the Web Lessons From Swiss Style Graphic Design 8 Simple Ways to Improve Typography in Your Designs Typographic Design Patterns and Best Practices The Typography Dress Code: Principles of Choosing and Using Typefaces Best Practices of Combining Typefaces Guide to CSS Font Stacks: Techniques and Resources New Typographic Possibilities with CSS 3 Good Old @Font-Face Rule Revisted The Current Web Font Formats Review of Popular Web Font Embedding Services How to Embed Web Fonts from your Server Web Typography – Work-arounds, Tips and Tricks 10 Useful Typography Tools Glossary The Authors Smashing eBook #6│Getting the Hang of Web Typography │ 3 Preface Script is one of the oldest cultural assets. The first attempts at written expressions date back more than 5,000 years ago. From the Sumerians cuneiform writing to the invention of the Gutenberg printing press in Medieval Germany up to today՚s modern desktop publishing it՚s been a long way that has left its impact on the current use and practice of typography.
    [Show full text]
  • General Solution to UI Automation
    Loong: General Solution to UI Automation TECHNICAL REPORT TR-2013-002E Yingjun Li , Nagappan Alagappan Loong: General Solution to UI Automation Abstract We have two different solutions for UI automation. First one is based on accessibility technology, such as LDTP [1]. Second one is based on image comparison technology such as Sikuli [2]. Both of them have serious shortcomings. Accessibility technology cannot recognize and operate all UI controls. Image comparison technology contains too many flaws and hard-coded factors which make it not robust or adequate for UI automation. The principles of the two technologies are so different with each other. This means it is possible that we use accessibility technology to overcome shortcomings of image comparison technology and vice versa. In this paper, we integrate accessibility technology with image comparison technology at the API level. I use LDTP and Sikuli to demonstrate the integration. Firstly, our integration overcomes respective shortcomings of the two technologies; Secondly, the integration provides new automation features. The integration is named Loong. It is a general solution to UI automation because it not only solves problems but also provides new automation features to meet various requirements from different teams. 1. Introduction I use LDTP to represent LDTP (Linux), Cobra (Windows) and PyATOM (Mac OS X) because they are all based on accessibility technology and provide same APIs. If UI controls are standard - provided by operating system and have accessibility enabled), accessibility technology such as LDTP is a good choice to recognize and operate them. However, LDTP cannot recognize and operate controls which do not have accessibility enabled.
    [Show full text]
  • Advancements in Web Typography (Webfonts and WOFF)
    Advancements in Web Typography (WebFonts and WOFF) Aaron A. Aliño Graphic Communication Department California Polytechnic State University 2010 Advancements in Web Typography (WebFonts and WOFF) Aaron A. Aliño Graphic Communication Department California Polytechnic State University 2010 Table of Contents Chapter I: Introduction………………………………………………………….…………..2 Chapter II: Literature Review……………………………………………………….………5 Chapter III: Research Methods………………………………………………….…..…....18 Chapter IV: Results………………………………………………………………….……..24 Chapter V: Conclusions……………………………………………………………….…..38 References……………………………………………………………………………...…..41 1 Chapter I: Introduction When it comes to the control one has in designing and creating content for the World Wide Web, typography should be no different. Print designers have had the advantage for a long time over their ability to choose exactly how type is printed, limited only by their imagination and the mechanical limits of setting and printing type. Web designers, on the other hand, have been held back by the inherent hardware and software limitations associated with web design and font selection. What this means is that web designers have not been able to control type exactly the way they want. Web designers have been limited to fonts that can safely be displayed on most computers and web browsers. If web designers wanted to display type with a special font, they had to resort to a workaround that was not always effective. Web designers should have the same absolute control over typography as print designers. Control of web typography has gotten much better compared to the early days of web design, but 2 considering how powerful and robust computers and web browsers are now, it seems unfortunate that control over web typography is so primitive That has changed now.
    [Show full text]
  • “The Art and Tradition of Typography” by Greg Hitchcock @Fontblog
    The Art and Tradition of Typography - fontblog - Site Home - MSDN Blogs 8/28/10 5:33 PM The Art and Tradition of Typography FontBlog 25 Jun 2010 6:31 PM 5 The Art and Tradition of Typography For over 25 years Microsoft has been very focused on the development of type and type technologies. In order to fully understand the technical foundations of typography in Windows, a brief overview of some of the highlights of “typographic engineering” from the past 500 years can add some useful insight. Now, by referring to 500 years of type, there is a clear reference to Johannes Gutenberg and his involvement in the development of moveable metal type in Europe. Although much of this discussion is centered on the development of type and typography for Latin based scripts, there is an equivalent rich history of other type scripts throughout the world, and I’ll attempt to make reference to these throughout this article. The craftsmen who created the type for printing presses were part engineer and part artisan, and had many technical challenges to solve. The first step in creating a piece of lead type involves the process of punchcutting. This process involves carving a three dimensional image (in reverse) of each character of the font into the end of a steel punch—a different image and a separate punch for each font’s size. The characters at different sizes were not typically scaled clones of other sizes; instead each size had its own attributes for the font, based on the size at which the reader would view the text.
    [Show full text]
  • IBM Printers and Print Software Now Support Truetype/Opentype Fonts and Unicode Print Data
    Software Announcement October 28, 2003 IBM printers and print software now support TrueType/OpenType Fonts and Unicode print data Overview IBM now offers support for TrueType/OpenType fonts in printer hardware, print server software on various platforms, and new font offerings. The TrueType font technology, developed by Apple and Microsoft , is the most prevalent font technology in the industry today. It is an open font standard that is widely published. The OpenType font format is an extension of the TrueType format that allows better support for international character sets, and broader multi-platform support. OpenType includes information needed to fully support Unicode data for multilingual print and presentation using a single font. It also provides the flexibility of allowing either TrueType outlines or the other standard font technology, Adobe Type 1, to be packaged as an OpenType font. These new offerings provide significant benefits: • You will have more choices in selecting typefaces, especially for non-Latin languages • They provide a truly multilingual environment through support of Unicode, enabling the globalization of applications • You can print from Windows applications with the same fonts that appear on the screen Planned availability dates • Already available − IBM Infoprint 4000 High-Speed Printer Models IS1, IS2, ID2, ID4, ID6, IR2, and IR4 − IBM Infoprint 4100 High-Speed Printer Models HS1, PS1, HD2, PD4, HD4, and HS2. • December 12, 2003 − IBM Print Services Facility for z/OS V3R4 − IBM Infoprint Fonts for Multiplatforms − IBM Page Printer Formatting Aid/370 This announcement is provided for your information only. For additional information, contact your IBM representative, call 800-IBM-4YOU, or visit the IBM home page at: http://www.ibm.com.
    [Show full text]
  • Phaser 4400 Laser Printer Features Guide
    Phaser™ 4400 Laser Printer Features Guide Copyright © 2002, Xerox Corporation. All Rights Reserved. Unpublished rights reserved under the copyright laws of the United States. Contents of this publication may not be reproduced in any form without permission of Xerox Corporation. Copyright protection claimed includes all forms of matters of copyrightable materials and information now allowed by statutory or judicial law or hereinafter granted, including without limitation, material generated from the software programs which are displayed on the screen such as styles, templates, icons, screen displays, looks, etc. XEROX®, The Document Company®, the stylized X, CentreWare®, DocuPrint®, and Workset® are registered trademarks of Xerox Corporation. infoSMART™, Phaser™, PhaserPort™, PhaserSMART™, and PhaserTools™ are trademarks of Xerox Corporation. Adobe®, Acrobat®, Acrobat® Reader®, Illustrator®, PageMaker®, Photoshop®, and PostScript®, ATM®, Adobe Garamond®, Birch®, Carta®, Mythos®, Quake®, and Tekton® are registered trademarks and Adobe Jenson™, Adobe Brilliant Screens™ technology, and IntelliSelect™ are trademarks of Adobe Systems Incorporated or its subsidiaries which may be registered in certain jurisdictions. Apple®, LaserWriter®, LocalTalk®, Macintosh®, Mac® OS, AppleTalk®, TrueType2®, Apple Chancery®, Chicago®, Geneva®, Monaco®, and New York® are registered trademarks, and QuickDraw™ is a trademark of Apple Computer Incorporated. Marigold™ and Oxford™ are trademarks of AlphaOmega Typography. Avery™ is a trademark of Avery Dennison Corporation. PCL® and HP-GL® are registered trademarks of Hewlett-Packard Corporation. Hoefler Text was designed by the Hoefler Type Foundry. ITC Avant Guard Gothic®, ITC Bookman®, ITC Lubalin Graph®, ITC Mona Lisa®, ITC Symbol®, ITC Zapf Chancery®, and ITC Zapf Dingbats® are registered trademarks of International Typeface Corporation. Bernhard Modern™, Clarendon™, Coronet™, Helvetica™, New Century Schoolbook™, Optima™, Palatino™, Stempel Garamond™, Times™, and Univers™ are trademarks of Linotype-Hell AG and/or its subsidiaries.
    [Show full text]
  • Higher Quality 2D Text Rendering
    Journal of Computer Graphics Techniques Vol. 2, No. 1, 2013 Higher Quality 2D Text Rendering http://jcgt.org Higher Quality 2D Text Rendering Nicolas P. Rougier INRIA No hinting Native hinting Auto hinting Vertical hinting Figure 1. When displaying text on low-resolution devices (DPI < 150), one typically has to decide if one wants to respect the pixel grid (e.g., Cleartype technology / Microsoft / native hinting) for crisp rendering or, to privilege glyph shapes (Quartz technology / Apple / no hinting) at the cost of blurring. There is, however, a third way that may combine the best of the two technologies (vertical hinting). Abstract Even though text is pervasive in most 3D applications, there is surprisingly no native sup- port for text rendering in OpenGL. To cope with this absence, Mark Kilgard introduced the use of texture fonts [Kilgard 1997]. This technique is well known and widely used and en- sures both good performances and a decent quality in most situations. However, the quality may degrade strongly in orthographic mode (screen space) due to pixelation effects at large sizes and to legibility problems at small sizes due to incorrect hinting and positioning of glyphs. In this paper, we consider font-texture rendering to develop methods to ensure the highest quality in orthographic mode. The method used allows for both the accurate render- ing and positioning of any glyph on the screen. While the method is compatible with complex shaping and/or layout (e.g., the Arabic alphabet), these specific cases are not studied in this article. 50 Journal of Computer Graphics Techniques Vol.
    [Show full text]