[texhax] [half solved] Conversion otf -> tfm and ttf -> tfm (was: Conversion otf -> tfm)

Rodolfo Medina rodolfo.medina at gmail.com
Wed Aug 22 13:16:31 CEST 2018


Thanks to Bob, Hironobu, Herbert...

It seems solved for me with otf -> tfm conversion, but not with ttf -> tfm.
Both procedures, wit otftotfm or autoinst, work for me.  All I have to do is,
e.g.,

 $ otftotfm -v VectoraLTPro -a VectoraLTPro-Roman.otf
 $ updmap-user -enable Map VectoraLTPro.map 

This way, proper subdirs of ~/.texlive2018 are created with proper *.tfm and
*.map files in them; to use the font, in plain TeX, simply:

\font\normalfont=VectoraLTPro-Roman at 9 pt

{\normalfont hallo}

\bye

Alternatively, autoinst instead of otftotfm also works for me, but additional
subdirs, not necessary, in other places are created, so that otftotfm is better
for me.

Instead, with ttf -> tfm conversion neither of the two procedures work for me:
nor ttf2tfm neither autoinst, as normal user and/or as superuser...

ttf2tfm only creates a tfm file without the map file.

Here's the output of autoinst:

# autoinst Vectora-LT-Std-55-Roman_47552.ttf
I had to round some heights by 0.0030003 units.
I had to round some heights by 0.0030003 units.
I had to round some heights by 0.0075006 units.
I had to round some depths by 0.0015001 units.
I had to round some heights by 0.0075006 units.
I had to round some depths by 0.0010004 units.
I had to round some heights by 0.0150003 units.
I had to round some depths by 0.0025005 units.
I had to round some heights by 0.0150003 units.
I had to round some depths by 0.0025005 units.
I had to round some heights by 0.0030003 units.
I had to round some heights by 0.0030003 units.
I had to round some heights by 0.0075006 units.
I had to round some depths by 0.0015001 units.
I had to round some heights by 0.0075006 units.
I had to round some depths by 0.0010004 units.
I had to round some heights by 0.0150003 units.
I had to round some depths by 0.0025005 units.
I had to round some heights by 0.0150003 units.
I had to round some depths by 0.0025005 units.
I had to round some heights by 0.0075006 units.
I had to round some depths by 0.0015001 units.
I had to round some heights by 0.0075006 units.
I had to round some depths by 0.0010004 units.
otftotfm: warning: ‘updmap --nomkmap --enable Map VectoraLTStd.map >/dev/null 2>&1; updmap >/dev/null 2>&1’ exited with status 1;
otftotfm: warning: run it manually to check for errors
otftotfm: warning: ‘updmap --nomkmap --enable Map VectoraLTStd.map >/dev/null 2>&1; updmap >/dev/null 2>&1’ exited with status 1;
otftotfm: warning: run it manually to check for errors


Here's the one of texhash:

# texhash
texhash: Updating /usr/local/share/texmf/ls-R... 
texhash: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
texhash: Updating /var/lib/texmf/ls-R... 
texhash: Done.


And here's the one of updmap:

# updmap-sys -enable Map VectoraLTStd.map 
updmap will read the following updmap.cfg files (in precedence order):
  /usr/share/texmf/web2c/updmap.cfg
  /usr/share/texlive/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /etc/texmf/web2c/updmap.cfg
Creating new config file /etc/texmf/web2c/updmap.cfg
dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"

updmap is creating new map files
using the following configuration:
  LW35 font names                  : URWkb (default)
  prefer outlines                  : true (default)
  texhash enabled                  : true
  download standard fonts (dvips)  : true (default)
  download standard fonts (pdftex) : true (default)
  jaEmbed replacement string       : noEmbed (default)
  jaVariant replacement string     : <empty> (default)
  scEmbed replacement string       : noEmbed (default)
  tcEmbed replacement string       : noEmbed (default)
  koEmbed replacement string       : noEmbed (default)
  create a mapfile for pxdvi       : false (default)

Scanning for LW35 support files  [  3 files]
Scanning for MixedMap entries    [ 23 files]
Scanning for KanjiMap entries    [  0 files]
Scanning for Map entries         [232 files]

Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...

Files generated:
  /var/lib/texmf/fonts/map/dvips/updmap:
       15758 2018-08-22 08:46:12 builtin35.map
       21231 2018-08-22 08:46:12 download35.map
     2530485 2018-08-22 08:46:15 psfonts_pk.map
     2550993 2018-08-22 08:46:13 psfonts_t1.map
     2550988 2018-08-22 08:46:12 ps2pk.map
          14 2018-08-22 08:46:18 psfonts.map -> psfonts_t1.map
  /var/lib/texmf/fonts/map/pdftex/updmap:
     2550995 2018-08-22 08:46:18 pdftex_dl14.map
     2549330 2018-08-22 08:46:17 pdftex_ndl14.map
          15 2018-08-22 08:46:18 pdftex.map -> pdftex_dl14.map
  /var/lib/texmf/fonts/map/dvipdfmx/updmap:
         281 2018-08-22 08:46:10 kanjix.map

Transcript written on "/var/lib/texmf/web2c/updmap.log".
updmap: Updating ls-R files.

But then the font, loaded, as above, does not work:

\font\normalfont=VectoraLTStd-Roman-tlf-t1 at 9 pt

{\normalfont hallo}

\bye

$ tex test
$ xdvi test

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+540/600 --dpi 540 VectoraLTStd-Roman-tlf-t1--base
mktexpk: don't know how to create bitmap font for VectoraLTStd-Roman-tlf-t1--base.
mktexpk: perhaps VectoraLTStd-Roman-tlf-t1--base is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
xdvi: Error: Can't find font VectoraLTStd-Roman-tlf-t1--base; using cmr10 instead. Expect ugly output.

Please help find a solution of this other half of the problem.

Thanks,

Rodolfo



More information about the texhax mailing list