Andres,
1) If you are using Microsoft Windows, you have to set up the font directory before using ConTeXt, where you have placed your Maths fonts (i.e. in c:/windows/fonts) :
set OSFONTDIR=c:/windows/fonts
then type the following in a console ( in this directory : ~/context/tex/texmf-win64/bin) :
context --generate
context --make
and :
mtxrun --script fonts --reload
Then test a file.
2) Note that if your are using some Linux like OS, to set up fonts is quite different :
export OSFONTDIR=~/home/user/.fonts//:/usr/share/fonts:/usr/share/texmf/fonts/opentype/:/usr/share/texmf/fonts/truetype/:/usr/share/fonts/type1/
As you see, it is better to place the different kind of fonts in a directory in /usr/share/fonts (and in /home/your-user-name/.fonts)
Then :
context --generate
context --make
and :
mtxrun --script fonts --reload
Then test a file.
3) You can delete the font's cache by the following command (it works on both Windows and Linux) :
fc-cache -v -f
Then try again a test file.
JP
----- Mail original -----
De: "Andres Conrado Montoya"
À: ntg-context@ntg.nl
Envoyé: Lundi 27 Mars 2017 10:34:09
Objet: [NTG-context] Using MTPro2 math Fonts with ConTeXt
Hello, List.
I am using the MTPro2 complete fonts (provided by the publisher house) for typesetting some math books in LaTeX this year. I also want to use ConTeXt to typeset other math books, those that don't come originally in LaTeX. However, the publisher requires that I use the MTPro2 fonts for math, and I've tried using the clues presentend in https://mailman.ntg.nl/pipermail/ntg-context/2013/075938.html to install, but with no avail. Fonts were placed in "context/tex/texmf-local", preserving folder structure; "mtxrun --generate && mtxrun --script fonts --reload" was called after. When that didn't work, tried placing the type1 and tfm folders in my fonts folder (that is called by OSFONTDIR), and again, reload the fonts, but they just don't figure in the list provided by "mtxrun --script fonts --list --all --name --pattern=*". I have not found a way of using this font in ConTeXt, and I really need it (or will be just LaTeX for now).
Thanks in advance.
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos.
----------------------------------------
“You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________