FontLab Forum
2012-02-09, 03:42:24 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the FontLab forum, read how to use it! Update: Archives from old MSN forums are now available on our forum.
 
   Home   Help Search Calendar Downloads Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]
  Print  
Author Topic: Number of subpaths and flattened paths  (Read 4130 times)
mekkablue
Beta: FontLab Studio Mac
Hero Member
***

Karma: +0/-0
Austria Austria

Posts: 40



WWW
« on: 2009-03-18, 14:13:19 »

Hi,

I've had a problem with a friend's pixel-style display font (see attached image) in OTF/CFF (PS flavor) format. As you can see, he uses a high number of subpaths in each glyph, which in turn yields a limitcheck error on my laserprinter when I try to print it. AFDKO's checkOutlines says, Too many supaths! (sic) Maximum number allowed is 64 Error: exception failure. A subpath is what in FontLab is a contour: a complete closed line, says the help file. But I couldn't find further information on the (maximum) number of contours in a glyph. Can someone point me to reference material, a technote maybe?

According to Adobe's Type 1 Font Format, chapter 3.4 (Character Paths), we've likely hit the limits of what the printer can swallow in terms of so-called flattened paths. However, it doesn't say what precisely a flattened path is. I suppose a PS renderer subdivides a curve into straight line pieces before rasterizing, but that's just my guess. Again, can someone enlighten me about the nature of flattened paths, or point me to a good source?

In case any of you ever run into this problem, converting the outlines to TrueType curves, turning them clockwise and saving the font as a TTF seems to be a working solution so far.

TIA, Eric.
Logged
Read Roberts (Adobe)
Team: Adobe
Hero Member
****

Karma: +6/-0
United States United States

Posts: 27

Fontlab Studio 5.0.4, built 2741, Mac OX 10.5


Email
« Reply #1 on: 2009-05-04, 18:04:00 »

You assume correctly. Most rasterizers reduce outlines to a series of very short straight line segments, before they start to decide which pixels to turn off or on. There is no magic number which is safe, as every PostScript implementation has a different limit.  The older the printer, the more likely you are to see this problem. The early interpreters had a limit of 1500 sub-paths; it is much higher with  modern printers. The number of straight line segments increases not only with the complexity of the glyph, but also with the point size, although the size effect is non-linear, as the PostScript interpreter changes how it rasterizes glyphs at specific point size thresholds, such as at 72 dpi and 400 dpi , to keep this from happening with all glyphs as they get large.

- Read Roberts
Logged
Tags:
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!