On Mon, 2015-03-30 at 16:37 +0200, Gunnar Polte wrote: > Hi Ashley, > > thanks for your anser. > > I have checked with TTX the XML dumps. > Both files (TTF and Opentype) contains a cmap and the special characters: > <map code="0xf6" name="odieresis"/><!-- LATIN SMALL LETTER O WITH DIAERESIS —> > > Do you mean that with "having ttf outlines embedded in the font“? > > In the freetype documentation it is said that it may be should work with Pango. > Do you know anythink about? > > At the moment it looks for me like special charakters, like ö, can not be displayed with opentype fonts. > Do you have different experiences? > > I guess I need to switch back to TTF fonts. > > > > > Am 27.03.2015 um 13:00 schrieb Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx>: > > > > > > > > On 26 March 2015 19:52:36 GMT+00:00, Gunnar Polte <g.polte@xxxxxx> wrote: > >> Hello, > >> > >> is it possible to use the special characters like ö, ü, ö, ß from > >> opentype (otf) fonts in PHP? > >> > >> I tried to that and it was not possible. I only get a square output. > >> I used this: > >> ImageTTFText ($image, 30, 0, 0, 40, > >> $font,"tmp/AnieneNuovaEF-Regular.otf",$text); > >> With TTF fonts it was possible. > >> > >> Best > >> Gunnar > > > > I think it is, but depends on those characters having ttf outlines embedded in the font. If it doesn't, the program fontforge might be of some help to generate them? > > -- > > Sent from my Android device with K-9 Mail. Please excuse my brevity. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > Just copying the list back in. I've done some tests with a few different .otf fonts I had lying around on my system. The exact glyphs did exist in there, and I confirmed they were the same ones I was trying (text is a bit of an issue when there are so many characters that look the same but aren't!) It does seem that there's a bug with .otf fonts and GD when using characters outside of the Basic Latin Unicode block. For the record of testing, I was using the bundled GD (2.1.0 compatible) with freetype 2.4.10, on PHP 5.4.23. That might help diagnose where the issue is for you or others? Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php