(Sorry for the preceding message, I forgot the [NTG-context] for filters...) Dear all, I try to use Open Type fonts with ConTeXt and XeTeX (I recently did the same with LaTeX using fontspec and mathspec packages). From the web site, I managed to use them for standard text as well as roman alphabet in math. Unfortunately, greek letters stay printed with the Latin Modern font.
From examples of the web site, I tried the following lines but without success. In a preceding post, there was a similar question but with the luatex engine. Thanks for your help !
\definetypeface[myface][rm][Xserif][GFS Didot] \definetypeface[myface][mm][math][GFS Didot] \starttext Normal text. \startformula \alpha + \beta = 10 \stopformula \stoptext -- Flavien. ---------------------------- "Quantum objects are completely crazy but, at least, they are all crazy in the same way." R.P. Feynman.
On Sun, Sep 7, 2008 at 10:04 PM, Flavien Lambert
(Sorry for the preceding message, I forgot the [NTG-context] for filters...)
Dear all, I try to use Open Type fonts with ConTeXt and XeTeX (I recently did the same with LaTeX using fontspec and mathspec packages). >From the web site, I managed to use them for standard text as well as roman alphabet in math. Unfortunately, greek letters stay printed with the Latin Modern font. From examples of the web site, I tried the following lines but without success. In a preceding post, there was a similar question but with the luatex engine. Thanks for your help !
\definetypeface[myface][rm][Xserif][GFS Didot] \definetypeface[myface][mm][math][GFS Didot]
No time for complete answer, but you need to define the whole [math][GFS Didot] repertoaire first. This has no effect until you define one. Someone needs to write "Unicode math support" for mkii, or you need to make your own virtual font. See this file for example: http://source.contextgarden.net/math-lbr.tex in a similar way that would need to be done for general typefaces without math. You might then be able to say something like \definetypeface[myface][mm][Xmath][GFS Didot], though I'm 100% sure that people would then start complaining very soon that they either: - want other math characters in their favorite font as well (like plus, minus, brackets, ...), not only Greek letters - complain that they don't get any symbol (no font has them all) Mojca
On Mon, 8 Sep 2008, Mojca Miklavec wrote:
Someone needs to write "Unicode math support" for mkii, or you need to make your own virtual font.
Well...someone also needs to write "Unicode math support" for mkiv and I would work on that in the hope that there is some chance that I may actually understand how mkiv (will) handle math fonts. With MKII, math fonts is black magic for me. Aditya
Aditya Mahajan wrote:
On Mon, 8 Sep 2008, Mojca Miklavec wrote:
Someone needs to write "Unicode math support" for mkii, or you need to make your own virtual font.
Well...someone also needs to write "Unicode math support" for mkiv and I would work on that in the hope that there is some chance that I may actually understand how mkiv (will) handle math fonts. With MKII, math fonts is black magic for me.
in mkii math characters (symbols) are taken from many fonts (and we can even have several combinations of math fonts active at the same time) in mkiv we will use unicode exclusively (as soon as the math subproject of luatex is finished) i don't think that mkii will have unicode math support 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 -----------------------------------------------------------------
Just to understand a bit more : signs like equal are printed inside math environment with GFS Didot thanks to \definetypeface[myface][rm][Xserif][GFS Didot]. Since GFS Didot ,as a greek font has greek letters, why are these glyphs not used ? I suppose that when greek people are using directly alpha as a letter (not \alpha), it should take into account the GFS Didot font, shouldn' it ?
No time for complete answer, but you need to define the whole [math][GFS Didot] repertoaire first. This has no effect until you define one.
Someone needs to write "Unicode math support" for mkii, or you need to make your own virtual font.
See this file for example: http://source.contextgarden.net/math-lbr.tex in a similar way that would need to be done for general typefaces without math.
You might then be able to say something like \definetypeface[myface][mm][Xmath][GFS Didot], though I'm 100% sure that people would then start complaining very soon that they either: - want other math characters in their favorite font as well (like plus, minus, brackets, ...), not only Greek letters - complain that they don't get any symbol (no font has them all)
Mojca
___________________________________________________________________________________ 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
___________________________________________________________________________________
-- Flavien. ---------------------------- "Quantum objects are completely crazy but, at least, they are all crazy in the same way." R.P. Feynman.
Flavien Lambert wrote:
Just to understand a bit more : signs like equal are printed inside math environment with GFS Didot thanks to \definetypeface[myface][rm][Xserif][GFS Didot]. Since GFS Didot ,as a greek font has greek letters, why are these glyphs not used ? I suppose that when greek people are using directly alpha as a letter (not \alpha), it should take into account the GFS Didot font, shouldn' it ?
it's more complex than that ... tex organizes math characters in families and = and alpha are in different slots there greek alpha letter is (in mkiv) directly accessing the right glyph in the font; in mkiv mode it cna be either direct access, or fallback on math or ... 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 -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Flavien Lambert
-
Hans Hagen
-
Mojca Miklavec