Re: Beginners question
Patrick Gundlach <[email protected]> Tue, 12 Sep 2023 15:35:44 +0200
| Newsgroups | gmane.comp.tex.metapost |
|---|---|
| Message-ID | <[email protected]> |
Hello Laurence, > Am 12.09.2023 um 15:24 schrieb [email protected]: > > In your example, you use a low-level command. Normally, one uses `label' or `dotlabel' to include text in a MetaPost file and this is what I'd recommend. thank you for your answer, I was more thinking of the interface than the usage of fonts. I have my own font implementation that I would like to use in metapost. Currently I have something like: def mytext(expr t, fnt, style) = runscript("sometext{"& fnt & ":" & style & ":" & t &"}") enddef; to be used like draw mytext( "my text to be output", "Meta Pro", "regular"); and I was thinking if this is a good interface. I really like the macros like: draw "my text to be output" infant "Meta Pro" withstyle "regular"; but I have no idea how this can be implemented or if it has any drawbacks. Patrick -- http://tug.org/metapost/