* including dingbats in Metafun
@ 2002-06-09 13:05 Johannes Hüsing
2002-06-09 20:21 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Hüsing @ 2002-06-09 13:05 UTC (permalink / raw)
Hi all,
apologies if my mail doesn't hit the list directly: My mail address was
temporarily unavailable which might have caused the mailing list engine
to set me to no-member status.
Here's my problem: I would like to set up a style using some symbols of
Luc Devroye's Sugaku fonts as graphical elements. When I run the following,
the overlay doesn't contain any of the desired elements.
Here's my test file:
%output=pdf
\startMPinclusions
verbatimtex
\definesymbol[karo]{\getglyph{Kinkimono}{\char017}}
etex
\stopMPinclusions
\starttext
\startuseMPgraphic{rechteck}
fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor .7white;
label(btex \symbol[karo] etex, origin);
label(btex \symbol[karo] etex, (0,\overlayheight));
label(btex \symbol[karo] etex, (\overlaywidth, 0));
label(btex \symbol[karo] etex, (\overlaywidth, \overlayheight));
\stopuseMPgraphic
\defineoverlay[Text][{\useMPgraphic{rechteck}}]
\setupbackgrounds
[text][background=Text]
\input tufte
\stoptext
The temporarily generated PDF file for the background only contains
the grey rectangle:
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 426 596
%%Creator: MetaPost
%%CreationDate: 2002.04.10:2225
%%Pages: 1
%%EndProlog
%%Page: 1 1
%%HiResBoundingBox: 0 0 425.19193 595.27948
0.7 setgray
newpath 0 0 moveto
141.72849 0 283.46344 0 425.19193 0 curveto
425.19193 198.42346 425.19193 396.85602 425.19193 595.27948 curveto
283.46344 595.27948 141.72849 595.27948 0 595.27948 curveto
0 396.85602 0 198.42346 0 0 curveto closepath fill
showpage
%%EOF
What gives? The symbol font is available to pdfetex, insertiong the
symbols in ConTeXt gives the desired result.
Greetings
Johannes
--
Johannes Hüsing There is something fascinating about science. One gets
hannes@ruhrau.de such wholesale returns of conjecture from such a
trifling investment of fact. Mark Twain
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: including dingbats in Metafun
2002-06-09 13:05 including dingbats in Metafun Johannes Hüsing
@ 2002-06-09 20:21 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2002-06-09 20:21 UTC (permalink / raw)
Cc: ntg-context
At 03:05 PM 6/9/2002 +0200, Johannes Hüsing wrote:
>\startMPinclusions
>verbatimtex
>\definesymbol[karo]{\getglyph{Kinkimono}{\char017}}
>etex
>\stopMPinclusions
make that:
\startMPenvironment
\definesymbol ....
\stopMPenvironment
>\starttext
>\startuseMPgraphic{rechteck}
>fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor .7white;
latesr version: fill OverlayBox withcolor ...
>label(btex \symbol[karo] etex, origin);
>label(btex \symbol[karo] etex, (0,\overlayheight));
>label(btex \symbol[karo] etex, (\overlaywidth, 0));
>label(btex \symbol[karo] etex, (\overlaywidth, \overlayheight));
>\stopuseMPgraphic
btw, there's also: OverlayWidth and OverlayHeight now, looks better
>\defineoverlay[Text][{\useMPgraphic{rechteck}}]
no real need to use the outer {} here -)
does
\starttext
\definesymbol[...][...]
\symbol[...]
\stoptext
work ok?
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-09 20:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-09 13:05 including dingbats in Metafun Johannes Hüsing
2002-06-09 20:21 ` 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).