I am trying to get a minimal working example so that I have something to tinker with. C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only: \starttypescript [serif] [garamondprem] \definetypeface [garamondprem] [rm] [serif] [name:garamondpremrpromed] [default] \stoptypescript (garamondpremrpromed is a name returned by mtxrun --script fonts --list --all --pattern=*Garamond*.) I run: luatools --generate and texmf-local is found. In my preamble: \usetypescriptfile [type-garamondprem] \usetypescript [garamondprem] \setupbodyfont [garamondprem,12pt] When I run Context, the result contains only Latin Modern.
On Mon, 15 Mar 2010, Michael Saunders wrote:
I am trying to get a minimal working example so that I have something to tinker with.
C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:
Wrong location. You files need to be stored according to TeX directory structure http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds Try placing that file in texmf-local\tex\context\user\ and run luatools --generate. Check that luatools can find the file by running luatools type-garamondprem.tex you should see the file location in the output. Aditya
On 15-3-2010 22:32, Michael Saunders wrote:
I am trying to get a minimal working example so that I have something to tinker with.
C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:
\starttypescript [serif] [garamondprem] \definetypeface [garamondprem] [rm] [serif] [name:garamondpremrpromed] [default] \stoptypescript
(garamondpremrpromed is a name returned by mtxrun --script fonts --list --all --pattern=*Garamond*.)
I run: luatools --generate and texmf-local is found.
In my preamble: \usetypescriptfile [type-garamondprem] \usetypescript [garamondprem] \setupbodyfont [garamondprem,12pt]
When I run Context, the result contains only Latin Modern.
you can just put the typescript in the file itself \starttypescript [serif] [garamondprem] \definefontsynonym[Serif][name:garamondpremrpromed] \stoptypescript \starttypescript [garamondprem] \definetypeface [garamondprem] [rm] [serif] [garamondprem] [default] [features=default] \stoptypescript \setupbodyfont[garamondprem] just look in type-otf.mkiv for more examples) in this case [serif] [garamondprem] is the filter Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2010-03-15 <16:32:23>, Michael Saunders wrote:
I am trying to get a minimal working example so that I have something to tinker with.
C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:
\starttypescript [serif] [garamondprem] \definetypeface [garamondprem] [rm] [serif] [name:garamondpremrpromed] [default] \stoptypescript
(garamondpremrpromed is a name returned by mtxrun --script fonts --list --all --pattern=*Garamond*.)
I run: luatools --generate and texmf-local is found.
In my preamble: \usetypescriptfile [type-garamondprem] \usetypescript [garamondprem] \setupbodyfont [garamondprem,12pt]
When I run Context, the result contains only Latin Modern.
Hi, this is what I am working with. I'm not sure every detail is needed, especially concerning the “script=latn” part as I'm successfully using non-latin scripts as well. If this does not work you should have a look at your font path. If context knows where to find your fonts but the following fails then I suggest you adapt the [name:XXX] fields in the typescript, you need the “postscript name” value from otfinfo -i there. HTH, Philipp ---8<-------------------------------------------------------------------------- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Font setup % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \starttypescript [serif] [garamond] \setups [font:fallback:serif] \definefontsynonym [Serif] [name:GaramondPremrPro] [features=default] \definefontsynonym [SerifItalic] [name:GaramondPremrPro-It] [features=default] \definefontsynonym [SerifBold] [name:GaramondPremrPro-Smbd] [features=default] \definefontsynonym [SerifBoldItalic] [name:GaramondPremrPro-SmbdIt] [features=default] \stoptypescript \def\sc{\setfontfeature{smallcaps}} \def\os{\setfontfeature{oldstyle}} \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes,fina=yes,calt=yes] %\definefontfeature [oldstyle][default] %[protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes] %\definefontfeature [smallcaps][default] %[protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes] \usetypescript [serif] [hz] [highquality] \setupalign [hanging,hz] \definetypeface [garamond] [rm] [serif] [garamond] [default] [encoding=ec] \setupbodyfont[garamond,12pt] \setupbodyfontenvironment[default][em=italic] ---8<--------------------------------------------------------------------------
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
On 15-3-2010 22:46, Philipp Gesang wrote:
this is what I am working with. I'm not sure every detail is needed, especially concerning the “script=latn” part as I'm successfully using
indeed some fonts have no dflt/dflt combination for script/language and for those you need the script=latn i'm still not sure if we need to make script=latn default Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Michael Saunders
-
Philipp Gesang