Thread: [MiKTeX] custom enc files for ttf2tfm
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: Joel <jc...@wm...> - 2005-01-28 15:12:58
|
First let me apologize if this is a duplicate posting. I sent this out on Thursday morning and it hasn't shown up on the list yet. I'm running into problems with some of my TTF fonts. In particular I'm trying to use dijkstra.ttf. If I use the line ttf2tfm dijkstra.ttf -T T1-WGL4.enc -v dijkstra.vpl rdijkstra.tfm I get a vpl file that looks ok. However, when I go to use the font my 'fi' and 'fl' ligatures (among others) don't show up. When I get a font table with "tex testfont" the chars are in there but not at the expected location. If I install the font and look at them with the windows character map tool I see the at 'fi' ligature at decimal location 198 and 'fl' is at 199. They show up at this location when I view the pk files with yap (or postscript) I've been through the docs (ttf2tfm man page) but am obviously missing something. I'd like to know what my enc file should look like to map these character correctly? I suppose I could edit the vpl file and map them myself but I'd like to have the process be automated. I know this is a one time operation but there may be other fonts that have the same problem. Do I need to create an input table or an output table? Perhaps I should just use /.cNNN or /.gNNN and use the numbers I get when I run ttf2tfm. Maybe the font just doesn't want to cooperate with these tools. Thanks for your help. Joel |
From: Joel C. <jo...@wm...> - 2005-01-27 14:42:58
|
Hi, I'm running into problems with some of my TTF fonts. In particular I'm trying to use dijkstra.ttf. If I use the line ttf2tfm dijkstra.ttf -T T1-WGL4.enc -v dijkstra.vpl rdijkstra.tfm I get a vpl file that looks ok. However, when I go to use the font my 'fi' and 'fl' ligatures don't show up. When I get a font table with "tex testfont" the chars are in there but not at the expected location. If I install the font and look at them with the window character map tool I see the at 'fi' ligature at decimal location 198 and 'fl' is at 199. I've been through the docs (ttf2tfm man page) but am obviously missing something. I'd like to know what my enc file should look like to map these character correctly? I suppose I could edit the vpl file and map them myself but I'd like to have the process be automated. I know this is a one time operation but there may be other fonts that have the same problem. Thanks for your help. -- Joel Coltoff It is appallingly obvious that our technology exceeds our humanity. -- Albert E. Einstein |
From: Hans F. N. <Han...@hi...> - 2005-01-31 07:30:46
|
On Thu, Jan 27, 2005 at 09:42:54AM -0500, Joel Coltoff wrote: > Hi, > > I'm running into problems with some of my TTF fonts. In > particular I'm trying to use dijkstra.ttf. If I use the line > > ttf2tfm dijkstra.ttf -T T1-WGL4.enc -v dijkstra.vpl rdijkstra.tfm > > I get a vpl file that looks ok. However, when I go to use the font > my 'fi' and 'fl' ligatures don't show up. When I get a font table > with "tex testfont" the chars are in there but not at the expected > location. If I install the font and look at them with the window > character map tool I see the at 'fi' ligature at decimal location 198 > and 'fl' is at 199. [cut] You are aware that there is a TTF installer for MiKTeX: <http://sourceforge.net/project/showfiles.php?group_id=10783&package_id=10526> However, the current version 0.5 has a (tiny) bug: <http://groups.google.com/groups?threadm=slrncv9fvm.s6k.hansfn%40gmail.com> Don't know if this helps - just wanted to mention it. Hans |