Project structure, (simple)font woes
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
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
On Mon, 16 Apr 2012 13:27:56 +0200
luigi scarso
On Mon, Apr 16, 2012 at 1:19 PM, Wolfgang Schuster
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
On 16 Apr 2012, at 13:27, luigi scarso wrote:
On Mon, Apr 16, 2012 at 1:19 PM, Wolfgang Schuster
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 ___________________________________________________________________________________
On Mon, Apr 16, 2012 at 14:19, Wolfgang Schuster
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
On Mon, 16 Apr 2012 14:03:23 +0300
Mari Voipio
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
participants (5)
-
Alan BRASLAU
-
luigi scarso
-
Mari Voipio
-
Willi Egger
-
Wolfgang Schuster