* Project structure, (simple)font woes
@ 2012-04-16 11:03 Mari Voipio
2012-04-16 11:19 ` Wolfgang Schuster
2012-04-16 12:37 ` Alan BRASLAU
0 siblings, 2 replies; 7+ messages in thread
From: Mari Voipio @ 2012-04-16 11:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 2803 bytes --]
Hello all,
I'm trying to teach myself to use the project structure. After a few
rounds of trial and error (...and stupid naming schemes...) I'm almost
there, but got stuck at my font setups.
If I do this as a single file, it works fine (Win7 and newest ConTeXt,
updated it this morning):
% FONT related setups
\usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts
\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript
\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]
% end of font setups
\starttext
\input knuth
\stoptext
However, if I make a really simple project structure and try to put
the above in an environment file, compiling fails. What am I missing
here?
proj-test.tex:
\startproject proj-test
\environment env-fonts-simplefonts
\product prd-test1
\stopproject
prd-test1.tex:
\startproduct prd-test1
\project proj-test
\input knuth
\stopproduct
env-fonts-simplefonts:
\startenvironment env-fonts-simplefonts
% FONT related setups
\usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts
\starttypescript[Manuals]
\definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
\definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
\stoptypescript
\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]
% end of font setups
\stopenvironment
If I look at proj-test.log (the whole thing attached), I think the
problem is here:
loading > ConTeXt User Module / Simplefonts
<+ C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua>)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv)
(C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
fonts > defining > font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fonts > defining > unknown font LMMathRoman-Regular, loading aborted
fonts > defining > unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--3]
fonts > defining > font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fonts > defining > unknown font LMMathRoman-Regular, loading aborted
fonts > defining > unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--2]
fonts > defining > font with asked name
'LMMathRoman-Regular' is not found using lookup 'file'
fonts > defining > unknown font LMMathRoman-Regular, loading aborted
fonts > defining > unable to define LMMathRoman-Regular as
[Manuals-10pt-mm-mr--1]
But why? What is it I should do differently? ...I wouldn't even need
any math fonts...
Regards,
Mari
[-- Attachment #2: prd-test1.log --]
[-- Type: application/octet-stream, Size: 5515 bytes --]
[-- Attachment #3: proj-test.log --]
[-- Type: application/octet-stream, Size: 13873 bytes --]
(proj-test.tex
ConTeXt ver: 2012.04.14 00:10 MKIV fmt: 2012.4.16 int: english/english
system > cont-new.mkiv loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > proj-test.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 > ["autopdf"]=true,
used options > }
used options > document.files={
used options > "proj-test.tex",
used options > }
used options > \stopluacode
used options > % process info
used options > \setupsystem[inputfile=proj-test.tex]
used options > \setupsystem[\c!n=1,\c!m=1]
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
(proj-test.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
fonts > typescripts > unknown: library 'loc'
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/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
(env-fonts-simplefonts.tex
resolvers > modules > loaded: 'simplefonts'
(C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.tex
loading > ConTeXt User Module / Simplefonts
<+ C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua>) (C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
fonts > defining > font with asked name 'LMMathRoman-Regular' is not found using lookup 'file'
fonts > defining > unknown font LMMathRoman-Regular, loading aborted
fonts > defining > unable to define LMMathRoman-Regular as [Manuals-10pt-mm-mr--3]
fonts > defining > font with asked name 'LMMathRoman-Regular' is not found using lookup 'file'
fonts > defining > unknown font LMMathRoman-Regular, loading aborted
fonts > defining > unable to define LMMathRoman-Regular as [Manuals-10pt-mm-mr--2]
fonts > defining > font with asked name 'LMMathRoman-Regular' is not found using lookup 'file'
fonts > defining > unknown font LMMathRoman-Regular, loading aborted
fonts > defining > unable to define LMMathRoman-Regular as [Manuals-10pt-mm-mr--1]
) )
system > files > start used files
used files > 1: filename=proj-test.tex | foundname=proj-test.tex | usedmethod=direct
used files > 2: filename=cont-new.mkiv | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files > 3: filename=proj-test.top | foundname=proj-test.top | usedmethod=direct
used files > 4: filename=lang-us.lua | filetype=lua | foundname=C:/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files > 5: filename=mkiv-base.map | filetype=map | format=map | foundname=C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files > 6: filename=lm.lfg | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/fonts/lm.lfg | usedmethod=database
used files > 7: filename=lm-math.lfg | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files > 8: filename=lm-math.map | filetype=map | format=map | foundname=C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files > 9: filename=lm-rm.map | filetype=map | format=map | foundname=C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files > 10: filename=lmroman12-regular | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files > 11: filename=lmroman7-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman7-regular.otf | usedmethod=database
used files > 12: filename=rm-lmr7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/rm-lmr7.tfm | usedmethod=database
used files > 13: filename=lmmi7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmmi7.tfm | usedmethod=database
used files > 14: filename=lmsy7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmsy7.tfm | usedmethod=database
used files > 15: filename=lmex10.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmex10.tfm | usedmethod=database
used files > 16: filename=msam7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam7.tfm | usedmethod=database
used files > 17: filename=msbm7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm7.tfm | usedmethod=database
used files > 18: filename=stmary10.afm | filetype=afm | format=afm | foundname=C:/context/tex/texmf/fonts/afm/public/stmaryrd/stmary10.afm | usedmethod=database
used files > 19: filename=stmary10.pfb | filetype=pfb | format=pfb | foundname=C:/context/tex/texmf/fonts/type1/public/stmaryrd/stmary10.pfb | usedmethod=database
used files > 20: filename=lmroman7-bold.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman7-bold.otf | usedmethod=database
used files > 21: filename=lmmib7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmmib7.tfm | usedmethod=database
used files > 22: filename=lmsans8-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmsans8-regular.otf | usedmethod=database
used files > 23: filename=lmmono8-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf | usedmethod=database
used files > 24: filename=eufm7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm7.tfm | usedmethod=database
used files > 25: filename=eufb7.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb7.tfm | usedmethod=database
used files > 26: filename=lmroman9-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman9-regular.otf | usedmethod=database
used files > 27: filename=rm-lmr9.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/rm-lmr9.tfm | usedmethod=database
used files > 28: filename=lmmi9.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmmi9.tfm | usedmethod=database
used files > 29: filename=lmsy9.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmsy9.tfm | usedmethod=database
used files > 30: filename=msam10.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msam10.tfm | usedmethod=database
used files > 31: filename=msbm10.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/symbols/msbm10.tfm | usedmethod=database
used files > 32: filename=lmroman9-bold.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman9-bold.otf | usedmethod=database
used files > 33: filename=lmmib10.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmmib10.tfm | usedmethod=database
used files > 34: filename=lmsans9-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmsans9-regular.otf | usedmethod=database
used files > 35: filename=lmmono9-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmmono9-regular.otf | usedmethod=database
used files > 36: filename=eufm10.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufm10.tfm | usedmethod=database
used files > 37: filename=eufb10.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/amsfonts/euler/eufb10.tfm | usedmethod=database
used files > 38: filename=lmroman12-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf | usedmethod=database
used files > 39: filename=rm-lmr12.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/rm-lmr12.tfm | usedmethod=database
used files > 40: filename=lmmi12.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmmi12.tfm | usedmethod=database
used files > 41: filename=lmsy10.tfm | filetype=tfm | format=tfm | foundname=C:/context/tex/texmf/fonts/tfm/public/lm/lmsy10.tfm | usedmethod=database
used files > 42: filename=lmroman12-bold.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf | usedmethod=database
used files > 43: filename=lmsans12-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmsans12-regular.otf | usedmethod=database
used files > 44: filename=lmmono12-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf | usedmethod=database
used files > 45: filename=env-fonts-simplefonts.tex | foundname=env-fonts-simplefonts.tex | usedmethod=direct
used files > 46: filename=t-simplefonts.tex | filetype=tex | foundname=C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files > 47: filename=t-simplefonts.lua | filetype=tex | format=tex | foundname=C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua | usedmethod=database
used files > 48: filename=type-imp-cambria.mkiv | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv | usedmethod=database
used files > 49: filename=type-imp-cleartype.mkiv | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv | usedmethod=database
used files > 50: filename=calibri | filetype=ttf | format=ttf | foundname=c:/windows/fonts/calibri.ttf | usedmethod=filesystem
system > files > stop used files
system > structure > start used structure
used structure > text: proj-test
used structure > project: proj-test
used structure > environment: env-fonts-simplefonts
system > structure > stop used structure
mkiv lua stats > used config file - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path - C:/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats > resource resolver - loadtime 0.011 seconds, 1 scans with scantime 0.030 seconds, 0 shared scans, 50 found files, scanned paths: c:/windows/fonts
mkiv lua stats > stored bytecode data - 302 modules, 65 tables, 367 chunks
mkiv lua stats > cleaned up reserved nodes - 36 nodes, 9 lists of 436
mkiv lua stats > node memory usage - 2 glue, 2 penalty, 6 attribute, 19 glue_spec, 2 attribute_list
mkiv lua stats > node list callback tasks - 6 unique task lists, 2 instances (re)created, 1176 calls
mkiv lua stats > used backend - pdf (backend for directly generating pdf output)
mkiv lua stats > loaded tex modules - 1 requested, 1 found (*-simplefonts), 0 missing
mkiv lua stats > loaded patterns - en::2
mkiv lua stats > jobdata time - 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks - 1253 direct, 1528 indirect, 2781 total
mkiv lua stats > randomizer - resumed with value 0.2280953398236
mkiv lua stats > result saved in file - proj-test.pdf
mkiv lua stats > loaded fonts - 34 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 calibri.ttf
mkiv lua stats > fonts load time - 0.368 seconds
mkiv lua stats > luatex banner - this is luatex, version beta-0.70.1-2012032923 (tex live 2012)
mkiv lua stats > control sequences - 34815 of 65536 + 100000
mkiv lua stats > current memory usage - 41 MB (ctx: 42 MB)
mkiv lua stats > runtime - 0.750 seconds
[-- Attachment #4: prd-test1.tex --]
[-- Type: application/x-tex, Size: 83 bytes --]
[-- Attachment #5: proj-test.tex --]
[-- Type: application/x-tex, Size: 105 bytes --]
[-- Attachment #6: env-fonts-simplefonts.tex --]
[-- Type: application/x-tex, Size: 451 bytes --]
[-- Attachment #7: test_simplefonts_Manuals.tex --]
[-- Type: application/x-tex, Size: 433 bytes --]
[-- Attachment #8: test_simplefonts_Manuals.log --]
[-- Type: application/octet-stream, Size: 7464 bytes --]
(test_simplefonts_Manuals.tex
ConTeXt ver: 2012.04.14 00:10 MKIV fmt: 2012.4.16 int: english/english
system > cont-new.mkiv loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > test_simplefonts_Manuals.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 > ["autopdf"]=true,
used options > }
used options > document.files={
used options > "test_simplefonts_Manuals.tex",
used options > }
used options > \stopluacode
used options > % process info
used options > \setupsystem[inputfile=test_simplefonts_Manuals.tex]
used options > \setupsystem[\c!n=1,\c!m=1]
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
(test_simplefonts_Manuals.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
resolvers > modules > loaded: 'simplefonts'
(C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.tex
loading > ConTeXt User Module / Simplefonts
<+ C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua>)
fonts > typescripts > unknown: library 'loc'
(C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
fonts > preloading latin modern fonts (math)
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > fallback modern mm 10pt is loaded
fonts > preloading latin modern fonts (mono)
fonts > fallback modern tt 10pt is loaded
(C:/context/tex/texmf-context/tex/context/sample/knuth.tex)
backend > xmp > using file 'C:/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1
)<c:/windows/fonts/calibri.ttf>
system > files > start used files
used files > 1: filename=test_simplefonts_Manuals.tex | foundname=test_simplefonts_Manuals.tex | usedmethod=direct
used files > 2: filename=cont-new.mkiv | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files > 3: filename=test_simplefonts_Manuals.top | foundname=test_simplefonts_Manuals.top | usedmethod=direct
used files > 4: filename=lang-us.lua | filetype=lua | foundname=C:/context/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files > 5: filename=t-simplefonts.tex | filetype=tex | foundname=C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files > 6: filename=t-simplefonts.lua | filetype=tex | format=tex | foundname=C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua | usedmethod=database
used files > 7: filename=type-imp-cambria.mkiv | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv | usedmethod=database
used files > 8: filename=type-imp-cleartype.mkiv | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv | usedmethod=database
used files > 9: filename=lm.lfg | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/fonts/lm.lfg | usedmethod=database
used files > 10: filename=lm-math.lfg | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/fonts/lm-math.lfg | usedmethod=database
used files > 11: filename=lm-math.map | filetype=map | format=map | foundname=C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map | usedmethod=database
used files > 12: filename=lm-rm.map | filetype=map | format=map | foundname=C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map | usedmethod=database
used files > 13: filename=mkiv-base.map | filetype=map | format=map | foundname=C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map | usedmethod=database
used files > 14: filename=calibri | filetype=ttf | format=ttf | foundname=c:/windows/fonts/calibri.ttf | usedmethod=filesystem
used files > 15: filename=lmmath-regular.otf | filetype=otf | format=otf | foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmmath-regular.otf | usedmethod=database
used files > 16: filename=knuth | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/sample/knuth.tex | usedmethod=database
used files > 17: filename=lpdf-pdx.xml | filetype=tex | foundname=C:/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml | usedmethod=database
system > files > stop used files
system > structure > start used structure
used structure > text: test_simplefonts_Manuals
system > structure > stop used structure
mkiv lua stats > used config file - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path - C:/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats > resource resolver - loadtime 0.010 seconds, 1 scans with scantime 0.036 seconds, 0 shared scans, 17 found files, scanned paths: c:/windows/fonts
mkiv lua stats > stored bytecode data - 302 modules, 65 tables, 367 chunks
mkiv lua stats > cleaned up reserved nodes - 39 nodes, 9 lists of 436
mkiv lua stats > node memory usage - 2 glue, 2 penalty, 9 attribute, 29 glue_spec, 3 attribute_list
mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 1282 calls
mkiv lua stats > used backend - pdf (backend for directly generating pdf output)
mkiv lua stats > loaded tex modules - 1 requested, 1 found (*-simplefonts), 0 missing
mkiv lua stats > loaded patterns - en::2
mkiv lua stats > jobdata time - 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks - 1363 direct, 1540 indirect, 2903 total
mkiv lua stats > randomizer - resumed with value 0.96374401074252
mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats > result saved in file - test_simplefonts_Manuals.pdf
mkiv lua stats > loaded fonts - 2 files: lmmath-regular.otf calibri.ttf
mkiv lua stats > fonts load time - 0.295 seconds
mkiv lua stats > luatex banner - this is luatex, version beta-0.70.1-2012032923 (tex live 2012)
mkiv lua stats > control sequences - 33874 of 65536 + 100000
mkiv lua stats > current memory usage - 38 MB (ctx: 39 MB)
mkiv lua stats > runtime - 0.701 seconds, 1 processed pages, 1 shipped pages, 1.427 pages/second
[-- Attachment #9: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Project structure, (simple)font woes
2012-04-16 11:03 Project structure, (simple)font woes Mari Voipio
@ 2012-04-16 11:19 ` Wolfgang Schuster
2012-04-16 11:27 ` luigi scarso
2012-04-17 6:08 ` Mari Voipio
2012-04-16 12:37 ` Alan BRASLAU
1 sibling, 2 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2012-04-16 11:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 16.04.2012 um 13:03 schrieb Mari Voipio:
> Hello all,
>
> I'm trying to teach myself to use the project structure. After a few
> rounds of trial and error (...and stupid naming schemes...) I'm almost
> there, but got stuck at my font setups.
>
>
> If I do this as a single file, it works fine (Win7 and newest ConTeXt,
> updated it this morning):
>
> % FONT related setups
> \usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts
>
> \starttypescript[Manuals]
> \definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
> \definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
> \stoptypescript
You load the simplefonts module but you don’t use it, instead you try to define a typescript the old.
This can work when your Cambria and Calibri fonts have names with the following system: CAMBRIA.ttf, CAMBRIAI.TTF etc.
When you want to use simplefonts to load the font you have to change your environment file to this:
\startenvironment env-fonts-simplefonts
\usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts
\setmainfont[Cambria]
\setsansfont[Calibri]
\setupbodyfont[10pt,sans]
\stopenvironment
BTW: I can give a talk about typescripts and font loading at the next conference when there is interest in this.
Wolfgang
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Project structure, (simple)font woes
2012-04-16 11:19 ` Wolfgang Schuster
@ 2012-04-16 11:27 ` luigi scarso
2012-04-16 12:28 ` typescripts and font loading (was: Project structure, (simple)font woes) Alan BRASLAU
2012-04-17 15:02 ` Project structure, (simple)font woes Willi Egger
2012-04-17 6:08 ` Mari Voipio
1 sibling, 2 replies; 7+ messages in thread
From: luigi scarso @ 2012-04-16 11:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Apr 16, 2012 at 1:19 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> BTW: I can give a talk about typescripts and font loading at the next conference when there is interest in this.
+1
make a separate thread for this
--
luigi
___________________________________________________________________________________
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] 7+ messages in thread
* Re: typescripts and font loading (was: Project structure, (simple)font woes)
2012-04-16 11:27 ` luigi scarso
@ 2012-04-16 12:28 ` Alan BRASLAU
2012-04-17 15:02 ` Project structure, (simple)font woes Willi Egger
1 sibling, 0 replies; 7+ messages in thread
From: Alan BRASLAU @ 2012-04-16 12:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 16 Apr 2012 13:27:56 +0200
luigi scarso <luigi.scarso@gmail.com> wrote:
> On Mon, Apr 16, 2012 at 1:19 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>
> > BTW: I can give a talk about typescripts and font loading at the
> > next conference when there is interest in this.
> +1
> make a separate thread for this
++
Alan
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Project structure, (simple)font woes
2012-04-16 11:03 Project structure, (simple)font woes Mari Voipio
2012-04-16 11:19 ` Wolfgang Schuster
@ 2012-04-16 12:37 ` Alan BRASLAU
1 sibling, 0 replies; 7+ messages in thread
From: Alan BRASLAU @ 2012-04-16 12:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 16 Apr 2012 14:03:23 +0300
Mari Voipio <mari.voipio@iki.fi> wrote:
> If I look at proj-test.log (the whole thing attached), I think the
> problem is here:
>
> loading > ConTeXt User Module / Simplefonts
> <+
> C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua>)
> (C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv)
> (C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
> fonts > defining > font with asked name
> 'LMMathRoman-Regular' is not found using lookup 'file'
> fonts > defining > unknown font LMMathRoman-Regular,
> loading aborted fonts > defining > unable to define
> LMMathRoman-Regular as [Manuals-10pt-mm-mr--3] fonts >
> defining > font with asked name 'LMMathRoman-Regular' is not found
> using lookup 'file' fonts > defining > unknown font
> LMMathRoman-Regular, loading aborted fonts > defining >
> unable to define LMMathRoman-Regular as [Manuals-10pt-mm-mr--2]
> fonts > defining > font with asked name
> 'LMMathRoman-Regular' is not found using lookup 'file'
> fonts > defining > unknown font LMMathRoman-Regular,
> loading aborted fonts > defining > unable to define
> LMMathRoman-Regular as [Manuals-10pt-mm-mr--1]
In one of my projects, I do not believe that I am doing anything special,
yet I also get something similar:
fonts > bodyfont 24pt is defined (can better be done global)
fonts > bodyfont 28.8pt is defined (can better be done global)
fonts > bodyfont 19.2pt is defined (can better be done global)
fonts > defining > font with asked name 'LMRoman-CapsRegular' is not found using lookup 'file'
fonts > defining > unknown font LMRoman-CapsRegular, loading aborted
fonts > defining > unable to define LMRoman-CapsRegular as [xits-12pt-rm-sc-0--0]
fonts > defining > font with asked name 'LMRoman-CapsRegular' is not found using lookup 'file'
fonts > defining > unknown font LMRoman-CapsRegular, loading aborted
fonts > defining > unable to define LMRoman-CapsRegular as [xits-12pt-rm-sc-0--0]
fonts > defining > font with asked name 'LMRoman-CapsRegular' is not found using lookup 'file'
fonts > defining > unknown font LMRoman-CapsRegular, loading aborted
fonts > defining > unable to define LMRoman-CapsRegular as [xits-12pt-rm-sc-0--0]
OK, I have
\environment my_own_special_environment
and "my_own_special_environment.tex" with
\setupbodyfont[xits,10pt]
but nothing else that is explicitly font related.
Is this in any ways related?
Alan
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Project structure, (simple)font woes
2012-04-16 11:19 ` Wolfgang Schuster
2012-04-16 11:27 ` luigi scarso
@ 2012-04-17 6:08 ` Mari Voipio
1 sibling, 0 replies; 7+ messages in thread
From: Mari Voipio @ 2012-04-17 6:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Apr 16, 2012 at 14:19, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> You load the simplefonts module but you don’t use it, instead you try to define a typescript the old.
See, I *was* being stupid. Now it works perfectly. And I found all the
additional info I'll need now in the new Font manual/chapter, book
page 34-35. Just hadn't thought to look for it...
Thank you!
Mari
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Project structure, (simple)font woes
2012-04-16 11:27 ` luigi scarso
2012-04-16 12:28 ` typescripts and font loading (was: Project structure, (simple)font woes) Alan BRASLAU
@ 2012-04-17 15:02 ` Willi Egger
1 sibling, 0 replies; 7+ messages in thread
From: Willi Egger @ 2012-04-17 15:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 16 Apr 2012, at 13:27, luigi scarso wrote:
> On Mon, Apr 16, 2012 at 1:19 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>
>> BTW: I can give a talk about typescripts and font loading at the next conference when there is interest in this.
> +1
+1
This is for sure a good idea!
Willi
> make a separate thread for this
> --
> luigi
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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] 7+ messages in thread
end of thread, other threads:[~2012-04-17 15:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16 11:03 Project structure, (simple)font woes Mari Voipio
2012-04-16 11:19 ` Wolfgang Schuster
2012-04-16 11:27 ` luigi scarso
2012-04-16 12:28 ` typescripts and font loading (was: Project structure, (simple)font woes) Alan BRASLAU
2012-04-17 15:02 ` Project structure, (simple)font woes Willi Egger
2012-04-17 6:08 ` Mari Voipio
2012-04-16 12:37 ` Alan BRASLAU
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).