gsave false upath clippath infill grestore ?
won't work if the path includes any protected character
outline though. Might want a strokepath before upath
depending on how the path is to be used.
Well, my approach was to use the original path as
aperture and determine whether any of it would be
painted by filling the clippath. Yours is using the
clippath as aperture to see if any of it would be
painted by filling the original path. Since what we're
really after is whether there is a nonempty intersection
of the two regions, I'm thinking the choice of approach
2. In general a clippath can be a complicated nested set of things,
whereas the currentpath is known to be one character's path,
strokepath'ed. That asymmetry raises the possibility that one method
would be more efficient, though I don't know which. But in my case the
overlappingness is tested for many characters and one constant
clippath, so I should calculate the upath of the clippath once and
store it in a variable.
3. Many thanks for the prompt and expert help.
You could use the 'stopped' operator to execute upath, and
check the result.
For an example of what it does add some text to the items of
SubTitles[ ... ], and change the def of both OverlapSubTitlesOnTitles
and SubTitlesClippedWithinTitles to true.
The bug in Acrobat Professional described in
still causes some imperfections in the printed version, but I'll have
to live with that.
Did you measure any effect on your run time of saving
the clippath with 'true upath' rather than 'false upath'?
I might naively think that your application, with many
tests against the same saved path, could benefit from
caching of the path.
Good to know - I hacked up an InUPathDecode filter
(give it a upath, bbox, and resolution, and read it out
as a 1 bpp b/w image stream) and I assumed that
'true upath' would be the way to go, but I hadn't
actually benchmarked it against 'false upath' to check
my assumption. :)