Hinting and OS X
André G. Isaak
Posts: 632
Just a very quick question I was hoping someone could answer...
I know that Mac OS X doesn’t make use of hinting, but do Adobe applications, which make use of their own rasterizers, use hints on the Mac?
I’ve tried comparing hinted and unhinted versions of the same glyphs in InDesign without noticing any differences, but unfortunately I don't have access to a non-retina display where those of us with failing eyesight might be more likely to spot differences.
André
I know that Mac OS X doesn’t make use of hinting, but do Adobe applications, which make use of their own rasterizers, use hints on the Mac?
I’ve tried comparing hinted and unhinted versions of the same glyphs in InDesign without noticing any differences, but unfortunately I don't have access to a non-retina display where those of us with failing eyesight might be more likely to spot differences.
André
0
Comments
-
Seems to me like it has an effect.
Here are autohinted* (above) with unhinted (below) OTFs. InDesign CS6 8.0.2 on OSX 10.12.6 at Actual Size 100% view. 27-inch Apple LED Cinema Display.
Neither is stellar, but the point here is that there is a difference.
*(Only minimal StemSnapH and StemSnapV designated.)
3 -
Thanks. There I can clearly see the difference.0
-
To judge hinting on a retina screen, set the type really tiny (like 5pt) and then use the screen zoom from macOS to enlarge it. Make sure that you disable the ‘enhancement’.3
-
Yes, Adobe apps use the hinting built into fonts. Adobe has their own rasterizers, used by most of their apps. CoolType is the most common of the Adobe rasterizers, and is used by the major desktop apps (InDesign, Illustrator, Photoshop). It has multiple options and modes, though, so it's not like a single thing that produces just one result.1
-
Also, if you copy your generated fonts to "/Library/Application Support/Adobe/Fonts" they will update while the Adobe program remains open. So you can have a InDesign document with text, export the font from your editor, and switch back to InDesign and see the refreshed font without having to restart the program. Based on that you will notice hinting updates when you keep zoom levels the same and update a particular glyph to check.
1 -
just musing, I wonder about the value of the Adobe apps using hinting, when the eventual output is to the Web or print. How much content is consumed in the Apps, InDesign for instance? or is it useful for proofreading?0
-
The closer Adobe app rasterizers come to the look of the final outputs, the easier it is to make good decisions about type size, weight, and tracking.0
-
yes true if the hinting is for output to Windows, mostly? and if its the same hinting that will show up in the final output. all output for Mac will be unhinted. like I said just musing
0 -
I would prefer the Mac OS font rendering in Adobe apps, or at least an option to use it. On the other hand, if something is seriously wrong with the hinting, it does let you see it.0
-
if using a TT Hinted font such as Calibri for example or any TT Hinted font, do the Adobe apps show you the TT Hinting exactly as Hinted, or something else?1
-
Georg Seifert said:To judge hinting on a retina screen, set the type really tiny (like 5pt) and then use the screen zoom from macOS to enlarge it. Make sure that you disable the ‘enhancement’.0
-
Mike Duggan said:if using a TT Hinted font such as Calibri for example or any TT Hinted font, do the Adobe apps show you the TT Hinting exactly as Hinted, or something else?0
-
Adobe uses the hinting built into the font, but just as Microsoft has several radically different rasterizing schemes, Adobe has their own rasterizer doing its thing. Adobe's CoolType has LCD and b&w modes, and has been improved over time.
To add confusion, some person or people decided to call and label the LCD-specific rendering mode "CoolType"... that was a painfully dumb move.1 -
There are two fundamental steps to screen type rendering:
1. Gridfitting.
2. Rasterization.
In the first step, the glyph outline is modified (distorted). PostScript hints and TrueType instructions influence that distortion. Simply speaking, various distances between points that are similar in the original outline are actually equalized. Sometimes this means collapsing them to zero (so slightly convex or concave curves are transformed into straight lines), sometimes it's moving points so that all points along a stem or serif are aligned and the distances between points that are located at the opposite sides of a stem or serif are made equal across all glyphs.
20 years ago, gridfitting was done at real pixel-per-em sizes, so if type were to be rendered at 16 pixels per em, the contour points were all moved to sit exactly at the coarse grid of 16 "squares" per UPM size. And TrueType instructions would tell the renderer precisely: at 16 ppm, move this point here and that point there.
But now gridfitting is done differently. Whether it's Microsoft, Apple or Adobe, hints and instructions are used to gridfit the outline onto a much finer grid — often with differrent resolutions in X and Y. So if the font is rendered at 16 ppm, the gridfitting may be performed at a grid that is made of non-square rectangles of which there are 48 in the vertical and 224 in the horizontal. So the distortion still happens, but to a much smaller degree, because not the "16 ppm" instructions are executed but instead "48 ppm" instructions or "224 ppm" instructions.
Simply speaking, the font thinks it's being rendered in much larger size than it actually is, so the alignments and equalizations aren't as aggressive.
And then, once the renderer gets the gridfitted outline, it rasterizes it, i.e. projects the gridfitted outline onto a pixel map that is actually really the rectangle made of pixels that will be shown (so it may really be 16 ppm), but it uses complex antialiasing routines that colorize or grayscale the pixels differently if those pixels are near the gridfitted contour. Only pixels fully inside get the full color.
Or sometimes, they actually produce a rasterized monochrome bitmap at something like 48 or 224 ppm, and then use bitmap downsampling techniques with different sharpening and antialiasing filters (similar to how bitmap downsizing works in Photoshop).
The OS and app makers have been constantly refining both the gridfitting and the rasterization steps in their own renderers.
So the question is never "does it use hinting" but "how does it use hinting". Most modern apps and OSes still use hinting but differently than they used to.
The biggest difference is, in fact, in the gridfitting — the gridfitted outlines are being distorted to a much lesser degree than they used to. But also, more sophisticated ways to antialias the resulting bitmaps are being used.
In the early days, the antialiasing techniques that were used on fonts were specific to fonts. Today, they often use the same techniques as they use with normal vectors — but they still do gridfit *a bit*, which is why you can see the difference between hinted TT or PS glyphs and, say, SVG outlines.
3 -
Waaaait a minute.
“But now gridfitting is done differently.”
This has always been a three stage process, not two.
1 -
Mike Duggan said:just musing, I wonder about the value of the Adobe apps using hinting, when the eventual output is to the Web or print. How much content is consumed in the Apps, InDesign for instance? or is it useful for proofreading?
Illustrator and Photoshop are widely used for prototyping and mocking up web or app user interfaces.
But also, designers who work in those tools often zoom out a lot (because their monitors are also filled with panels and UI elements of the app). So they often see the type in text columns much smaller than the final output will be (even if it is for print).1 -
D. Epar ted said:Waaaait a minute.
“But now gridfitting is done differently.”
This has always been a three stage process, not two.0 -
AFAIK, it used to be so that after gridfitting, a monochrome bitmap was always produced, and then filtering/antialiasing happened. But today, this isn't always the case because type rendering often happens in the same pipeline as other vector assets using a variety of "vector backends" like OpenGL, Vulkan, Quartz, Metal, whatever.
So in some environments, font-specific processes stop at the "supersampled gridfitting" stage, so a font rendering module such as FreeType is used only up to the stage of getting gridfitted vectors, and then those gridfitted vectors are passed into the compositing engine which them does it's own thing dealing with the entire composition of type and graphics. Antialiasing and filtering happens there ultimately, but it's no longer font-specific.
But there are other solutions where it is indeed a "font rasterizer" such as ClearType or FreeType that produces the final antialiased bitmaps.
And some environments do a combination: if the text is small size and perfectly horizontal, they use the font rasterizer fully, all the way to getting the final bitmaps, but if the text is large or rotated (e.g. on maps), they only get the vectors, sometimes even not gridfitted to any specific ppm.1 -
Adam I think you’re saying that there is a sizing of some sort going on, but you’re not listing it among the two things :-) As Mike Reed explained it to me, long time ago, sizing, scaling, and rendering are fairly basic parts that I don’t think any of the solutions can skip.
Sizing in the process gets the font from upm to a ppm or to a super-ppm value, regardless of how, or how many times it does it, in preparation for scaling’s hinting. While not all fonts have hints, we all know what fonts with no hinting look like, and you don’t see those in the examples above, or most places. All other anti-aliased fonts are being rendered with some hinting, or hint-like substance.
So, e.g if folks want to really helpful, iduuno maybe instead of “It (Adobe Cooltype), has multiple options and modes, though, so it's not like a single thing that produces just one result”,
...get to bottom of it, if it’s an issue. If all things are equal then it does produce the one result, and if the results are unequal this is because something has changed.
Some Adobe apps e.g. offer Type Rendering Options, they have names, like SHARP, these Type Rendering Options. Type Rendering Options do or don’t resize or rescale the font depending on which rendering occurs!? Start at the user end, work your way back to the font maker end, string that friggin’ maze... toolmaker.:)
0
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 798 Font Technology
- 1K Technique and Theory
- 617 Type Business
- 444 Type Design Critiques
- 541 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 498 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports