From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76051 Path: news.gmane.org!not-for-mail From: Marco Newsgroups: gmane.comp.tex.context Subject: Re: Font for MetaPost graphics Date: Tue, 8 May 2012 19:19:16 +0200 Message-ID: <20120508191916.1e94ad6d@Zewz> References: <20120503020859.65265f12@Zewz> <20120503031354.4eb059a3@Zewz> <4FA50DE1.9060902@wxs.nl> <20120508190125.72291b39@Zewz> <4FA95304.9070801@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/MtSfaWgO_=dpVfv/0/VSPSX" X-Trace: dough.gmane.org 1336497578 4615 80.91.229.3 (8 May 2012 17:19:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 May 2012 17:19:38 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 08 19:19:37 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SRo4U-0005QH-A0 for gctc-ntg-context-518@m.gmane.org; Tue, 08 May 2012 19:19:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25599101CF; Tue, 8 May 2012 19:19:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id h7XqvM1ScWIp; Tue, 8 May 2012 19:19:32 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AC630101E2; Tue, 8 May 2012 19:19:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EE3B101E2 for ; Tue, 8 May 2012 19:19:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id toAhuGN-j83u for ; Tue, 8 May 2012 19:19:28 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 693CB101CF for ; Tue, 8 May 2012 19:19:28 +0200 (CEST) Original-Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q48HJRSX017264 for ; Tue, 8 May 2012 19:19:27 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SRo4M-0005Oa-A0 for ntg-context@ntg.nl; Tue, 08 May 2012 19:19:26 +0200 Original-Received: from 83.68.239.197 ([83.68.239.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2012 19:19:26 +0200 Original-Received: from netuse by 83.68.239.197 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2012 19:19:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 273 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.68.239.197 X-Newsreader: Claws Mail 3.7.8 (GTK+ 2.24.4; i686-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.3; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03H7tjrTU - a095b19382e1 - 20120508 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76051 Archived-At: --MP_/MtSfaWgO_=dpVfv/0/VSPSX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2012-05-08 Hans Hagen wrote: > On 8-5-2012 19:01, Marco wrote: > > On 2012-05-05 Hans Hagen wrote: > > Did I? My bad ;) > > This code fails: > > > > \defineMPinstance [mympinstance] [metafun] [textcolor=red] > > > > \starttext > > > > \startMPcode > > draw textext("some text") ; > > \stopMPcode > > > > \startMPcode{mympinstance} > > draw textext("some text") ; > > \stopMPcode > > > > \stoptext > > > > Marco > > It works here. Fails here, source and log are attached. current version: 2012.05.08 13:45 Marco --MP_/MtSfaWgO_=dpVfv/0/VSPSX Content-Type: text/x-tex Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=g.tex \defineMPinstance [mympinstance] [metafun] [textcolor=red] \starttext \startMPcode draw textext("some text") ; \stopMPcode \startMPcode{mympinstance} draw textext("some text") ; \stopMPcode \stoptext --MP_/MtSfaWgO_=dpVfv/0/VSPSX Content-Type: text/x-log Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=g.log (g.tex ConTeXt ver: 2012.05.08 13:45 MKIV fmt: 2012.5.8 int: english/english system > cont-new.mkiv loaded (/home/zewz/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > g.top loaded system > options > start used options used options > % runtime options files (command line driven) used options > \unprotect used options > % feedback and basic job control used options > % handy for special styles used options > \startluacode used options > document = document or { } used options > document.arguments={ used options > ["once"]=true, used options > } used options > document.files={ used options > "g", used options > } used options > \stopluacode used options > % process info used options > \setupsystem[inputfile=g] used options > \setupsystem[\c!n=3,\c!m=1] used options > \enabledirectives[system.runonce] used options > % modes used options > % options (not that important) used options > \startsetups *runtime:options used options > \stopsetups used options > % styles and modules used options > \startsetups *runtime:modules used options > \stopsetups used options > % done used options > \protect \endinput system > options > stop used options (g.top) fonts > latin modern fonts are not preloaded languages > language en is active {/home/zewz/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/home/zewz/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/zewz/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded metapost > initializing instance 'metafun' using format 'metafun' metapost > loading 'metafun': /home/zewz/context/tex/texmf-context/metapost/context/base/metafun.mpiv metapost > initializing instance 'mympinstance' using format 'metafun' metapost > loading 'metafun': /home/zewz/context/tex/texmf-context/metapost/context/base/metafun.mpiv ! terminal: >> OverlayLineColor >> (0,0,0) ! Equation cannot be performed (numeric=color). ; <*> ...ineWidth:=0pt ; OverlayLineColor:=(0,0,0); OverlayColor:=(0,0,0); Ba... >> OverlayColor >> (0,0,0) ! Equation cannot be performed (numeric=color). ; <*> ...yLineColor:=(0,0,0); OverlayColor:=(0,0,0); BaseLineSkip:=14.4816pt; ... . system > tex > error on line 11 in file g.tex: terminal: >> OverlayLineColor >> (0,0,0) ! Equation cannot be performed (numeric=color). ; <*> ...ineWidth:=0pt ; OverlayLineColor:=(0,0,0); OverlayColor:=(0,0,0); Ba... >> OverlayColor >> (0,0,0) ! Equation cannot be performed (numeric=color). ; <*> ...yLineColor:=(0,0,0); OverlayColor:=(0,0,0); BaseLineSkip:=14.4816pt; ... ... 1 \defineMPinstance [mympinstance] [metafun] [textcolor=red] 2 3 \starttext 4 5 \startMPcode 6 draw textext("some text") ; 7 \stopMPcode 8 9 \startMPcode{mympinstance} 10 draw textext("some text") ; 11 >> \stopMPcode 12 13 \stoptext 14 ...0;;]===], [===[;;]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... \meta_start_code_instance ..._process_graphic {#2} \meta_end_graphic_group l.11 \stopMPcode ? x system > files > start used files used files > 1: filename=g | filetype=tex | foundname=g.tex | usedmethod=filesystem used files > 2: filename=cont-new.mkiv | filetype=tex | foundname=/home/zewz/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database used files > 3: filename=g.top | foundname=g.top | usedmethod=direct used files > 4: filename=lang-us.lua | filetype=lua | foundname=/home/zewz/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database used files > 5: filename=mkiv-base.map | filetype=map | format=map | foundname=/home/zewz/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database used files > 6: filename=lm.lfg | filetype=tex | foundname=/home/zewz/context/tex/texmf-context/tex/context/fonts/lm.lfg | usedmethod=database used files > 7: filename=lm-math.lfg | filetype=tex | foundname=/home/zewz/context/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database used files > 8: filename=lm-math.map | filetype=map | format=map | foundname=/home/zewz/context/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database used files > 9: filename=lm-rm.map | filetype=map | format=map | foundname=/home/zewz/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database used files > 10: filename=lmroman12-regular | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database used files > 11: filename=lmroman7-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmroman7-regular.otf | usedmethod=database used files > 12: filename=rm-lmr7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/rm-lmr7.tfm | usedmethod=database used files > 13: filename=lmmi7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmmi7.tfm | usedmethod=database used files > 14: filename=lmsy7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmsy7.tfm | usedmethod=database used files > 15: filename=lmex10.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmex10.tfm | usedmethod=database used files > 16: filename=msam7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam7.tfm | usedmethod=database used files > 17: filename=msbm7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm7.tfm | usedmethod=database used files > 18: filename=stmary10.afm | filetype=afm | format=afm | foundname=/home/zewz/context/tex/texmf/fonts/afm/public/stmaryrd/stmary10.afm | usedmethod=database used files > 19: filename=stmary10.pfb | filetype=pfb | format=pfb | foundname=/home/zewz/context/tex/texmf/fonts/type1/public/stmaryrd/stmary10.pfb | usedmethod=database used files > 20: filename=lmroman7-bold.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmroman7-bold.otf | usedmethod=database used files > 21: filename=lmmib7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmmib7.tfm | usedmethod=database used files > 22: filename=lmsans8-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmsans8-regular.otf | usedmethod=database used files > 23: filename=lmmono8-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf | usedmethod=database used files > 24: filename=eufm7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm7.tfm | usedmethod=database used files > 25: filename=eufb7.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb7.tfm | usedmethod=database used files > 26: filename=lmroman9-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmroman9-regular.otf | usedmethod=database used files > 27: filename=rm-lmr9.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/rm-lmr9.tfm | usedmethod=database used files > 28: filename=lmmi9.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmmi9.tfm | usedmethod=database used files > 29: filename=lmsy9.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmsy9.tfm | usedmethod=database used files > 30: filename=msam10.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam10.tfm | usedmethod=database used files > 31: filename=msbm10.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm10.tfm | usedmethod=database used files > 32: filename=lmroman9-bold.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmroman9-bold.otf | usedmethod=database used files > 33: filename=lmmib10.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmmib10.tfm | usedmethod=database used files > 34: filename=lmsans9-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmsans9-regular.otf | usedmethod=database used files > 35: filename=lmmono9-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmmono9-regular.otf | usedmethod=database used files > 36: filename=eufm10.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm10.tfm | usedmethod=database used files > 37: filename=eufb10.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb10.tfm | usedmethod=database used files > 38: filename=lmroman12-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database used files > 39: filename=rm-lmr12.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/rm-lmr12.tfm | usedmethod=database used files > 40: filename=lmmi12.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmmi12.tfm | usedmethod=database used files > 41: filename=lmsy10.tfm | filetype=tfm | format=tfm | foundname=/home/zewz/context/tex/texmf/fonts/tfm/public/lm/lmsy10.tfm | usedmethod=database used files > 42: filename=lmroman12-bold.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf | usedmethod=database used files > 43: filename=lmsans12-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmsans12-regular.otf | usedmethod=database used files > 44: filename=lmmono12-regular.otf | filetype=otf | format=otf | foundname=/home/zewz/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database used files > 45: filename=metafun.mpiv | filetype=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/metafun.mpiv | usedmethod=database used files > 46: filename=mp-base.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-base.mpiv | usedmethod=database used files > 47: filename=mp-tool.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-tool.mpiv | usedmethod=database used files > 48: filename=mp-mlib.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-mlib.mpiv | usedmethod=database used files > 49: filename=mp-page.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-page.mpiv | usedmethod=database used files > 50: filename=mp-butt.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-butt.mpiv | usedmethod=database used files > 51: filename=mp-shap.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-shap.mpiv | usedmethod=database used files > 52: filename=mp-grph.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-grph.mpiv | usedmethod=database used files > 53: filename=mp-grid.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-grid.mpiv | usedmethod=database used files > 54: filename=mp-form.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-form.mpiv | usedmethod=database used files > 55: filename=mp-figs.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-figs.mpiv | usedmethod=database used files > 56: filename=mp-func.mpiv | filetype=mp | format=mp | foundname=/home/zewz/context/tex/texmf-context/metapost/context/base/mp-func.mpiv | usedmethod=database system > files > stop used files system > structure > start used structure used structure > text: g system > structure > stop used structure mkiv lua stats > used config file - selfautoparent:texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path - /home/zewz/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606 mkiv lua stats > resource resolver - loadtime 0.011 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 56 found files, scanned paths: mkiv lua stats > stored bytecode data - 303 modules, 65 tables, 368 chunks mkiv lua stats > cleaned up reserved nodes - 36 nodes, 9 lists of 436 mkiv lua stats > node memory usage - 12 hlist, 3 vlist, 3 rule, 12 glue, 1 penalty, 8 glyph, 36 attribute, 29 glue_spec, 12 attribute_list, 1 temp, 1 local_par, 2 dir, 4 pdf_literal, 2 pdf_setmatrix, 2 pdf_save, 2 pdf_restore mkiv lua stats > node list callback tasks - 6 unique task lists, 4 instances (re)created, 102 calls mkiv lua stats > used backend - pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns - en::2 mkiv lua stats > jobdata time - 0.000 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks - 183 direct, 565 indirect, 748 total mkiv lua stats > randomizer - resumed with value 0.080291813742505 mkiv lua stats > result saved in file - g.pdf mkiv lua stats > loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats > fonts load time - 0.344 seconds mkiv lua stats > metapost processing time - 0.002 seconds, loading: 0.074 seconds, execution: 0.002 seconds, n: 1 mkiv lua stats > luatex banner - this is luatex, version beta-0.70.1-2011051923 (rev 4277) mkiv lua stats > control sequences - 33551 of 65536 + 100000 mkiv lua stats > current memory usage - 30 MB (ctx: 31 MB) mkiv lua stats > runtime - 20.278 seconds --MP_/MtSfaWgO_=dpVfv/0/VSPSX Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --MP_/MtSfaWgO_=dpVfv/0/VSPSX--