From: Peter D. <Peter_Dyballa@Web.DE> - 2005-07-17 09:57:09
Attachments:
ttf2pst1.pe
|
Hello! When executing the attached script on Code2000 TrueType font this=20 happens: Glyph 63887 is called ".notdef", a singularly inept choice of = name=20 (only glyph 0 may be called .notdef) FontForge will rename it. Warning: Encoding 0 (0) is mapped to at least two locations = (r@0x0c=20 and r@0x09) Only one will be used here. PostScript font file =BBfc0r8%s.pfb=AB generated! Bus error The files created are: -rw-r--r-- 1 pete pete 0 17 Jul 11:38 fc0r8r.ps -rw-r--r-- 1 pete pete 17688 17 Jul 11:38 fc0r8r.afm -rw-r--r-- 1 pete pete 48491 17 Jul 11:38 fc0r8r.pfb The crash dump contains: Date/Time: 2005-07-17 11:39:26 +0200 OS Version: 10.3.9 (Build 7W98) Report Version: 2 Command: fontforge Path: /usr/local/bin/fontforge Version: ??? (???) PID: 23102 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000054 Thread 0 Crashed: 0 fontforge 0x001a7084 SplineCharFindBounds + 0x290 (crt.c:300) 1 fontforge 0x00005214 FindBlues + 0x2a0 (crt.c:300) 2 fontforge 0x0009f290 dumpprivatestuff + 0x378 (crt.c:300) 3 fontforge 0x000a1da4 dumpencodedstuff + 0x94 (crt.c:300) 4 fontforge 0x000a2fb0 dumpfontdict + 0x1ac (crt.c:300) 5 fontforge 0x000a4ccc _WritePSFont + 0x18c (crt.c:300) 6 fontforge 0x001fdf48 PIDownloadFont + 0x27c (crt.c:300) 7 fontforge 0x001ff310 PIFontDisplay + 0x2d8 (crt.c:300) 8 fontforge 0x002061b8 DoPrinting + 0x40 (crt.c:300) 9 fontforge 0x00208b54 ScriptPrint + 0x1dc (crt.c:300) 10 fontforge 0x0023d258 bPrintFont + 0x3d8 (crt.c:300) 11 fontforge 0x0024ea2c docall + 0x530 (crt.c:300) 12 fontforge 0x0024ec5c handlename + 0x70 (crt.c:300) 13 fontforge 0x0024ff58 term + 0x100 (crt.c:300) 14 fontforge 0x00250904 mul + 0x30 (crt.c:300) 15 fontforge 0x00250c3c add + 0x30 (crt.c:300) 16 fontforge 0x00250f80 comp + 0x30 (crt.c:300) 17 fontforge 0x00251364 _and + 0x40 (crt.c:300) 18 fontforge 0x0025155c _or + 0x40 (crt.c:300) 19 fontforge 0x00251784 assign + 0x30 (crt.c:300) 20 fontforge 0x00251e64 expr + 0x34 (crt.c:300) 21 fontforge 0x002529b8 statement + 0x1a8 (crt.c:300) 22 fontforge 0x00252498 doif + 0x110 (crt.c:300) 23 fontforge 0x00252884 statement + 0x74 (crt.c:300) 24 fontforge 0x002530c8 ProcessScript + 0x4d0 (crt.c:300) 25 fontforge 0x0025323c _CheckIsScript + 0x10c (crt.c:300) 26 fontforge 0x002533f0 CheckIsScript + 0x28 (crt.c:300) 27 fontforge 0x001cfdf0 main + 0x20c (crt.c:300) 28 fontforge 0x000046c8 _start + 0x188 (crt.c:267) 29 dyld 0x8fe1a278 _dyld_start + 0x64 Binary created Fink, crash happens repeatedly -- I am probably not=20 handling the fonts properly! |
From: George W. <gw...@si...> - 2005-07-18 22:52:32
|
On Sun, 2005-07-17 at 02:56, Peter Dyballa wrote: > When executing the attached script on Code2000 TrueType font this > happens: > PostScript font file »fc0r8%s.pfb« generated! > Bus error I cannot duplicate this. I have tested three versions (including bare 24-June) on two different machines (mac 10.3.2 & linux). None crashes. Are you sure you are using Code2000? It looks as though you are using something called "fc0r*". Also I do not have the same version of 8r.sfd because I do not get the warning: > Warning: Encoding 0 (0) is mapped to at least two locations (r@0x0c and r@0x09) |
From: Peter D. <Peter_Dyballa@Web.DE> - 2005-07-18 23:42:50
|
Am 19.07.2005 um 00:53 schrieb George Williams: > On Sun, 2005-07-17 at 02:56, Peter Dyballa wrote: >> When executing the attached script on Code2000 TrueType font this >> happens: >> PostScript font file =BBfc0r8%s.pfb=AB generated! >> Bus error > I cannot duplicate this. I have tested three versions (including bare > 24-June) on two different machines (mac 10.3.2 & linux). None crashes. > > Are you sure you are using Code2000? It looks as though you are using > something called "fc0r*". Yes, it is. Look at this directory listing: lrwxr-xr-x 1 pete pete 12 29 Jun 21:32 8p.sfd -> ../../8p.sfd lrwxr-xr-x 1 pete pete 12 29 Jun 21:32 8r.sfd -> ../../8r.sfd lrwxr-xr-x 1 pete pete 27 2 Jul 11:42 fc0r8a.ttf ->=20 /Library/Fonts/CODE2000.ttf > > Also I do not have the same version of 8r.sfd because I do not get the > warning: >> Warning: Encoding 0 (0) is mapped to at least two locations (r@0x0c > and r@0x09) > Here are my new sfd files (I added 0x0000 at the first position): |
From: George W. <gw...@si...> - 2005-07-19 04:39:55
|
On Mon, 2005-07-18 at 16:42, Peter Dyballa wrote: > I changed some statements in the script file, closing and opening font > files, so I could create the PFB and AFM files. The AFM file for the 8p > encoded font misses many code points. This would be OK because they're > not contained in the TTF file, but what's incorrect is that FontForge > does not write .notdef in that case but starts to increment the C > number when it finds again a glyph in the TTF file. So the AFM file > does not follow the given encoding -- and the PS font file too! This > looks to me like a bug ... Um. The AFM file does not have an entry for .notdef because AFM files don't. The pfb encoding vector first sets everything to .notdef and then sets the non-notdef entries. As far as I can tell the encoding in the PFB file is correct -- It has ASCII where it should and TeX stuff elsewhere. As far as I can tell the encoding in the AFM file is also correct. C 32 ; WX 390 ; WY 1000 ; N uni0020 ; B 0 0 0 0 ; says that unicode 0020 (space) should be encoded at slot 32. |
From: Jacob W. <lit...@ho...> - 2005-07-19 22:41:39
|
Hi George and everyone else! I'm using fontforge on a machine with Win XP Home. However, I only need the command line (to run scripts) - do I still need cygwin? /Jacob |
From: George W. <gw...@si...> - 2005-07-20 02:22:49
|
On Tue, 2005-07-19 at 15:40, Jacob Waller wrote: > Hi George and everyone else! > I'm using fontforge on a machine with Win XP Home. > However, I only need the command line (to run scripts) - do I still need > cygwin? Yes. |
From: Jacob W. <lit...@ho...> - 2005-07-20 10:33:16
|
>From: George Williams <gw...@si...> >To: Jacob Waller <lit...@ho...> >CC: fon...@li... >Subject: Re: [Fontforge-users] Fontforge from command line >Date: 19 Jul 2005 19:23:40 -0700 > >On Tue, 2005-07-19 at 15:40, Jacob Waller wrote: > > Hi George and everyone else! > > I'm using fontforge on a machine with Win XP Home. > > However, I only need the command line (to run scripts) - do I still need > > cygwin? >Yes. > Hehe... that was a really short answer, though still long enough :) The reason I asked is that I want to run a fontforge script from PHP, and I've no idea how to do it through Cygwin. Any suggestions? /Jacob |
From: George W. <gw...@si...> - 2005-07-20 21:30:35
|
> > > Hi George and everyone else! > > > I'm using fontforge on a machine with Win XP Home. > > > However, I only need the command line (to run scripts) - do I still need > > > cygwin? > >Yes. > Hehe... that was a really short answer, though still long enough :) The > reason I asked is that I want to run a fontforge script from PHP, and I've > no idea how to do it through Cygwin. Any suggestions? And I was answering the wrong question. You do need cygwin, in the sense that you need to have the cygwin.dll installed on your system. I don't know what PHP is, and don't know enough about windows to be able to answer this question. |
From: Jerry S. <je...@ho...> - 2005-07-21 00:25:02
|
On Jul 20, 2005, at 2:31 PM, George Williams wrote: > I don't know what PHP is, and don't know enough about windows to be > able > to answer this question. Most likely, PHP is a scripting language especially useful for embedding dynamic content into web pages. Like most scripting languages with roots in Unix, it includes a set of functions for running a command line tool. Something like exec() or system() will probably do what the OP wants. http://us3.php.net/manual/en/function.exec.php Generally, when trying to use a scripting language to run another command line utility, the first step is to completely ignore the scripting language, and craft the correct means of using the utility on the command line. Once the utility works from the command line, it should work the same when run through the scripting language. In the case of PHP, the scripting language is often run using a web server; this adds the complication that the web server usually has its own username/group, so the files that the utility works with need to be readable by that username or that group; and any output needs to go into a directory that is writable by that username or that group. Note that I am completely unfamiliar with Windows and how PHP runs items on the command line when used on Windows. Jerry http://www.ItIsntMurder.com/ "Give a man a fish, and you've fed him for a day. Teach him to fish, and you've depleted the lake."--It Isn't Murder If They're Yankees |
From: Peter B. <ps...@vi...> - 2005-07-21 01:22:02
|
Jerry Stratton wrote: > On Jul 20, 2005, at 2:31 PM, George Williams wrote: > >> I don't know what PHP is, and don't know enough about windows to be >> able >> to answer this question. > > > Most likely, PHP is a scripting language especially useful for > embedding dynamic content into web pages. Like most scripting > languages with roots in Unix, it includes a set of functions for > running a command line tool. > > Something like exec() or system() will probably do what the OP wants. > > http://us3.php.net/manual/en/function.exec.php > > Generally, when trying to use a scripting language to run another > command line utility, the first step is to completely ignore the > scripting language, and craft the correct means of using the utility > on the command line. Once the utility works from the command line, it > should work the same when run through the scripting language. > > In the case of PHP, the scripting language is often run using a web > server; this adds the complication that the web server usually has > its own username/group, so the files that the utility works with need > to be readable by that username or that group; and any output needs > to go into a directory that is writable by that username or that group. > > Note that I am completely unfamiliar with Windows and how PHP runs > items on the command line when used on Windows. > > Jerry > http://www.ItIsntMurder.com/ > "Give a man a fish, and you've fed him for a day. Teach him to fish, and > you've depleted the lake."--It Isn't Murder If They're Yankees Have you seen this, on running Apache under Cygwin? http://www.phpfreaks.com/apache_manual/page/cygwin.html |