I have a pfb and tfm file of the DANTE font, which has only the five characters D,A,N,T,E However, this did not work \definefont[dante][dante at 16pt] \starttext \dante DANTE \stoptext When I create a afm file from the dante.pfb then everything is fine. Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file? Herbert
On 11-11-2010 9:16, Herbert Voss wrote:
I have a pfb and tfm file of the DANTE font, which has only the five characters D,A,N,T,E However, this did not work
\definefont[dante][dante at 16pt] \starttext \dante DANTE \stoptext
When I create a afm file from the dante.pfb then everything is fine.
Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file?
yes, because in context it gets a unicode encoding (which also means that you can access more than 256 characters if the font has them no more encodings Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
2010/11/11 Herbert Voss wrote:
I have a pfb and tfm file of the DANTE font, which has only the five characters D,A,N,T,E However, this did not work
\definefont[dante][dante at 16pt] \starttext \dante DANTE \stoptext
When I create a afm file from the dante.pfb then everything is fine.
Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file?
Shouldn't DANTE launch a pet project and convert the font to OpenType? (That should be 10-60 minutes of work for somebody familiar with fonts.) But yes, as Hans replied, you need afm file. pdfTeX gets all the font metric data from tfm files, while ConTeXt MKIV prefers to be able to use more than 256 characters when they are available in Type1 font (it doesn't need or read enc, map, vf and tfm files). Mojca
Am 11.11.2010 12:10, schrieb Mojca Miklavec:
2010/11/11 Herbert Voss wrote:
Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file?
Shouldn't DANTE launch a pet project and convert the font to OpenType? (That should be 10-60 minutes of work for somebody familiar with fonts.)
But yes, as Hans replied, you need afm file. pdfTeX gets all the font metric data from tfm files, while ConTeXt MKIV prefers to be able to use more than 256 characters when they are available in Type1 font (it doesn't need or read enc, map, vf and tfm files).
thanks, I converted it with fontforge to otf. Now I get voss@shania:/opt/context> mtxrun --script fonts --list --all --pattern=*dante* dante dante DANTE.otf dantenormal dante DANTE.otf Is this the intended behaviour, that the afm files are now no more listed? without the otf version the output is: voss@shania:/opt/context> mtxrun --script fonts --list --all --pattern=*dante* dante dante dante.afm dantenormal dante dante.afm Herbert
On 11-11-2010 12:59, Herbert Voss wrote:
Am 11.11.2010 12:10, schrieb Mojca Miklavec:
2010/11/11 Herbert Voss wrote:
Does ConTeXt always needs an afm-file for the metrics of an type 1 font? And, of course, a map file?
Shouldn't DANTE launch a pet project and convert the font to OpenType? (That should be 10-60 minutes of work for somebody familiar with fonts.)
But yes, as Hans replied, you need afm file. pdfTeX gets all the font metric data from tfm files, while ConTeXt MKIV prefers to be able to use more than 256 characters when they are available in Type1 font (it doesn't need or read enc, map, vf and tfm files).
thanks, I converted it with fontforge to otf. Now I get
voss@shania:/opt/context> mtxrun --script fonts --list --all --pattern=*dante*
dante dante DANTE.otf dantenormal dante DANTE.otf
Is this the intended behaviour, that the afm files are now no more listed? without the otf version the output is:
voss@shania:/opt/context> mtxrun --script fonts --list --all --pattern=*dante*
dante dante dante.afm dantenormal dante dante.afm
indeed, as the names are the same, otf takes precedence over type one Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Herbert Voss
-
Mojca Miklavec