ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* context and contextjit font handling
@ 2015-07-25 15:07 juh
  2015-07-25 15:36 ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: juh @ 2015-07-25 15:07 UTC (permalink / raw)
  To: ntg-context

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@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@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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: context and contextjit font handling
  2015-07-25 15:07 context and contextjit font handling juh
@ 2015-07-25 15:36 ` Pablo Rodriguez
  2015-07-25 17:30   ` juh
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2015-07-25 15:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 07/25/2015 05:07 PM, juh wrote:
> 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.

Hi Jan Urlich,

I have compiled your sample with contextjit from latest beta (released
2015.07.24 13:58) and font is included.

I guess it should be something related to the font cache. Try:

mtxrunjit --script fonts --reload

BTW, I would add "\mainlanguage[deo]" to improve the hyphenation.

I hope it helps,


Pablo


> \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


-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: context and contextjit font handling
  2015-07-25 15:36 ` Pablo Rodriguez
@ 2015-07-25 17:30   ` juh
  0 siblings, 0 replies; 3+ messages in thread
From: juh @ 2015-07-25 17:30 UTC (permalink / raw)
  To: ntg-context

Am 25.07.2015 um 17:36 schrieb Pablo Rodriguez:
> I guess it should be something related to the font cache. Try:
> 
> mtxrunjit --script fonts --reload
> 
> BTW, I would add "\mainlanguage[deo]" to improve the hyphenation.

Thanks a lot. Now it works.

juh
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-25 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-25 15:07 context and contextjit font handling juh
2015-07-25 15:36 ` Pablo Rodriguez
2015-07-25 17:30   ` juh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).