exchanged: > ttf2afm -o "$afmfont" "$ttffont" > ttf2ufm $ttffont - | t1asm -a > $pfafont with: fontforge -script ffscript.pe $ttffont (a hint from http://www.schaffter.ca/mom/momdoc/appendices.html)
=> success [fontforge should write a documentation for their scripting.] <hoh...@arcor.de> wrote (Wed, 1 Jul 2015 13:48:25 +0200): > > Hi, I did: > > groffpath="/usr/share/groff/current/font/devps" > DESCfile="$groffpath/DESC" > TEXTMAPfile="$groffpath/generate/textmap" > TEXTENCfile="$groffpath/text.enc" > #DOWNLOADfile="$groffpath/download" > DOWNLOADfile="./download" > ttffont='ttf/DroidSans.ttf' > groffname='DSaR' > > afmfont="$(basename $ttffont .ttf).afm" > pfafont="$(basename $ttffont .ttf).pfa" > grofffont="$groffname" > > ttf2afm -o "$afmfont" "$ttffont" > ttf2ufm $ttffont - | t1asm -a > $pfafont > afmtodit -d$DESCfile -e$TEXTENCfile $afmfont $TEXTMAPfile $grofffont > > groff_internalname=$(awk '/internalname/{print $2}' $grofffont) > echo "$groff_internalname $pfafont" >> $DOWNLOADfile > > > ---- > manually: > editing download-file at /usr/share/groff/current/font/devps > In this case: 'DroidSans DroidSans.pfa'. > and copying the fonts and metric (.pfa, DSaR and .afm) > > -> viewing files via xpdf or gv: ok > however: > -> physically printing (oki-laser): fails. Deploys Courier instead. > > Did I miss something? > Thanks Holger > > > ---- > Output is: > Using language 'latin1' for Unicode fonts > Auto-detected front-end parser 'ttf' > (use ttf2pt1 -p? to get the full list of available front-ends) > Processing file ttf/DroidSans.ttf > Some font name strings are in Unicode, may not show properly > numglyphs = 901 > Found Unicode Encoding > Guessed italic angle: 0.000000 > FontName DroidSans > Finished - font files created > > both uni03BC and mu map to *m at /usr/bin/afmtodit line 6413. > both uni03BC and mu map to mc at /usr/bin/afmtodit line 6413. > both tcedilla and tcommaaccent map to u0074_0327 at /usr/bin/afmtodit > line 6521. both Tcommaaccent and Tcedilla map to u0054_0327 > at /usr/bin/afmtodit line 6521. both uni03A9 and Omega map to *W > at /usr/bin/afmtodit line 6413. both uni2002 and uni2000 map to u2002 > at /usr/bin/afmtodit line 6521. both Delta and uni0394 map to *D > at /usr/bin/afmtodit line 6413. both uni2003 and uni2001 map to u2003 > at /usr/bin/afmtodit line 6521. >