While looking at Cambria, is there any typescript (or something similar) that defines for example Corbel or Candara as a companion to Cambria? Patrick
Am 29.09.2010 um 14:52 schrieb Patrick Gundlach:
While looking at Cambria, is there any typescript (or something similar) that defines for example Corbel or Candara as a companion to Cambria?
No but you can write your own typescript: \definetypeface [mainface] [rm] [serif] [cambria] [default] \definetypeface [mainface] [ss] [sans] [corbel] [default] [rscale=auto] \definetypeface [mainface] [tt] [mono] [consolas] [default] [rscale=auto] \definetypeface [mainface] [mm] [math] [cambria] [default] \setupbodyfont[mainface] Wolfgang
While looking at Cambria, is there any typescript (or something similar) that defines for example Corbel or Candara as a companion to Cambria?
No but you can write your own typescript:
\definetypeface [mainface] [rm] [serif] [cambria] [default] \definetypeface [mainface] [ss] [sans] [corbel] [default] [rscale=auto] \definetypeface [mainface] [tt] [mono] [consolas] [default] [rscale=auto] \definetypeface [mainface] [mm] [math] [cambria] [default]
\setupbodyfont[mainface]
OK, I see. (I only searched the .tex files, but missed the .mkiv while searching for "corbel"). Thanks again! But even if I had seen the lines with corbel, I would have asked how to use the typescript. The definition in type-otf.mkiv goes like: \starttypescript [sans] [corbel] [name] ... ... \stoptypescript I guess [name] is just a default classifier for defining the base level of a filename-font mapping, right? I assume that somewhere there is a statement like \usetypescript [sans] [corbel] [name] after saying \definetypeface [mainface] [ss] [sans] [corbel] [default] [rscale=auto] Is this the way this is done internally? What exactly is rscale=auto ? Patrick
Am 29.09.2010 um 15:25 schrieb Patrick Gundlach:
I guess [name] is just a default classifier for defining the base level of a filename-font mapping, right?
It’s a leftover from mkii where you had [name] and [texnansi,ec,...], the first was to map from “Serif” etc. to the symbolic name (e.g. PalatinoItalic) and the other to map the symbolic name to the font file.
I assume that somewhere there is a statement like
\usetypescript [sans] [corbel] [name]
after saying
\definetypeface [mainface] [ss] [sans] [corbel] [default] [rscale=auto]
Is this the way this is done internally?
This was always the case, even in mkii.
What exactly is rscale=auto ?
Instead of giving a scale factor (e.g. factor=1.1) you can say auto and context use the font information to scale the sans font to the same size as the serif font. Wolfgang
What exactly is rscale=auto ?
Instead of giving a scale factor (e.g. factor=1.1) you can say auto and context use the font information to scale the sans font to the same size as the serif font.
How does it work internally? Or on which font parameters does this depend on (e.g. x-height, font em-units etc.)? Consider the following example which does not work here (Modern Typewriter is scaled to small): \definetypeface [mainface] [rm] [serif] [cambria] [default] \definetypeface [mainface] [tt] [mono] [modern] [default] [rscale=auto] Florian
participants (3)
-
Florian Wobbe
-
Patrick Gundlach
-
Wolfgang Schuster