ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definefallbackfamily and small h
@ 2014-08-04 18:58 Mikael P. Sundqvist
  2014-08-05 10:18 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael P. Sundqvist @ 2014-08-04 18:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \definefallbackfamily and small h
  2014-08-04 18:58 \definefallbackfamily and small h Mikael P. Sundqvist
@ 2014-08-05 10:18 ` Wolfgang Schuster
  2014-08-05 10:59   ` Mikael P. Sundqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2014-08-05 10:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.08.2014 um 20:58 schrieb Mikael P. Sundqvist <mickep@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \definefallbackfamily and small h
  2014-08-05 10:18 ` Wolfgang Schuster
@ 2014-08-05 10:59   ` Mikael P. Sundqvist
  0 siblings, 0 replies; 3+ messages in thread
From: Mikael P. Sundqvist @ 2014-08-05 10:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Aug 5, 2014 at 12:18 PM, Wolfgang Schuster
<schuster.wolfgang@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-05 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-04 18:58 \definefallbackfamily and small h Mikael P. Sundqvist
2014-08-05 10:18 ` Wolfgang Schuster
2014-08-05 10:59   ` Mikael P. Sundqvist

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).