Re: [NTG-context] \definefallbackfamily and small h

2014-08-05 Thread Wolfgang Schuster

Am 04.08.2014 um 20:58 schrieb Mikael P. Sundqvist mic...@gmail.com:

 Dear list,
 
 I have a problem with the small letter h when I do a
 \definefallbackfamily. Example:
 
 \definefontfamily [myface] [rm] [TeX Gyre Pagella]
 \definefallbackfamily[myface][math][TeX Gyre
 Termes][preset=math:lowercaseitalic]
 \definefontfamily[myface][math][TeX Gyre Pagella Math]
 
 \setuppagenumbering[state=stop]
 
 \setupbodyfont[myface]
 
 \starttext
 $h$
 \stoptext
 
 I get the h set in Pagella. With any other letter I get Termes... In
 my real example I do not want to replace with Termes but with a font
 (FrutigerLTstd) that does not have a math version.
 
 It seems (when I look with gnome character map), that the letter h is
 missing (or, probably, to be found elsewhere) from all fonts.
 
 Is there any chance I can fix this substitution manually for the letter h?


You have to change the symbol for the planck constant which is used
by unicode for the mathematical small italic h, you can see in the unicode
chart (http://www.unicode.org/charts/PDF/U1D400.pdf) there is a gap
on the position of the h.

\definefontfamily [myface] [rm] [TeX Gyre Pagella]

\definefallbackfamily[myface][math][TeX Gyre Heros][preset=math:lowercaseitalic]
\definefallbackfamily[myface][math][TeX Gyre 
Heros][tf=style:italic,range=0x68,offset=0x210E]

\definefontfamily[myface][math][TeX Gyre Pagella Math]

\setuppagenumbering[state=stop]

\setupbodyfont[myface]

\starttext
$h$
\stoptext

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


Re: [NTG-context] \definefallbackfamily and small h

2014-08-05 Thread Mikael P. Sundqvist
On Tue, Aug 5, 2014 at 12:18 PM, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:
 You have to change the symbol for the planck constant which is used
 by unicode for the mathematical small italic h, you can see in the unicode
 chart (http://www.unicode.org/charts/PDF/U1D400.pdf) there is a gap
 on the position of the h.

 \definefontfamily [myface] [rm] [TeX Gyre Pagella]

 \definefallbackfamily[myface][math][TeX Gyre 
 Heros][preset=math:lowercaseitalic]
 \definefallbackfamily[myface][math][TeX Gyre 
 Heros][tf=style:italic,range=0x68,offset=0x210E]

 \definefontfamily[myface][math][TeX Gyre Pagella Math]

 \setuppagenumbering[state=stop]

 \setupbodyfont[myface]

 \starttext
 $h$
 \stoptext

 Wolfgang

Thank you very much, that is it!

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


[NTG-context] \definefallbackfamily and small h

2014-08-04 Thread Mikael P. Sundqvist
Dear list,

I have a problem with the small letter h when I do a
\definefallbackfamily. Example:

\definefontfamily [myface] [rm] [TeX Gyre Pagella]
\definefallbackfamily[myface][math][TeX Gyre
Termes][preset=math:lowercaseitalic]
\definefontfamily[myface][math][TeX Gyre Pagella Math]

\setuppagenumbering[state=stop]

\setupbodyfont[myface]

\starttext
$h$
\stoptext

I get the h set in Pagella. With any other letter I get Termes... In
my real example I do not want to replace with Termes but with a font
(FrutigerLTstd) that does not have a math version.

It seems (when I look with gnome character map), that the letter h is
missing (or, probably, to be found elsewhere) from all fonts.

Is there any chance I can fix this substitution manually for the letter h?

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