🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: fj.lang.postscript
5 messages
5 total messages Started by LAO Shihong Tue, 23 Apr 1996 00:00
does type1 use eofill only?
#791
Author: LAO Shihong
Date: Tue, 23 Apr 1996 00:00
16 lines
1094 bytes
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)
Re: does type1 use eofill only?
#792
Author: Russell Lang
Date: Wed, 24 Apr 1996 00:00
16 lines
1390 bytes
lao@zoo.ncl.omron.co.jp (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?

I seem to remember that Type 1 outlines must be written
such that either eofill or fill can be used.
That is, intersecting paths are not permitted in Type 1 fonts.

Sorry I can't answer your question about converting
crossed paths to outlines.  Look in the Red Book to
see if PostScript provides any functions for simplifying
a path.
Re: does type1 use eofill only?
#793
Author: Aandi Inston
Date: Wed, 24 Apr 1996 00:00
22 lines
1446 bytes
lao@zoo.ncl.omron.co.jp (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?

As I recall, you should write a type 1 font so that 'outside' paths
run counter clockwise, and 'inside' paths run clockwise. This is a
'must' in the type 1 font format, and some programs may not work
properly if this is not the case. Paths 'should not' overlap, not
because they will be filled wrong, but because (as with the first
rule), it allows charpath and stroked fonts to work consistently.




----------------------------------------
Aandi Inston  100126.1304@compuserve.com
Re: does type1 use eofill only?
#795
Author: Joe Hecht
Date: Thu, 25 Apr 1996 00:00
34 lines
1794 bytes
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.

In a nutshell, start with a count of zero, and outside the path.
Now draw a invisable line through the path, and increment your count
every time you cross a path outline that is traveling one direction,
and decrement the count every time you cross a path that travels
the other direction. Whenever the count is non-zero, you are inside
the path, therefore it is filled.

Hope that helps...

Joe
-- 
Joe C. Hecht
Borland Delphi Developer Support Group
http://www.borland.com
Re: does type1 use eofill only?
#796
Author: 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
------------------------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads