ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: ralf.waldvogel@pta.de
To: ntg-context@ntg.nl
Subject: [Metapost] Using mkIV and metapost to produce SVG
Date: Tue, 6 May 2014 13:31:39 +0200	[thread overview]
Message-ID: <OF9C22E6CA.3B490B4B-ONC1257CD0.003F5290-C1257CD0.003F5292@integrator-ag.de> (raw)
In-Reply-To: 

Dear all,

as I have seen on the mailing list digest, my original (HTML) mail has been scrambled. Sorry for that. Here the repost:


I would like to produce an svg file from a Metapost input file using some of ConTeXt's typesetting features (esp. using System OTF Fonts) using something like:

\startbuffer[buffer:dummy]
    \start
        \startcolor[white]
        \framed[align=middle,width=28mm,frame=off]
        {
	        \SansBodyBold % Font definition done earlier
		Test to \par
		rendered \par
        }
        \stopcolor
    \stop
\stopbuffer

% ....


\startuniqueMPgraphic{mp:margin}    
    picture text;
    text := btex \getbuffer[buffer:dummy] etex;
    draw text shifted(-11.8mm,-4.8mm );

   % Some more fancy drawing her
\stopuniqueMPgraphic

Can I render that with MetaPost to SVG?
Is it possible to render text as paths not as referenced glyphs in MetaPost/ConTexT?


Unfortunately I have to stick to SVG as the resulting output format.
Converting from PDF to SVG is not an option at the moment due a) performance considerations and b) trouble with generated font names in the resulting ConTeXt PDF file (inkscape as well as pdf2svg produce real strange results). 
 

Please let me know, if you need furhter information.
Thank you very much in advance.
Kind regards,

Ralf


http://www.pta.de
Mit ca. 2.460 Erfahrungsberichten aus 45 Jahren erfolgreicher Projektarbeit!

PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschaeftsfuehrer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2014-05-06 11:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06 11:31 ralf.waldvogel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-05-05 11:54 ralf.waldvogel
2014-05-06 11:15 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF9C22E6CA.3B490B4B-ONC1257CD0.003F5290-C1257CD0.003F5292@integrator-ag.de \
    --to=ralf.waldvogel@pta.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).