[fpc-pascal] How do I test the testfppdf on Windows?
Jesus Reyes A.
jesusrmx at gmail.com
Wed Mar 9 19:08:49 CET 2016
On Sun, 06 Mar 2016 03:15:06 -0600, Michael Van Canneyt
<michael at freepascal.org> wrote:
>
>
> On Sat, 5 Mar 2016, Jesus Reyes A. wrote:
>
>> On Sat, 05 Mar 2016 14:03:49 -0600, Michael Van Canneyt
>> <michael at freepascal.org> wrote:
>>
>>> This is what I get with the normal test font:
>>> http://www.freepascal.org/~michael/test.pdf
>>> Can you please try with the original font too, please ?
>>> (freesans is freely available)
>>> If that works, it would mean there is something wrong with the Arial
>>> font handling.
>>> Michael.
>>
>> your file looks like the one I produced here when using "Visor de
>> documentos" which happen to be evince, this is what it looks
>> http://ctrlv.in/722669 the only change I did was adding JRAXX at the
>> end of every P.WriteText'd string where XX is the index of each
>> instance. Seems only latin text is working.
>
> Strange, because if I recall correctly it was tested with Cyrillic, and
> that worked ?
>
>> Later I will try with other readers.
>
> Please do, I'd welcome any hints as to what could be wrong !
>
> (evince is one of the readers that was used to test, BTW)
>
> Michael.
The problem of evince not showing some texts it's because the compressed
font file stream size is written with an incorrect value. There is an
option to enable font file compression (poCompressFonts) but in the code,
compression is always enabled, the compressed stream size is returned in
the function that writes down the compressed stream, too late because the
/length item was already written using the uncompressed size. The attached
patch addresses both problems and makes sure length1 item is not written
down if not needed.
This however doesn't fix the Cyrillic and other texts :(
Jesus Reyes A.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fppdf-embfontsfix.diff
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160309/4aa96126/attachment.ksh>
More information about the fpc-pascal
mailing list