🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.postscript
Article #796

Re: does type1 use eofill only?

#796
From: Berthold K.P. Horn
Date: Fri, 26 Apr 1996 00:00
48 lines
2612 bytes

In article <317F7B9F.3130@wpo.borland.com> Joe Hecht <jhecht@wpo.borland.com> writes:

   LAO Shihong wrote:
   > 
   > I want to convert some ps file to type1
   > ps font. Now I encountered one problem:
   > As some of the pathes are crossed, after
   > I have converted it to type1 font, those
   > crossed parts are shown as white holes.
   > Does type1 font use eofill only?
   > 
   > Are there any algorithmes can be used
   > to comvert those crossed pathes to outlines?
   > 
   > Thanks in advance. Any advice will be appreciated.
   > Feel free to reply in Japanese, Chinese or English.
   > 
   > ----
   > LAO Shihong (Firstname is surname)

   Types 1's use the Non-Zero Winding Rule.

Type 1 font rasterizing involves a `fill/eofill' operator that is quite 
different from the `top level' PostScript `fill/eofill' operator.
(For a start, it does not add an average of 1/2 pixel thickness all the 
way around).

However, from the point of view of which areas are black and which are 
white, it is in ATM equivalent to `eofill' except at large sizes where 
it is equivalent to `fill'.  

On some clone PS interpreters it acts like `fill' while on Adobe RIPs
it acts like `eofill'.

No, there is no way to change this.  You have just fix your outlines
by taking the union of the point sets defined by the pieces that overlap.

However, when using the `seac' operator to make composites, each part is
drawn separately, so you will not get white in the overlapping areas.
So if you can decompose your glyph into base and accent where the names
of the base and accent are in Adobe Standard Encoding you can use this trick.
You may need to `lie' about what the pieces are in order to use this trick.
------------------------------------------------------------------------------
Berthold K.P. Horn
Cambridge, Massachusetts, USA
------------------------------------------------------------------------------
Technical Details
Message-ID: <4lqhcu$6sl@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4lhfc1$cn9@omrongw2.wg.omron.co.jp> <317F7B9F.3130@wpo.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f62f2,779d760b38fd0bd3
X-Google-Attributes: gidf62f2,public
X-Google-Thread: fa2ca,779d760b38fd0bd3
X-Google-Attributes: gidfa2ca,public
X-Google-Thread: 10a53f,779d760b38fd0bd3
X-Google-Attributes: gid10a53f,public
From: bkph@kauai.ai.mit.edu (Berthold K.P. Horn)
Subject: Re: does type1 use eofill only?
Date: 1996/04/26
Message-ID: <4lqhcu$6sl@life.ai.mit.edu>
X-Deja-AN: 151555672
references: <4lhfc1$cn9@omrongw2.wg.omron.co.jp> <317F7B9F.3130@wpo.borland.com>
organization: MIT Artificial Intelligence Lab
newsgroups: fj.lang.postscript,comp.lang.postscript,comp.font