From: Donal K. F. <don...@ma...> - 2008-12-14 09:05:16
|
Jan Nijtmans wrote: > The .c postscript command has an option -fontmap. According to > the manual (see below), Tk's guessing only works for well-known > fonts. Currently (at least since Tk 8.1), Tk capitalizes the first > character and changes all others to lowercase in this case. Your > problem might be a good excuse to change that behavior. Maybe > others can provide more ideas? Anyone else has an idea what's > the reason to change all other characters to lowercase? It's > easy to change that in the core, but I don't know what other > effects that would have....... Postscript font names have to be PS symbols, so no spaces (and a lot of other restrictions too). The font guesser title-cases each word — you were probably testing with single-word font names — in the font name and concatenates them: "Foo Bar BooBoo tWiNkIe" -> "FooBarBoobooTwinkie" That's correct more often than not, but is imperfect. Donal. |