Beginners question

Patrick Gundlach <[email protected]> Tue, 12 Sep 2023 11:08:38 +0200
Newsgroups gmane.comp.tex.metapost
Message-ID <[email protected]>
Hello all,

I try to define a user interface such as:

draw "some text" infont "myfontfamily" withstyle "bold";

where infant ... and withstyle ... are optional ( and the defaults should be "text" and "regular").

(How) Is it possible to achieve this?

Is it advisable do to so? Or should I rather create an interface such as

draw text ("some text", "myfontfamily", "bold")?


Patrick




--
http://tug.org/metapost/