Re: [NTG-context] bold and nonbold math

2009-08-19 Thread Hans van der Meer
I examined the typescript given and started to apply it. I get however  
a strange error in that a font is not found.

I replaced my line:
  \definefontsynonym [LucidaCalligraphy-Italic] [file:lbc.tfm]
with the given:
  \definefontsynonym [LucidaCalligraphy-Italic] 
[name:lucidahandwritingitalic][features=default]


The font search then comes in the afm-directory, as proved by the log  
(in part):

fontnames | identifying tree font files with suffix afm
fontnames | error when identifying afm font /Users/hans/TeX/context/ 
beta/tex/texmf-local/fonts/afm/yandy/lucida/lbmitex.afm: no matching  
pfb file
fontnames | error when identifying afm font /Users/hans/TeX/context/ 
beta/tex/texmf-local/fonts/afm/yandy/lucida/lbmrtex.afm: no matching  
pfb file

...
(these being math font files)

The needed lbc.afm contains:
...
Comment UniqueID 5029013
Comment MS-WindowsName LucidaCalligraphy
Comment MacIntoshName LucidaCalligraphy
FontName LucidaCalligraphy-Italic
FullName Lucida Calligraphy Italic
FamilyName LucidaCalligraphy
Weight Normal
...

Any reason why it is not found on the font search through the [name:]  
scheme?


On 18 aug 2009, at 18:50, Wolfgang Schuster wrote:



Am 18.08.2009 um 17:18 schrieb Hans van der Meer:

Working on typescripts for Y&Y's LucidaBright (which are type1  
fonts) for MKIV (hoping to maintain compatibilty with MKII), the  
following code produces all math in bold, even the first x+y.


You can use mine as start, math is defined in type-otf.mkiv.

Wolfgang



Hans van der Meer




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold and nonbold math

2009-08-19 Thread Hans Hagen

Hans van der Meer wrote:
Working on typescripts for Y&Y's LucidaBright (which are type1 fonts) 
for MKIV (hoping to maintain compatibilty with MKII), the following code 
produces all math in bold, even the first x+y.
  \usetypescript[luc]\setupbodyfont[luci]\starttext $x+y$ -- $\bfmath 
x+y$ \stoptext


I studied the new manual chapter on typescripts as well as have worked 
in analogy with existent typescripts in the current ConTeXt base. I 
certainly am missing an important clue here.


the most important clue is that mkii and mkiv are different

(1) instead of many families we only use two, see type-siz.mkiv, where 
you can find lines like:


  \definebodyfont [12pt] [mm] [mr=LMMathRoman12-Regular sa 1, 
mb=LMMathRoman12-Bold sa 1]


(2) there is a distinction between bold alphabets (see unicode math) and 
a complete switch to bold; so, \bf cum suis deal with alphabets, while 
\mb switches to the bold math family


(3) we use either opentype math fonts or virtual ones, i.e. if you use 
lucida, which is traditional, we need an entry in math-vfu.lua, and in 
the beta that is the case (but not for bold)


(4) no math vectors are used in mkiv, only unicode

(5) as loading and switching comes a price, we need to enable it with
\enableboldmath before loading fonts

so, although most things on the outside are the same in mkii/mkiv there 
are some fundamental differences


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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold and nonbold math

2009-08-18 Thread Wolfgang Schuster


type-lucida.tex
Description: Binary data


Am 18.08.2009 um 17:18 schrieb Hans van der Meer:

Working on typescripts for Y&Y's LucidaBright (which are type1  
fonts) for MKIV (hoping to maintain compatibilty with MKII), the  
following code produces all math in bold, even the first x+y.


You can use mine as start, math is defined in type-otf.mkiv.

Wolfgang

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bold and nonbold math

2009-08-18 Thread Hans van der Meer
Working on typescripts for Y&Y's LucidaBright (which are type1 fonts)  
for MKIV (hoping to maintain compatibilty with MKII), the following  
code produces all math in bold, even the first x+y.
  \usetypescript[luc]\setupbodyfont[luci]\starttext $x+y$ -- $\bfmath  
x+y$ \stoptext


I studied the new manual chapter on typescripts as well as have worked  
in analogy with existent typescripts in the current ConTeXt base. I  
certainly am missing an important clue here.


The relevant portions of the typescript are:

\starttypescriptcollection[luci]

\starttypescript [luci]
  \definetypeface [luci][mm][math][lucibr][default]
  \definetypeface [luci][mm][bfmath][lucibr][default] % removal  
prints nonbold math only

\stoptypescript
...
% typescripts for text in serif, sans etc. omitted but contain:
  \definefontsynonym [LucidaBright][lbr.tfm][encoding=\typescriptthree]
  \definefontsynonym [LucidaBright-Demi][lbd.tfm][encoding= 
\typescriptthree]

...
\starttypescript [math] [lucibr] [name]
  \usemathcollection [lucibr]
  \definefontsynonym [MathRoman][LucidaBright] ... etc.
  \definebodyfont [default] [mm] [mr=MathRoman mo 1, ex=MathExtension  
mo 1, ... etc.]

  .. math font tfm definitions
\stoptypescript
\starttypescript [bfmath] [lucibr] [name]
  \usemathcollection [lucibr]
  \definefontsynonym [MathRomanBold] [LucidaBright-Demi] ... etc.
  \definebodyfont [default] [mm] [mrbf=MathRomanBold mo 1,  
exbf=MathExtensionBold mo 1, ... etc.]

  .. bold font tfm definitions
\stoptypescript

\stoptypescriptcollection

Hans van der Meer




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___