Hi Frank,
> Hi Igor,
>
> [message 1] After some searching I manged to get a working compy of
ttf2fft.exe and to
> create makefdb.exe. Both seams to be working in the way that Arial.ttf
> becomes Arial.fft and that becomes Areal.fdb (163,658 bytes).
>
> When I use this font in my php/ming applications, PHP craches. I'll try to
> soe some debugging.
>
> [message 2] The Arial.ttf I have on my system does not include any unicode
chars, so I
> found Arialuni.ttf, converted this file with ttf2fft.exe, then converted
> with makefdb. This resulted in a file called 'Arial Unicode MS.fdb'. This
> files does not cause a crash in PHP or ming. You can download a copy of
> the fdb file here: http://kromann.info/ming_fdb.zip
>
> - Frank
I have tried you Arial Unicode MS.fdb. It doesn't crash PHP but it not seems
like real Unicode font. Its size is 21,222 bytes - typical size for
non-Unicode .fdb
The Arial.fdb that I had created myself has 163,658 bytes (exactly as in
your test that crushes PHP).
When I tried next line of code with your font:
$t->addUTF8String("Envoye");
I have got wrong character instead "e" in .swf
I'm very sorry, when I reviwed my e-mail archive, I have found that I forgot
to attach my fonts into my previous message (in the middle of November).
You can get it from http://www.tachons.com/arial.zip
Arial.ttf (from standard Windows 2000 installation), and also arial.fft and
Arial.fdb produced by fft2ttf.exe/makefdb.exe from
http://blue.ribbon.to/~harpy/ming/jaming/index_en.html included to this zip.
Tanks a lot for your help
Igor
----------------------------------------------------------------------------
---------------------------------------------
> > Hi Frank,
> >
> > > [Frank M. Kromann wrote:]
> > > I have never used wide fonts with ming so I'm not sure here. If you
> send
> > > me a font I can test it for you.
> >
> > Arial.ttf (from standard Windows 2000 installation), and also
> > arial.fft and Arial.fdb produced by fft2ttf.exe/makefdb.exe from
> > http://blue.ribbon.to/~harpy/ming/jaming/index_en.html
> > attached in zip.
> >
> > Tanks for your help
> > Igor
> >
> > > Hello again
> > >
> > > [Frank M. Kromann wrote:]
> > >
> > > This is most likely a bug in ming-0.2a, used to generate the standard
> > > distribution of php.
> > >
> > > If you are using PHP 4.3.9 you can download a new php_ming.dll file
> > from
> > > my site (http://kromann.info/php4.php).
> > >
> > > - Frank
> > >
> > > -------------------------
> > > I have downloader latest versions of php.exe, php4ts.dll and
> > php_ming.dll
> > > from Frank's site, but problem persists.
> > >
> > > I have used fft2ttf.exe and makefdb.exe from
> > > http://blue.ribbon.to/~harpy/ming/jaming/index_en.html [1] (it's
> listed
> > at
> > > http://www.opaque.net/wiki/index.php?MingSites ).
> > > Also I have tried makefdb.exe from
> > > http://www.opaque.net/ming/ming-winutils.zip [2] , but this version
> of
> > > executable tells me that "wide code fonts not supported". My problem
> is
> > that
> > > I realy need wide fonts.
> > > Also, when I dump arial.fdb file created by [1] with the listswf.exe
> > from
> > > [2] - output for all 1419 glyphs seems OK (of course, at first look).
> > >
> > > So, a question - does Ming supports wide code fonts?
> > > If yes, what can be wrong?do you some place where I can see any
> working
> > > example and download some working wide coded .fdb font for testing?
> > >
> > > Thanks in advance
> > > Igor
> > >
> > >
> > > > Hello.
> > > >
> > > > Can anybody help to solve the problem with using .fdb fonts?
> > > >
> > > > I have stand-alone PHP4 + php_ming.dll + php4ts.dll
> > > > Then I have created webdings.fdb file using ttf2fft and makefdb
> > > utilities
> > > > and run next script:
> > > >
> > > > <?
> > > > $movie=new SWFMovie();
> > > >
> > > > $f = new SWFFont("webdings.fdb");
> > > > $t = new SWFText();
> > > > $t->setFont($f);
> > > > $t->setColor(0xff, 0, 0);
> > > > $t->setHeight(20);
> > > > $t->addString("Hello");
> > > >
> > > > $i = $movie->add($t);
> > > > $i->move(20, 100);
> > > >
> > > > $movie->save("test.swf");
> > > > ?>
> > > >
> > > > All OK, movie was created and some text appers.
> > > >
> > > > Then I have created arial.fdb with the Unicode characters (ttf2fft
> > and
> > > > makefdb output below in thios message) and run same script, but
> with
> > > > $f = new SWFFont("arial.fdb");
> > > >
> > > > PHP thinks some time and then prints:
> > > >
> > > > Fatal error: save(): failed assertion in C:\ming\test.php on line
> 14
> > > >
> > > >
> > > > What's wrong?
> > > > Does Ming supports fonts with Unicode characters (note, that
> Webdings
> > > has
> > > > Symbol encoding and contains 223 chars, but Arial - Unicode and
> 1419
> > > chars)?
> > > > Does it a versioning problem?
> > > > Something else?
> > > >
> > > > Thanks in advance
> > > > Igor
> > > >
> > > > ----------------webdings.fdb---------------------
> > > >
> > > > C:\ming>ttf2fft -l webdings.ttf
> > > > There is 1 face in this file.
> > > >
> > > > ----- Face number: 0 -----
> > > >
> > > > family: Webdings
> > > > style: Regular
> > > > charmaps:
> > > > 0: platform: Macintosh, encoding: Roman
> > > > 1: platform: Microsoft, encoding: Symbol
> > > >
> > > > C:\ming>ttf2fft -e 1 webdings.ttf
> > > > Converting font webdings.ttf
> > > > family: Webdings
> > > > style: Regular
> > > > using charmap: 1: platform: Microsoft, encoding: Symbol
> > > >
> > > > retrieving chars from current charmap ... found 223 chars
> > > > using 1-byte char codes
> > > > retrieving glyphs outlines ... done.
> > > > generating glyph outlines ... done.
> > > > using short glyph offsets
> > > > generating layout
> > > > writing advance table
> > > > writing bbox table
> > > > no kerning table found!
> > > >
> > > > C:\ming>makefdb webdings.fft
> > > > Found DefineFont2 block at offset 23
> > > > Block length: 56740
> > > > Writing Webdings.fdb, 56742 bytes
> > > >
> > > > ------------Arial.fdb ------------------------------
> > > >
> > > > C:\ming>ttf2fft -l arial.ttf
> > > > There is 1 face in this file.
> > > >
> > > > ----- Face number: 0 -----
> > > >
> > > > family: Arial
> > > > style: Regular
> > > > charmaps:
> > > > 0: platform: Apple Unicode, encoding: Unicode 2.0
> > > > 1: platform: Macintosh, encoding: Roman
> > > > 2: platform: Microsoft, encoding: Unicode
> > > >
> > > > C:\ming>ttf2fft -e 2 arial.ttf
> > > > Converting font arial.ttf
> > > > family: Arial
> > > > style: Regular
> > > > using charmap: 2: platform: Microsoft, encoding: Unicode
> > > >
> > > > retrieving chars from current charmap ... found 1419 chars
> > > > using 2-byte char codes
> > > > retrieving glyphs outlines ... done.
> > > > generating glyph outlines ... done.
> > > > using wide glyph offsets
> > > > generating layout
> > > > writing advance table
> > > > writing bbox table
> > > > writing kerning table
> > > >
> > > > C:\ming>makefdb arial.fft
> > > > Found DefineFont2 block at offset 23
> > > > Block length: 163656
> > > > Writing Arial.fdb, 163658 bytes
> > >
> > >
|