Hello, I'm wondering why before defining a typeface I must define a synonym for it. For example, my minimal working definition for Vladimir Script fontface is \starttypescript [serif] [vladimirscript] \definefontsynonym [Serif][name:vladimir][features=default] \stoptypescript \starttypescript [vladimirscript] \definetypeface [vladimirscript] [rm] [serif] [vladimirscript] [default] \stoptypescript Being XeTeX-adherent, it is a pain for me write that all for every font I use. Why I cannot specify it as simply as \starttypescript [vladimirscript] \definetypeface [vladimirscript] [rm] [serif] [name:vladimir] [default] \stoptypescript or better just \definetypeface [vladimirscript] [rm] [serif] [name:vladimir] [default] without any synonyms? -- Best regards, Vyatcheslav Yatskovsky
Vyatcheslav Yatskovsky wrote:
Hello,
I'm wondering why before defining a typeface I must define a synonym for it. For example, my minimal working definition for Vladimir Script fontface is
\starttypescript [serif] [vladimirscript] \definefontsynonym [Serif][name:vladimir][features=default] \stoptypescript \starttypescript [vladimirscript] \definetypeface [vladimirscript] [rm] [serif] [vladimirscript] [default] \stoptypescript
Being XeTeX-adherent, it is a pain for me write that all for every font I use. Why I cannot specify it as simply as
\starttypescript [vladimirscript] \definetypeface [vladimirscript] [rm] [serif] [name:vladimir] [default] \stoptypescript
or better just
\definetypeface [vladimirscript] [rm] [serif] [name:vladimir] [default]
without any synonyms?
depends if you want to access the individual fonts later on, some fonts come with 20 variants and only a few are used in a typeface then but you still may want to access the rest with symbolic names -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Dear Hans, I fully understand that such complex typescripts can be the only way to use full-featured professional fonts. But if I have only one ttf with one kind of typeface in it, should I write it all? XeTeX style was very appealing for many people, and verbose font definitions may distract these users. But anyway, thank you for escaping us from TeX-specific font hell :) Let me restate my question: is the following definition is really MINIMAL or it can be further reduced in some way? \starttypescript [serif] [vladimirscript] \definefontsynonym [Serif][name:vladimir][features=default] \stoptypescript \starttypescript [vladimirscript] \definetypeface [vladimirscript] [rm] [serif] [vladimirscript] [default] \stoptypescript \usetypescript[vladimirscript] \setupbodyfont [vladimirscript, 12pt] -- Best regards, Vyatcheslav Yatskovsky
Vyatcheslav Yatskovsky wrote:
Dear Hans,
I fully understand that such complex typescripts can be the only way to use full-featured professional fonts. But if I have only one ttf with one kind of typeface in it, should I write it all? XeTeX style was very appealing for many people, and verbose font definitions may distract these users.
i dunno what xetex style means here, but \font\vladimirscript=name:vladimir*default at 12pt is as minimum as it can gets but normally you want to set up a whole bunch of related things
But anyway, thank you for escaping us from TeX-specific font hell :)
Let me restate my question: is the following definition is really MINIMAL or it can be further reduced in some way?
\starttypescript [serif] [vladimirscript] \definefontsynonym [Serif][name:vladimir][features=default] \stoptypescript \starttypescript [vladimirscript] \definetypeface [vladimirscript] [rm] [serif] [vladimirscript] [default] \stoptypescript
\usetypescript[vladimirscript] \setupbodyfont [vladimirscript, 12pt]
\starttypescript [serif] [vladimirscript] \setups[font:fallback:serif] \definefontsynonym [Serif][name:vladimir][features=default] \stoptypescript \starttypescript [vladimirscript] \definetypeface [vladimirscript] [rm] [serif] [vladimirscript] [default] \stoptypescript \usetypescript[vladimirscript] \setupbodyfont[vladimirscript, 12pt] by adding the setups call, you make sure that your bold etc also uses the same font as fallback ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hello Hans, Thank you for the example, it looks really minimal. :) But nevertheless I cannot make use of it! Should I use \setupbodyfont or other command or nothing then? (I tried some variants, none worked). I currently have this, small and ugly: :) %engine=luatex \starttext \font\vladimirscript=name:vladimir*default at 36pt \midaligned{This is my title to be in big vladimir font} \stoptext -- Best regards, Vyatcheslav Yatskovsky
2007/8/13, Vyatcheslav Yatskovsky
Hello Hans,
Thank you for the example, it looks really minimal. :)
But nevertheless I cannot make use of it! Should I use \setupbodyfont or other command or nothing then? (I tried some variants, none worked). I currently have this, small and ugly: :)
%engine=luatex \starttext \font\vladimirscript=name:vladimir*default at 36pt \vladimirscript \midaligned{This is my title to be in big vladimir font} \stoptext
-- Best regards, Vyatcheslav Yatskovsky
You should also enable then font, it is not enough to define it only. Wolfgang
Hello Wolfgang, Thanks. It works! %engine=luatex \starttext \font\vladimirscript=name:vladimir*default at 36pt \vladimirscript \midaligned{This is my title to be in big vladimir font} \stoptext -- Best regards, Vyatcheslav Yatskovsky
Vyatcheslav Yatskovsky wrote:
Hello Wolfgang,
Thanks. It works!
If you want to get away from the bare \font command but not much more advanced, you can do this, which is a little shorter than your original definition: \starttypescript [serif] [vladimirscript] \definefontsynonym [Serif][name:vladimir][features=default] \stoptypescript \definetypeface [vladimirscript] [rm] [serif] [vladimirscript][default] \setupbodyfont [vladimirscript, 12pt] Best wishes, Taco
participants (4)
-
Hans Hagen
-
Taco Hoekwater
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster