Showing posts with label OpenType. Show all posts
Showing posts with label OpenType. Show all posts

Wednesday, 19 June 2013

You've Got CFF!

Seven weeks ago today, Google along with Adobe and the FreeType project, released a new CFF rasterizer into FreeType for beta testing. Well, it’s been put through its paces and is ready for release. In the latest version of FreeType, build 2.5, the new Adobe CFF rasterizer will now be on by default. This means that products using FreeType, such as Chrome OS, Android, and Linux, will have better looking CFF fonts.  The new CFF rasterizer in FreeType has already been made available in the dev channel build of Chrome OS.
FreeType Using the Old CFF Rasterizer with Light Auto Hint (most common setting)
FreeType Using the Adobe CFF Rasterizer (now the default CFF rasterizer)
The open source community has helped us find and fix several issues during this beta period and we are now ready for a stable release. The Adobe CFF rasterizer will continue to spread to new products. This work paves the way for FreeType-based platforms to provide users with richer and more beautiful reading experiences. This is only the start!

By Stuart Gill, Font and Text Team, Internationalization Engineering

Wednesday, 29 May 2013

Open Standard Color Font Fun for Everyone

People love using Emoji to communicate—it started in Japan and then spread through Asia and is becoming increasingly popular in the rest of the world. Instead of texting "How about going for a burger and beer at 7pm?", it’s much more fun to say,
To make this possible everywhere, we are releasing an open standard for color fonts and have added support for it to one of the most popular font rendering engines in the world—FreeType.

We want to make color Emoji available in an open and free way anywhere that you use text. Before the release of this new open standard, the use of color glyphs has been limited to systems doing special text processing and inserting images into the text or by using closed proprietary font formats. Both of those approaches have serious limitations. They make it difficult for developers to support color text in their applications and it is impossible for users to change the images used for the characters.

We are releasing four pieces to help developers start adding support to their systems: 
  1. specification for enhancements to the OpenType standard
  2. source changes to the FreeType rendering engine and the Skia 2D graphics library
  3. a tool to embed color glyphs into fonts
  4. three sample color fonts

These are all freely available to download and use from the Color Emoji Font Project site. Further, the changes to FreeType have also been integrated into the main code repository.
While color emoji may be the initial motivation for adding color to fonts, it is not the only reason to do so. Color fonts allow for a huge amount of extra expressive power. How about a font made from color images of fruit or a font that looks like extruded plastic blocks? You don’t have to imagine them -- have a look at the text that starts this blog post, it was produced using the FruityGirl font. You can download this font as well as Funkster from our project site and a prototype emoji font built from the Phantom Open Emoji images. These fonts show just a hint of what is possible.

This new format for storing color glyphs in fonts will allow for more expressive communication in everything you use. We hope that providing this open source release will truly bring a more colorful tomorrow!
Note: What appears to be color fonts in this blog post have been simulated. There is not yet a way to show these in text form until this technology makes its way into the products that you use. The work we have released is the first step in this process. We are working to get all of the other pieces in place.
By Behdad Esfahbod and Stuart Gill, Font and Text Team, Google Internationalization Engineering

Wednesday, 1 May 2013

Got CFF?


A dramatically improved CFF rasterizer for FreeType

In our commitment to the open source community, Google, in cooperation with Adobe and the FreeType project, released the Adobe CFF engine, an advanced CFF rasterizer, into open source for beta test. This paves the way for FreeType-based platforms to provide users with richer and more beautiful reading experiences. The FreeType open source software powers font display on more than a billion devices. It is used for rendering on a variety of platforms including Android, Chrome OS, Linux, iOS, and many versions of Unix.

OpenType, an extension of TrueType, can describe glyph outlines in two ways — TrueType outline format and Compact Font Format (CFF). CFF is a descendant of the PostScript font format developed by Adobe. These formats use different approaches to specifying the glyphs (the images for each character) and the hints (the instructions on how to modify a glyph to look good at certain sizes). CFF fonts are capable of very high quality display but the technology places the burden for this display quality on the text rasterizer instead of on the font as is done in TrueType. The new Adobe CFF engine brings that high quality rasterizer support to FreeType.

Because many display devices have finite resolution limits, displaying text requires balancing many things: making the text readable, ensuring that no characters are too light or too heavy, consistent height and width, all while respecting the original typeface design. The tradeoffs required to make the text look good are more difficult to balance as the size of the text decreases. For languages like Japanese, where there are often many strokes per character, it is even more difficult and great care must be taken to avoid the character turning into an unreadable blob.

Text rasterization produced by the new Adobe CFF engine in FreeType is dramatically more faithful to the typeface design. The improvements include better stem widths and placement, fewer dropouts, dramatic reduction in the ‘blobbiness’ of Chinese, Japanese, and Korean, and more even visual weight. While all of this may sound somewhat technical, the advantages are not, and will benefit technical and non-technical users alike. These improvements lead to more beautiful looking text that is easier to read.

FreeType Native CFF Rasterizer 

FreeType Light Auto Hint Rasterizer

FreeType using the New Adobe CFF Rasterizer


In these examples you can clearly see an improvement in the overall “beauty” of the text when the new Adobe CFF rasterizer is used. The original FreeType CFF rasterizer is used in the first sample and it has very inconsistent blackness with a lot of blobbiness. The sample generated using the original FreeType rasterizer with auto hinting is in the middle and it is better but it lightens the original font too much and makes it faint, plus the individual glyphs have a lot of variation in height. Finally, the last sample generated using the new advanced rasterizer is on the bottom and it produces more even blackness of text, fewer blobs, more even and consistent character heights, and fewer dropouts.

FreeType Native CFF Rasterizer

FreeType Light Auto Hint Rasterizer

FreeType using the New Adobe CFF Rasterizer

The improvement for Latin text is just as striking. The example above shows the quality improvement - still with the original FreeType on top, FreeType with auto hinting in the middle, and the new advanced CFF rasterizer in FreeType on the bottom.

The new Adobe CFF rasterizer is available to test as part of the FreeType release. Those who build applications and platforms using FreeType are encouraged during this beta period to test it out. The rest of you are unfortunately going to have to wait until after the beta test is done and the various platforms using FreeType have fully integrated the changes. We promise it will be worth the wait.

By Stuart Gill and Brian Stell, Internationalization Engineering