[NTG-context] typescript

Philipp Gesang pgesang at ix.urz.uni-heidelberg.de
Mon Mar 15 22:46:26 CET 2010


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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100315/6e4ceac5/attachment.pgp>


More information about the ntg-context mailing list