* Re: drop shadow
[not found] <96cdad12-73b6-d648-6004-7a204005b8c1@fiee.net>
@ 2018-09-10 11:36 ` Hans Hagen
0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2018-09-10 11:36 UTC (permalink / raw)
To: Henning Hraban Ramm; +Cc: mailing list for ConTeXt users, taco
On 9/7/2018 2:52 PM, Henning Hraban Ramm wrote:
> Hi Hans,
> here's my drop shadow experiment.
>
> The first output is good enough, but I'd like the shadow to adapt
> automatically to the current font size. I guess you know how to do that...
>
> Even better would be some kind of drop shadow that follows arbitrary
> shapes, maybe even letters (like drop shadows e.g. in InDesign do).
\startuniqueMPgraphic{mpnewshadow}{offset}
MyOffset := \MPvar{offset} ;
...
... OverlayWidth ...
\defineoverlay[newshadow][\uniqueMPgraphic{mpnewshadow}{offset=.3em}]
you use unique graphics ... so you need to make sure that offset is part
of the uniqueness
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-10 11:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <96cdad12-73b6-d648-6004-7a204005b8c1@fiee.net>
2018-09-10 11:36 ` drop shadow Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).