On Monday 02 July 2001 12:40, Alexey Naidyonov wrote: > First of all, many thanks to mr. Moor for kde 2.2 packaging. It really > rocks :) I''ve got META key and distinct PGP indentities in kmail, and I'm > almost happy :) Moreover, it looks like KDE can really print now even with > non ISO-8859-1 locales. It embeds system Type1 or TrueType font in PS file. > Embedding works fine for TrueType font though font is embedded as Custom > Type3 font and looks somewhat ugly in PDF. But for Type1 it doesn't work. > PS interpreter got an exception trying to interpret resulting file. I've > found that problem is in font section -- there is "-" sign which shouldn't > be: > > [EMAIL PROTECTED]:~% diff -u print.ps print1.ps > --- print.ps Mon Jul 2 13:44:21 2001 > +++ print1.ps Mon Jul 2 14:04:38 2001 > @@ -1967,7 +1967,7 @@ > 0000000000000000000000000000000000000000000000000000000000000000 > 0000000000000000000000000000000000000000000000000000000000000000 > cleartomark{restore}if > -€/FE27[/.notdef/empty/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/N >D/ND > +/FE27[/.notdef/empty/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND >/ND > /ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/ND/space/exclam/quotedbl/numbersign/dollar > /percent/ampersand/quotesingle/parenleft/parenright/asterisk/plus/comma/hyp >he n > > /period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon/semic >ol on > > File print1.ps (edited by hand) is printable (or compilable to PDF), and > file print.ps is not. > If someone has an expirience with getting libkdeprint embedding Type1 font > in proper way I would like to share it :) > > -- > Alexey Naidyonov >
The proble is located in the QT library. The file src/kernel/qpsprinter.cpp contains a bad ascii definition Change the line 819 from { 0x002D, "hyphen" }, // HYPHEN-MINUS to { 0x002D, "minus" }, // HYPHEN-MINUS This fixed this bug at least for me. Hartmut Manz -- ------------------------------------------------------------------------------ Hartmut Manz WWW: http://www.intes.de/ INTES GmbH Phone: +49-711-78499-29 Schulze-Delitzsch-Str. 16 Fax: +49-711-78499-10 D-70565 Stuttgart E-mail: [EMAIL PROTECTED] In Christus liegen verborgen alle Schaetze der Weisheit und der Erkenntnis. --------------------------------------------------------- Kolosser 2,3 -------