[NTG-context] context and contextjit font handling

juh juh+ntg-context at mailbox.org
Sat Jul 25 17:07:00 CEST 2015


Hi,

I installed a new font, called UnifrakturMaguntia
(http://unifraktur.sourceforge.net/)

When I compile the following example with context the font is displayed
in the pdf, with contextjit the font is not displayed.

\startbuffer[demo]
<p>Wenn ich aber die reiche Fu&#x0364;lle &#x017F;einer Äuße¬<lb/>
rungen bedenke, die wa&#x0364;hrend eines Zeitraumes von<lb/>
neun Jahren mich beglu&#x0364;ckten, und nun das We¬<lb/>
nige betrachte, das mir davon &#x017F;chriftlich
aufzufa&#x017F;&#x017F;en<lb/>
gelungen i&#x017F;t, &#x017F;o komme ich mir vor wie ein Kind,<lb/>
das den erquicklichen Fru&#x0364;hlingsregen in offenen<lb/>
Ha&#x0364;nden aufzufangen bemu&#x0364;ht i&#x017F;t, dem aber das<lb/>
Mei&#x017F;te durch die Finger la&#x0364;uft.</p>
\stopbuffer

\startxmlsetups xml:initialize
         \xmlsetsetup{#1}{p|lb}{xml:*}
    \stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:lb
\stopxmlsetups

\startxmlsetups xml:p
  \par
	\cldcontext{string.gsub([[\xmlflush{#1}]], "¬", "\\nospace")}
  \par
\stopxmlsetups

\definefontfamily
    [mainface]
    [rm]
    [UnifrakturMaguntia]

\setupbodyfont
    [mainface, 16pt]

\starttext
     \xmlprocessbuffer{main}{demo}{}
\stoptext


####################


juh at sokrates:~/Projekte/Literatur/dta$ context example.tex

resolvers       | trees | analyzing 'home:texmf'
mtx-context     | run 1: luatex
--fmt="/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="example"
--lua="/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./example.tex"
--c:input="./example.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
 \write18 enabled.

resolvers       > trees > analyzing 'home:texmf'

system          > callbacks > not registering frozen 'find_format_file'
open source     > 1 > 1 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.01 21:40 MKIV beta  fmt: 2015.7.9  int:
english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source    > 2 > 2 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > files > jobname 'example', input './example', result
'example'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > /home/juh/Projekte/Literatur/dta/example.tex
fonts           > bodyfont '16pt' is defined (can better be done global)
fonts           > bodyfont '19.2pt' is defined (can better be done global)
fonts           > bodyfont '12.8pt' is defined (can better be done global)
fonts           > preloading modern-designsize (math)
fonts           > typescripts > unknown library 'modern-designsize'
fonts           > 'fallback modern-designsize mm 16pt' is loaded
fonts           > preloading modern-designsize (mono)
fonts           > 'fallback modern-designsize tt 16pt' is loaded
fonts           > otf process > missing cache for lookup 130, type
'gpos_pair', font 1, name 'UnifrakturMaguntia'

Overfull \hbox (4.48601pt too wide) in paragraph at lines 1--7
\3>mainface-16pt-rm-tf--0 eines Zeitraumes von neun Jahren mich
begluͤck-ten, und nun das Wenige
backend         > xmp > using file
'/home/juh/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
close source    > 2 > 3 > /home/juh/Projekte/Literatur/dta/example.tex
close source    > 1 > 3 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 1 scans
with scantime 0.000 seconds, 0 shared scans, 7 found files, scanned
paths: /home/juh/texmf
mkiv lua stats  > stored bytecode data: 380 modules (0.170 sec), 78
tables (0.005 sec), 458 chunks (0.175 sec)
mkiv lua stats  > traced context: maxstack: 1134, freed: 0, unreachable:
1134
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 35
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
instances (re)created, 49 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 167 direct, 275 indirect, 442 total
mkiv lua stats  > randomizer: resumed with value 0.075084522556566
mkiv lua stats  > xml load time: 0.000 seconds, 0 files, 1 converted
mkiv lua stats  > lxml preparation time: 0.000 seconds, 9 nodes, 12
lpath calls, 0 cached calls
mkiv lua stats  > result saved in file: example.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 1 files: unifrakturmaguntia.ttf
(suspicious x height)
mkiv lua stats  > fonts load time: 0.014 seconds for 4 fonts, 3 shared
in backend, 1 common vectors, 2 common hashes
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.80.0
(tex live 2015) (rev 5238)
mkiv lua stats  > control sequences: 43023 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 43 MB (ctx:
43 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.225 seconds, 1 processed pages, 1 shipped
pages, 4.444 pages/second

system          | total runtime: 0.385 seconds


##############################


juh at sokrates:~/Projekte/Literatur/dta$ contextjit example.tex

resolvers       | trees | analyzing 'home:texmf'
mtx-context     | run 1: luajittex
--fmt="/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luajittex/cont-en"
--jobname="example"
--lua="/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luajittex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:engine="luajittex"
--c:fulljobname="./example.tex" --c:input="./example.tex"
--c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuajitTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
 \write18 enabled.

resolvers       > trees > analyzing 'home:texmf'

system          > callbacks > not registering frozen 'find_format_file'
open source     > 1 > 1 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.01 21:40 MKIV beta  fmt: 2015.7.7  int:
english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source    > 2 > 2 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > files > jobname 'example', input './example', result
'example'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > /home/juh/Projekte/Literatur/dta/example.tex
fonts           > bodyfont '16pt' is defined (can better be done global)
fonts           > bodyfont '19.2pt' is defined (can better be done global)
fonts           > bodyfont '12.8pt' is defined (can better be done global)
fonts           > preloading modern-designsize (math)
fonts           > typescripts > unknown library 'modern-designsize'
fonts           > 'fallback modern-designsize mm 16pt' is loaded
fonts           > preloading modern-designsize (mono)
fonts           > 'fallback modern-designsize tt 16pt' is loaded
fonts           > defining > font with asked name 'unknown' is not found
using lookup 'file'
fonts           > defining > unknown font 'unknown', loading aborted
fonts           > defining > unable to define 'unknown' as
'mainface-16pt-rm-tf--0'
fonts           > defining > font with asked name 'unknown' is not found
using lookup 'file'
fonts           > defining > unknown font 'unknown', loading aborted
fonts           > defining > unable to define 'unknown' as
'mainface-16pt-mm-mr--3'
fonts           > defining > font with asked name 'unknown' is not found
using lookup 'file'
fonts           > defining > unknown font 'unknown', loading aborted
fonts           > defining > unable to define 'unknown' as
'mainface-16pt-mm-mr--2'
fonts           > defining > font with asked name 'unknown' is not found
using lookup 'file'
fonts           > defining > unknown font 'unknown', loading aborted
fonts           > defining > unable to define 'unknown' as
'mainface-16pt-mm-mr--1'
fonts           > math: unset for global bodyfont mainface at 16pt
fonts           > math: unset for global bodyfont mainface at 16pt
backend         > xmp > using file
'/home/juh/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1

fonts           > !! No bodyfont has been defined and no defaults have been
fonts           > !! loaded (maybe due to a missing \starttext).

close source    > 2 > 3 > /home/juh/Projekte/Literatur/dta/example.tex
close source    > 1 > 3 >
/home/juh/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/juh/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 1 scans
with scantime 0.000 seconds, 0 shared scans, 6 found files, scanned
paths: /home/juh/texmf
mkiv lua stats  > stored bytecode data: 380 modules (0.128 sec), 78
tables (0.004 sec), 458 chunks (0.132 sec)
mkiv lua stats  > traced context: maxstack: 1134, freed: 0, unreachable:
1134
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 32
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
instances (re)created, 39 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 154 direct, 275 indirect, 429 total
mkiv lua stats  > randomizer: resumed with value 0.075084522556566
mkiv lua stats  > xml load time: 0.001 seconds, 0 files, 1 converted
mkiv lua stats  > lxml preparation time: 0.000 seconds, 9 nodes, 12
lpath calls, 0 cached calls
mkiv lua stats  > result saved in file: example.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > luatex banner: this is luajittex, version beta-0.80.0
(tex live 2015) (rev 5238)
mkiv lua stats  > control sequences: 42988 of 65536 + 100000
mkiv lua stats  > lua properties: engine: luajit, used memory: 27 MB
(ctx: 0 MB), hash type: lua51, hash chars: min(64,40), symbol mask: utf
(τεχ)
mkiv lua stats  > runtime: 0.161 seconds, 1 processed pages, 1 shipped
pages, 6.211 pages/second

system          | total runtime: 0.296 seconds



More information about the ntg-context mailing list