[NTG-context] Typescript not found

S Barmeier severinbarmeier at googlemail.com
Fri Mar 30 01:12:31 CEST 2012


On 03/29/2012 03:33 PM, Wolfgang Schuster wrote:
> 
> Am 28.03.2012 um 09:32 schrieb S Barmeier:
> 
>> I have some typescript problems.
>>
>> The output says
>>
>> fonts           > typescripts > unknown: library 'mytypescript'
>> fonts           > typescripts > unknown: library 'Myface'
>> fonts           > preloading latin modern fonts (third stage)
>>
>> In my environment file I have
>>
>> \usetypescriptfile[mytypescript]
>> \usetypescript[MyIPAex]
>> \setupbodyfont[Myface,rm,12pt]
>>
>> and the typescript file is in the same folder as the source files.
>>
>> What am I doing wrong?
> 
> Has your typescript file “type-” as prefix?

It did until recently, is that a problem? Now I called it mytypescript
with an output just as above, i.e. still unable to find the typescript.

> BTW: When the file contains only one typeface it’s better to use the same name
> for the typeface, typescript and file because you can then omit the \usetypescript
> and \usetypescriptfile commands in your document.
> 
> Wolfgang

I still might have to think of better names, but here what I'm trying to
use...

Thank you for your help.
Severin

\definefontfeature[jpdefault][mode=node,script=hani,lang=jan]
\def\mydefaultfeatures{kern=yes;liga=yes;tlig=yes;trep=yes}
\definefontfallback[serifwhatever][gentium:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifboldwhatever][gentiumbasicbold:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifitalicwhatever][gentiumitalic:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[serifbolditalicwhatever][gentiumbasicbolditalic:\mydefaultfeatures][0x0000-0x0400][force=yes]
\definefontfallback[sanswhatever][andikabasic:\mydefaultfeatures][0x0000-0x0400][force=yes]
\starttypescript[serif][IPAexMincho]
\definefontsynonym[ipaexmincho][ipaexm.ttf][features=jpdefault,fallbacks=serifwhatever]
\stoptypescript
\starttypescript[serif][IPAexMincho][name]
\definefontsynonym[Serif][ipaexmincho]
\stoptypescript
\starttypescript[sans][IPAexGothic]
\definefontsynonym[ipaexgothic][ipaexg.ttf][features=jpdefault,fallbacks=sanswhatever]
\stoptypescript
\starttypescript[sans][IPAexGothic][name]
\definefontsynonym[Sans][ipaexgothic]
\stoptypescript
\starttypescript[mono][KanjiStrokeOrders]
\definefontsynonym[kanjistrokeorders][KanjiStrokeOrders_v2.015.ttf][features=jpdefault]
\stoptypescript
\starttypescript[mono][KanjiStrokeOrders][name]
\definefontsynonym[Mono][kanjistrokeorders]
\stoptypescript
\starttypescript[MyIPAex]
\definetypeface[Myface][rm][serif][IPAexMincho][default]
\definetypeface[Myface][ss][sans][IPAexGothic][default]
\definetypeface[Myface][tt][mono][KanjiStrokeOrders][default][rscale=1.3]
\stoptypescript


More information about the ntg-context mailing list