From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88419 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?VMO2csO2ayBFZHdpbg==?= Newsgroups: gmane.comp.tex.context Subject: mathdesign/charter fonts in ConTeXt Date: Fri, 15 Aug 2014 22:38:58 +0300 Message-ID: <53EE61D2.6050108@etorok.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408183592 20605 80.91.229.3 (16 Aug 2014 10:06:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2014 10:06:32 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 16 12:06:28 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XIasU-0002Yr-55 for gctc-ntg-context-518@m.gmane.org; Sat, 16 Aug 2014 12:06:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A254102CB for ; Sat, 16 Aug 2014 12:06:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cOWhrR6C2Ur7 for ; Sat, 16 Aug 2014 12:06:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7716B10221 for ; Sat, 16 Aug 2014 12:06:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33604101E6 for ; Fri, 15 Aug 2014 21:38:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id E6fAUh3j7OJg for ; Fri, 15 Aug 2014 21:38:35 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 48BB8101E2 for ; Fri, 15 Aug 2014 21:38:35 +0200 (CEST) Original-Received: from mx.etorok.net (mx.etorok.net [62.113.205.31]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7FJcX7Y005301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 15 Aug 2014 21:38:34 +0200 Original-Received: by mx.etorok.net (OpenSMTPD) with ESMTP id 19b69767; for ; Fri, 15 Aug 2014 22:38:33 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=etorok.net; h= message-id:date:from:mime-version:to:content-type :content-transfer-encoding; s=ml; l=14333; bh=66ZbOCcy5MSJdL8seo hMi9To2N8=; b=LBISjXIu71Kh8esRp60XlqsLqKQTFv1NJUeqKkd9FuL6br/3W5 pw5Gt/yy4BGJYQNS3Gq5ggJne+oLxqfOcHrW5UMenGrkkioZzy4umqroSMlp0aIj st2xFQhNx5aqWowYQ7g2Ji0j6/q8eOSvKHlyyztNvGSHXBgeCKr+NhUzA= Original-Received: by mx.etorok.net (OpenSMTPD) with ESMTPSA id 09cfefdc; TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; for ; Fri, 15 Aug 2014 22:38:33 +0300 (EEST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=62.113.205.31; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06MD7CxDC - 5c7dd68e8d6c - 20140815 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Mailman-Approved-At: Sat, 16 Aug 2014 12:06:11 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88419 Archived-At: Hi, I am having some trouble getting the mathdesign charter font to work. Minimal example x.tex: \loadtypescriptfile[mathdesign] \setupbodyfont[charter] \starttext Foo \stoptext I tried the context that comes with Debian unstable, but that one segfaulted[1]. So I tried the standalone version, but that one can't find the math fonts: $ context x.tex mtx-context | run 1: luatex --fmt="/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="x" --lua="/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./x.tex" --c:input="./x.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open source > 1 > 1 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.15 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source > 2 > 2 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > files > jobname 'x', input './x', result 'x' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/edwin/typography/poster/test/x.tex open source > 3 > 4 > /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv close source > 3 > 4 > /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv fonts > defining > font with asked name 'mdbchr7m' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 2 with name 'mdbchr7m' at 7pt is skipped, not found fonts > defining > font with asked name 'mdbchri7m' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 3 with name 'mdbchri7m' at 7pt is skipped, not found fonts > virtual math > loading font 'mdbchrm' subfont 4 with name 'mdbchri7m' at 7pt is skipped, not found fonts > defining > font with asked name 'mdbchb7m' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 5 with name 'mdbchb7m' at 7pt is skipped, not found fonts > defining > font with asked name 'mdbchbi7m' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 6 with name 'mdbchbi7m' at 7pt is skipped, not found fonts > defining > font with asked name 'mdbchr7y' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 7 with name 'mdbchr7y' at 7pt is skipped, not found fonts > defining > font with asked name 'mdbchr7v' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 8 with name 'mdbchr7v' at 7pt is skipped, not found fonts > defining > font with asked name 'mdbchrma' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 9 with name 'mdbchrma' at 7pt is skipped, not found fonts > defining > font with asked name 'mdbchrmb' is not found using lookup 'file' fonts > virtual math > loading font 'mdbchrm' subfont 10 with name 'mdbchrmb' at 7pt is skipped, not found lua error > error on line 2 in file /home/edwin/typography/poster/test/x.tex: ...n/context/tex/texmf-context/tex/context/base/l-table.lua:323: table index is nil stack traceback: ...n/context/tex/texmf-context/tex/context/base/l-table.lua:323: in function 'fastcopy' .../context/tex/texmf-context/tex/context/base/math-vfu.lua:551: in function 'addmissing' .../context/tex/texmf-context/tex/context/base/math-vfu.lua:1059: in function <.../context/tex/texmf-context/tex/context/base/math-vfu.lua:662> (...tail calls...) .../context/tex/texmf-context/tex/context/base/font-def.lua:415: in function 'read' .../context/tex/texmf-context/tex/context/base/font-ctx.lua:1109: in function 'definefont_two' [\directlua]:1: in main chunk 1 \loadtypescriptfile[mathdesign] 2 >> \setupbodyfont[charter] 3 \starttext 4 Foo 5 \stoptext 6 ? I tried the stable version too (first-setup.sh --context=current), but no luck. Initially the standalone version didn't even want to find the Charter font: $ export OSFONTDIR="/:/etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texlive/texmf-dist" [edited font-syn.lua to enable trace_warnings, --track=fonts.warnings appears to have no effect] $ mtxrun --script fonts --reload [....] fonts | names | error when identifying afm font '/usr/share/texlive/texmf-dist/fonts/afm/bitstrea/charter/bchb8a.afm', no matching pfb file fonts | names | error when identifying afm font '/usr/share/texlive/texmf-dist/fonts/afm/bitstrea/charter/bchbi8a.afm', no matching pfb fil e fonts | names | error when identifying afm font '/usr/share/texlive/texmf-dist/fonts/afm/bitstrea/charter/bchr8a.afm', no matching pfb file fonts | names | error when identifying afm font '/usr/share/texlive/texmf-dist/fonts/afm/bitstrea/charter/bchri8a.afm', no matching pfb file [...] The .afm files seem to be available in two places: /usr/share/fonts/type1/texlive-fonts-recommended/bchr8a.afm /usr/share/texlive/texmf-dist/fonts/afm/bitstrea/charter/bchr8a.afm Same for pfb (but the pfb is not always next to the afm): /usr/share/fonts/type1/texlive-fonts-recommended/bchr8a.pfb /usr/share/texlive/texmf-dist/fonts/type1/bitstrea/charter/bchr8a.pfb But modifying OSFONTDIR like this worked: $ export OSFONTDIR="/usr/share/fonts/type1/texlive-fonts-recommended/:/etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texlive/texmf-dist" $ mtxrun --script fonts --reload [...] $ mtxrun --script fonts --list --all --pattern=charter charterbt charterbtbold /usr/share/fonts/type1/texlive-fonts-recommended/bchb8a.afm charterbtbold charterbtbold /usr/share/fonts/type1/texlive-fonts-recommended/bchb8a.afm charterbtbolditalic charterbtbolditalic /usr/share/fonts/type1/texlive-fonts-recommended/bchbi8a.afm charterbtitalic charterbtitalic /usr/share/fonts/type1/texlive-fonts-recommended/bchri8a.afm charterbtnormal charterbtroman /usr/share/fonts/type1/texlive-fonts-recommended/bchr8a.afm charterbtroman charterbtroman /usr/share/fonts/type1/texlive-fonts-recommended/bchr8a.afm The md-chr* files are here, but how do I tell 'mtxrun --script fonts' to load it? /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chr7m.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chr7t.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chr7v.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chr7y.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chr8c.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chr8t.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chr8y.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chrc8y.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chree.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chri7m.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chri7t.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chri8c.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chri8t.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chri8y.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chrma.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chrmb.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chro7t.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chro8c.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chro8t.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chro8y.tfm /usr/share/texlive/texmf-dist/fonts/tfm/public/mathdesign/mdbch/md-chroc8y.tfm /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chr7m.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chr7t.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chr7v.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chr7y.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chr8c.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chr8t.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chree.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chri7m.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chri7t.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chri8c.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chri8t.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chrma.pfb /usr/share/texlive/texmf-dist/fonts/type1/public/mathdesign/mdbch/md-chrmb.pfb [1] ConTeXt from Debian unstable $ context x.tex mtx-context | run 1: luatex --fmt="/home/edwin/.texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en" --jobname="x" --lua="/home/edwin/.texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./x.tex" --c:input="./x.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/Debian) (rev 4971) \write18 enabled. open source > 1 > 1 > /usr/share/texmf/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2014.8.15 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /usr/share/texmf/tex/context/base/cont-new.mkiv close source > 2 > 2 > /usr/share/texmf/tex/context/base/cont-new.mkiv system > files > jobname 'x', input './x', result 'x' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/edwin/typography/poster/test/x.tex open source > 3 > 4 > /usr/share/texmf/tex/context/base/type-imp-mathdesign.mkiv close source > 3 > 4 > /usr/share/texmf/tex/context/base/type-imp-mathdesign.mkiv mtx-context | fatal error: no return code, message: luatex: execution interrupted [16895.686916] luatex[27212]: segfault at 18 ip 00000000005f08f1 sp 00007fffa1eaec98 error 4 in luatex[400000+5d8000] FWIW some valgrind output for LuaTeX beta-0.79.1 (TeX Live 2014/Debian) (rev 4971): ==28129== Invalid read of size 8 ==28129== at 0x5F08D7: ??? (in /usr/bin/luatex) ==28129== by 0x5F0987: ??? (in /usr/bin/luatex) ==28129== by 0x5DE068: lua_rawget (in /usr/bin/luatex) ==28129== by 0x449B53: lua_numeric_field_by_index (in /usr/bin/luatex) ==28129== by 0x4D3E02: font_from_lua (in /usr/bin/luatex) ==28129== by 0x497D96: ??? (in /usr/bin/luatex) ==28129== by 0x5E4ABC: ??? (in /usr/bin/luatex) ==28129== by 0x5F36FC: ??? (in /usr/bin/luatex) ==28129== by 0x5E4E17: ??? (in /usr/bin/luatex) ==28129== by 0x5E4498: ??? (in /usr/bin/luatex) ==28129== by 0x5E5040: ??? (in /usr/bin/luatex) ==28129== by 0x5DE783: lua_pcallk (in /usr/bin/luatex) ==28129== Address 0x9378780 is 32 bytes inside a block of size 33 alloc'd ==28129== at 0x4C284C0: malloc (vg_replace_malloc.c:291) ==28129== by 0x4C2A86F: realloc (vg_replace_malloc.c:687) ==28129== by 0x4946FD: ??? (in /usr/bin/luatex) ==28129== by 0x5E8391: ??? (in /usr/bin/luatex) ==28129== by 0x5E7478: ??? (in /usr/bin/luatex) ==28129== by 0x5EE062: ??? (in /usr/bin/luatex) ==28129== by 0x5DDCFB: lua_pushstring (in /usr/bin/luatex) ==28129== by 0x4E2D5E: make_vf_table (in /usr/bin/luatex) ==28129== by 0x5E4ABC: ??? (in /usr/bin/luatex) ==28129== by 0x5F36FC: ??? (in /usr/bin/luatex) ==28129== by 0x5E4E17: ??? (in /usr/bin/luatex) ==28129== by 0x5E4498: ??? (in /usr/bin/luatex) ==28129== ==28129== Use of uninitialised value of size 8 ==28129== at 0x5F08F1: ??? (in /usr/bin/luatex) ==28129== by 0x5F0987: ??? (in /usr/bin/luatex) ==28129== by 0x5DE068: lua_rawget (in /usr/bin/luatex) ==28129== by 0x449B53: lua_numeric_field_by_index (in /usr/bin/luatex) ==28129== by 0x4D3E02: font_from_lua (in /usr/bin/luatex) ==28129== by 0x497D96: ??? (in /usr/bin/luatex) ==28129== by 0x5E4ABC: ??? (in /usr/bin/luatex) ==28129== by 0x5F36FC: ??? (in /usr/bin/luatex) ==28129== by 0x5E4E17: ??? (in /usr/bin/luatex) ==28129== by 0x5E4498: ??? (in /usr/bin/luatex) ==28129== by 0x5E5040: ??? (in /usr/bin/luatex) ==28129== by 0x5DE783: lua_pcallk (in /usr/bin/luatex) ==28129== ==28129== Invalid read of size 4 ==28129== at 0x5F08F1: ??? (in /usr/bin/luatex) ==28129== by 0x5F0987: ??? (in /usr/bin/luatex) ==28129== by 0x5DE068: lua_rawget (in /usr/bin/luatex) ==28129== by 0x449B53: lua_numeric_field_by_index (in /usr/bin/luatex) ==28129== by 0x4D3E02: font_from_lua (in /usr/bin/luatex) ==28129== by 0x497D96: ??? (in /usr/bin/luatex) ==28129== by 0x5E4ABC: ??? (in /usr/bin/luatex) ==28129== by 0x5F36FC: ??? (in /usr/bin/luatex) ==28129== by 0x5E4E17: ??? (in /usr/bin/luatex) ==28129== by 0x5E4498: ??? (in /usr/bin/luatex) ==28129== by 0x5E5040: ??? (in /usr/bin/luatex) ==28129== by 0x5DE783: lua_pcallk (in /usr/bin/luatex) ==28129== Address 0x18 is not stack'd, malloc'd or (recently) free'd ==28129== ==28129== ==28129== Process terminating with default action of signal 11 (SIGSEGV) ==28129== Access not within mapped region at address 0x18 ==28129== at 0x5F08F1: ??? (in /usr/bin/luatex) ==28129== by 0x5F0987: ??? (in /usr/bin/luatex) ==28129== by 0x5DE068: lua_rawget (in /usr/bin/luatex) ==28129== by 0x449B53: lua_numeric_field_by_index (in /usr/bin/luatex) ==28129== by 0x4D3E02: font_from_lua (in /usr/bin/luatex) ==28129== by 0x497D96: ??? (in /usr/bin/luatex) ==28129== by 0x5E4ABC: ??? (in /usr/bin/luatex) ==28129== by 0x5F36FC: ??? (in /usr/bin/luatex) ==28129== by 0x5E4E17: ??? (in /usr/bin/luatex) ==28129== by 0x5E4498: ??? (in /usr/bin/luatex) ==28129== by 0x5E5040: ??? (in /usr/bin/luatex) ==28129== by 0x5DE783: lua_pcallk (in /usr/bin/luatex) Best regards, --Edwin ___________________________________________________________________________________ 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 ___________________________________________________________________________________