Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1300

Re: 'eofill'ing areas

From Helge Blischke <h.blischke@acm.org>
Newsgroups comp.lang.postscript
Subject Re: 'eofill'ing areas
Followup-To comp.lang.postscript
Date 2013-03-10 22:22 +0100
Message-ID <aq4bsuFseg3U3@mid.individual.net> (permalink)
References <aq418tFpv7gU1@mid.individual.net>

Followups directed to: comp.lang.postscript

Show all headers | View raw


Michael Unger wrote:

> I want to create areas with transparent elements on a coloured
> background. "eofill" is working exactly as expected within the
> "35mmFilmFrame" procedure, but it isn't within the "Logo" procedure -- I
> simply get coloured text on a transparent background instead of the
> other way round.
> 
> 
> ---><8------><8------><8------><8------><8------><8------><8------><8---
> 
> %!PS-Adobe-3.0 EPSF-3.0
> << /PageSize [595.3 841.9]
>>> setpagedevice
> 297.65 420.95 translate  % center of page
> 
> /inch {72 mul} def
> 
> /35mmFilmFrame {  % perforation vastly simplified
>    +0.7480 inch +0.7000 inch moveto
>    -0.7480 inch +0.7000 inch lineto
>    -0.7480 inch -0.7000 inch lineto
>    +0.7480 inch -0.7000 inch lineto
>    +0.7480 inch +0.7000 inch lineto
>    +0.7086 inch +0.4724 inch moveto
>    -0.7086 inch +0.4724 inch lineto
>    -0.7086 inch -0.4724 inch lineto
>    +0.7086 inch -0.4724 inch lineto
>    +0.7086 inch +0.4724 inch lineto
>    -0.6545 inch +0.5862 inch translate
>    +0.0190 inch +0.0550 inch moveto
>    -0.0390 inch +0.0550 inch -0.0390 inch +0.0350 inch 0.0200 inch arct
>    -0.0390 inch -0.0550 inch -0.0190 inch -0.0550 inch 0.0200 inch arct
>    +0.0390 inch -0.0550 inch +0.0390 inch -0.0350 inch 0.0200 inch arct
>    +0.0390 inch +0.0550 inch +0.0190 inch +0.0550 inch 0.0200 inch arct
>    eofill
> } def
> 
> /Logo {  % within the 24 mm x 36 mm film frame area
>    +0.7086 inch +0.4724 inch moveto
>    -0.7086 inch +0.4724 inch lineto
>    -0.7086 inch -0.4724 inch lineto
>    +0.7086 inch -0.4724 inch lineto
>    +0.7086 inch +0.4724 inch lineto
>    /Helvetica-Bold 36 selectfont
>    +0.0000 inch -0.0500 inch moveto
>    (test) stringwidth pop -0.5 mul 0 rmoveto
>    (test) true charpath
>    eofill
> } def
> 
> 0.0 0.0 0.8 0.0 setcmykcolor
> Logo
> 0.1 0.0 0.0 0.9 setcmykcolor
> 35mmFilmFrame
> 
> ---><8------><8------><8------><8------><8------><8------><8------><8---
> 
> 
> There is _no_ difference whether "true" or "false" is used as the second
> parameter for the "charpath" command. What am I doing wrong? (Adobe
> Distiller from Acrobat 6.0 Standard, Windows; no more recent version
> available)
> 
> Michael
> 

No idea what is going wrong with Distiller. I fed the file through 
Ghostscript (version 9.07) (only appended a showpage to the end), and the 
result seems OK.
Perhaps the missing showpage is the culprit.

Helge

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

'eofill'ing areas Michael Unger <spam.to.unger@spamgourmet.com> - 2013-03-10 18:46 +0100
  Re: 'eofill'ing areas Helge Blischke <h.blischke@acm.org> - 2013-03-10 22:22 +0100
    Re: 'eofill'ing areas Michael Unger <spam.to.unger@spamgourmet.com> - 2013-03-11 17:31 +0100
      Re: 'eofill'ing areas Helge Blischke <h.blischke@acm.org> - 2013-03-11 18:02 +0100
        Re: 'eofill'ing areas Michael Unger <spam.to.unger@spamgourmet.com> - 2013-03-12 18:45 +0100
          Re: 'eofill'ing areas Helge Blischke <h.blischke@acm.org> - 2013-03-13 11:59 +0100
            Re: 'eofill'ing areas Michael Unger <spam.to.unger@spamgourmet.com> - 2013-03-13 18:00 +0100
              Re: 'eofill'ing areas Helge Blischke <h.blischke@acm.org> - 2013-03-13 18:20 +0100
                Re: 'eofill'ing areas Olle <olavi.sakari@gmail.com> - 2013-03-19 00:25 -0700
                Re: 'eofill'ing areas Olle <olavi.sakari@gmail.com> - 2013-03-19 00:31 -0700
                Re: 'eofill'ing areas luser- -droog <mijoryx@yahoo.com> - 2013-03-20 13:28 -0700
                Re: 'eofill'ing areas Michael Unger <spam.to.unger@spamgourmet.com> - 2013-03-21 17:30 +0100
                Re: 'eofill'ing areas Helge Blischke <h.blischke@acm.org> - 2013-03-21 17:52 +0100
  Re: 'eofill'ing areas luser- -droog <mijoryx@yahoo.com> - 2013-03-10 18:48 -0700

csiph-web