Re: [NTG-context] Problem installing a new font
Hi Taco, Thank you so much! 1. yes forgot that /fonts piece in the given path. 2. Indeed mtxrun —generate is the key! And 3 : it works! Bedankt en groet Willi > On 12 Nov 2018, at 16:26, Taco Hoekwater wrote: > > Hi, > >> On 12 Nov 2018, at 15:39, Willi Egger wrote: >> >> I downloaded the font and put all *afm and *.pfb files into >> ../texmf-fonts/data/public/aurical > > Not sure about that path. Should that not be > ../texmf-fonts/fonts/data/public/aurical ? > > Nevertheless, the most important missing ingredient is > > mtxrun --generate > > Since ‘mtxrun —script fonts —reload’ does not scan the disk of the standard > folders, > it just queries the file cache. > > So the right order is: > > unzip > mtxrun —generate > mtxrun —script fonts —reload > > That works for me. > > I just unzipped the CTAN download into my texmf-fonts, so I have > > hamster:texmf-fonts taco$ mtxrun LukasSvatbaSlant.afm > > /Users/taco/context/tex/texmf-fonts/fonts/afm/public/aurical/LukasSvatbaSlant.afm > > hamster:texmf-fonts taco$ mtxrun --script font --list --file > --pattern=LukasSvatbaSlant.afm > familynameweight stylewidthvariant fontname > filename subfont fontweight > lukassvatba normal italic normal normallukassvatbaoblique > LukasSvatbaSlant.afm conflict: oblique > > And it works: > > hamster:Downloads taco$ pdffonts HW.pdf > name type encoding emb > sub uni object ID > - --- > --- --- - > WIPANP+LMRoman12-Regular CID Type 0C Identity-H yes > yes yes 10 0 > SRZNPW+Lukas-Svatba CID Type 0C Identity-H yes > yes yes 11 0 > > Best wishes, > Taco > > > > > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] Problem installing a new font
Hi, > On 12 Nov 2018, at 15:39, Willi Egger wrote: > > I downloaded the font and put all *afm and *.pfb files into > ../texmf-fonts/data/public/aurical Not sure about that path. Should that not be ../texmf-fonts/fonts/data/public/aurical ? Nevertheless, the most important missing ingredient is mtxrun --generate Since ‘mtxrun —script fonts —reload’ does not scan the disk of the standard folders, it just queries the file cache. So the right order is: unzip mtxrun —generate mtxrun —script fonts —reload That works for me. I just unzipped the CTAN download into my texmf-fonts, so I have hamster:texmf-fonts taco$ mtxrun LukasSvatbaSlant.afm /Users/taco/context/tex/texmf-fonts/fonts/afm/public/aurical/LukasSvatbaSlant.afm hamster:texmf-fonts taco$ mtxrun --script font --list --file --pattern=LukasSvatbaSlant.afm familynameweight stylewidthvariant fontname filename subfont fontweight lukassvatba normal italic normal normallukassvatbaoblique LukasSvatbaSlant.afm conflict: oblique And it works: hamster:Downloads taco$ pdffonts HW.pdf name type encoding emb sub uni object ID - --- --- --- - WIPANP+LMRoman12-Regular CID Type 0C Identity-H yes yes yes 10 0 SRZNPW+Lukas-Svatba CID Type 0C Identity-H yes yes yes 11 0 Best wishes, Taco ___ 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 ___
Re: [NTG-context] Problem installing a new font
Hi, I downloaded the font and put all *afm and *.pfb files into ../texmf-fonts/data/public/aurical I reloaded the database with mtxrun —script fonts —roload. Then I was looking for the font in the database: mtxrun --script font --list --file --pattern=LukasSvatbaSlant.afm Strange enough I get no result. I tried to find the new cache I generated with the reload command. I can not find a new cache in ,,/texmf-cache/luatex-cache/context, what I see there is only a cache which has a date from 2013… I am puzzled, Where does Context nowadays deposit the cache files? Of course under these conditions Lukáš’s example does not work. — I think that the mechanism for loading type1 fonts works, I tried Lukáš’s MWE with Dolly and that does work nicely. Best wishs Willi > On 10 Nov 2018, at 21:56, Procházka Lukáš Ing. wrote: > > Hello, > > probably one of the basic questions and skills in ConTeXt, but the first case > for me: how to install a (downloaded third-party) font into ConTeXt: > > I downloaded font source files from > https://www.ctan.org/tex-archive/fonts/aurical/ and I unpacked the .zip > content, so I have now (see FileList.txt for full info): > > > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\FileList.txt > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\map > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\tfm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1 > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogo.afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBold.afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm > ... > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1\public\aurical\LukasSvatbaSlant.pfb > > > Trying to install the font the easiest way, I also copied files into my > ConTeXt dir, so I have also (see FileList2.txt): > > > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogo.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBold.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldSlant.afm > ... > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogo.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBold.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldRslant.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldSlant.pfb > ... > > > I tried to follow instructions in 'mfonts.pdf' mentioned at > https://wiki.contextgarden.net/Fonts, but early I failed with (unknown) > "texfont" command cited here frequently. > > I also experimented somehow with "mtxrun --make --generate" and "mtxrun > script --font --reload --force" and with a simple show-font file which starts > with: > > > \definefont[FONT][AmiciLogo.afm] > ... > > > but the result is not written by AmiciLogo font. > > So - how to make ConTeXt aware of a third-party font and how to use the font > in the document? > > Best regards, > > Lukas > > > -- > Ing. Lukáš Procházka | mailto:l...@pontex.cz > Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | > IDDS:nrpt3sn > Bezová 1658 > 147 14 Praha 4 > > Mob.: +420 702 033 > 396___ > 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 > ___ ___ 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 ___
Re: [NTG-context] Problem installing a new font
On 11/11/2018 6:43 PM, Willi Egger wrote: I think, that for a type 1 font you will need to setup a set of typescripts, because you need to tell also the encoding to be used. A source of such typescripts can be looked up in the MKII environment. just use the name of the afm file (and make sure that there is a pfb file too) ... context maps these fonts onto unicode (so no 256 char limit either) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem installing a new font
I think, that for a type 1 font you will need to setup a set of typescripts, because you need to tell also the encoding to be used. A source of such typescripts can be looked up in the MKII environment. Willi > On 11 Nov 2018, at 15:28, Procházka Lukáš Ing. wrote: > > Hello, > > -- all attachments packed into one .zip -- > > probably one of the basic questions and skills in ConTeXt, but the first case > for me: how to install a (downloaded third-party) font into ConTeXt: > > I downloaded font source files from > https://www.ctan.org/tex-archive/fonts/aurical/ and I unpacked the .zip > content, so I have now (see FileList.txt for full info): > > > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\FileList.txt > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\map > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\tfm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1 > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogo.afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBold.afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm > ... > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1\public\aurical\LukasSvatbaSlant.pfb > > > Trying to install the font the easiest way, I also copied files into my > ConTeXt dir, so I have also (see FileList2.txt): > > > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogo.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBold.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldSlant.afm > ... > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogo.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBold.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldRslant.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldSlant.pfb > ... > > > I tried to follow instructions in 'mfonts.pdf' mentioned at > https://wiki.contextgarden.net/Fonts, but early I failed with (unknown) > "texfont" command cited here frequently. > > I also experimented somehow with "mtxrun --make --generate" and "mtxrun > script --font --reload --force" and with a simple show-font file which starts > with: > > > \definefont[FONT][AmiciLogo.afm] > ... > > > but the result is not written by AmiciLogo font. > > So - how to make ConTeXt aware of a third-party font and how to use the font > in the document? > > Best regards, > > Lukas > > > -- > Ing. Lukáš Procházka | mailto:l...@pontex.cz > Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | > IDDS:nrpt3sn > Bezová 1658 > 147 14 Praha 4 > > Mob.: +420 702 033 396 > > ___ > 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 > ___ ___ 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 ___
[NTG-context] Problem installing a new font
Hello, -- all attachments packed into one .zip -- probably one of the basic questions and skills in ConTeXt, but the first case for me: how to install a (downloaded third-party) font into ConTeXt: I downloaded font source files from https://www.ctan.org/tex-archive/fonts/aurical/ and I unpacked the .zip content, so I have now (see FileList.txt for full info): d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\FileList.txt d:\Lukas\ConTeXt\Fonts\Aurical\fonts\map d:\Lukas\ConTeXt\Fonts\Aurical\fonts\tfm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1 d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogo.afm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBold.afm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm ... d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1\public\aurical\LukasSvatbaSlant.pfb Trying to install the font the easiest way, I also copied files into my ConTeXt dir, so I have also (see FileList2.txt): d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogo.afm d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBold.afm d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldSlant.afm ... d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogo.pfb d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBold.pfb d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldRslant.pfb d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldSlant.pfb ... I tried to follow instructions in 'mfonts.pdf' mentioned at https://wiki.contextgarden.net/Fonts, but early I failed with (unknown) "texfont" command cited here frequently. I also experimented somehow with "mtxrun --make --generate" and "mtxrun script --font --reload --force" and with a simple show-font file which starts with: \definefont[FONT][AmiciLogo.afm] ... but the result is not written by AmiciLogo font. So - how to make ConTeXt aware of a third-party font and how to use the font in the document? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 ___ 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 ___