Skip Menu |

This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id: 42524
Status: resolved
Worked: 15 min
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: marcus.lehmann [...] unitedprint.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.72.003
Fixed in: (no value)



Hello, i just updated from to and got a strange issue on the PDFs now. The spaces between the letters are a lot wider than before. First comes a letter, then a huge space which is around 3 letters wide and then the next letter. Has it something to do with our font? What have you changed on the update? Can you fix it or can we do something with our fonts? Thanks for your help.
Subject: strange space size after update on 0.72.003
I'm seeing the same or a similar problem. TTF Fonts (tried 3 different fonts) are rendered in fixed width with lots of space between characters. The core fonts are fine. (I don't have any other type of font to test with.)
I think I've found a bug in the wxByCId subroutine of Resource/CIDFont/TrueType.pm. In this piece of code: sub wxByCId { ... my $tmp = $self->fontobj->{'hmtx'}->read->{'advance'}[$g]; ... if(defined $t) { $w = int($t*1000/$self->data->{upem}); } ... The bug: $tmp is set, but later $t is used. The fix: change $t to $tmp. Regards /Claes
On Thu Feb 05 09:46:19 2009, heweh wrote: Show quoted text
> The bug: $tmp is set, but later $t is used. > The fix: change $t to $tmp.
This fixed my problem tonight! Thank you! Definitely a bug that needs patching. j
0.73