Skip Menu |
 

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

Report information
The Basics
Id: 51700
Status: resolved
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: FWIE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.73
Fixed in: (no value)



Subject: [Patch] POD nits
Download (untitled) / with headers
text/plain 170b
The attached patch (against 0.73) fixes some POD, which renders wrong, at least at search.cpan.org. Please note the add whitespace too: $self->{'DAT'} => $self->{' DAT'}
Subject: pod.patch
Download pod.patch
text/x-diff 1.5k
diff --git a/lib/PDF/API2/Basic/TTF/Glyf.pm b/lib/PDF/API2/Basic/TTF/Glyf.pm index ed916b5..552035f 100644 --- a/lib/PDF/API2/Basic/TTF/Glyf.pm +++ b/lib/PDF/API2/Basic/TTF/Glyf.pm @@ -33,7 +33,7 @@ PDF::API2::Basic::TTF::Glyf - The Glyf data table =head1 DESCRIPTION This is a stub table. The real data is held in the loca table. If you want to get a glyf -look it up in the loca table as C<$f->{'loca'}{'glyphs'}[$num]>. It won't be here! +look it up in the loca table as C<< $f->{'loca'}{'glyphs'}[$num] >>. It won't be here! The difference between reading this table as opposed to the loca table is that reading this table will cause updated glyphs to be written out rather than just diff --git a/lib/PDF/API2/Basic/TTF/Glyph.pm b/lib/PDF/API2/Basic/TTF/Glyph.pm index 14a6881..5df61d8 100644 --- a/lib/PDF/API2/Basic/TTF/Glyph.pm +++ b/lib/PDF/API2/Basic/TTF/Glyph.pm @@ -58,7 +58,7 @@ when the whole glyph is read (via C<read_dat>): =item instLen Number of bytes in the hinting instructions (Warning this variable is deprecated, -use C<length($g->{'hints'})> instead). +use C<< length($g->{'hints'}) >> instead). =item hints @@ -502,7 +502,7 @@ sub XML_element =head2 $g->update -Generates a C<$self->{'DAT'}> from the internal structures, if the data has +Generates a C<< $self->{' DAT'} >> from the internal structures, if the data has been read into structures in the first place. If you are building a glyph from scratch you will need to set the instance variable C<' read'> to 2 (or something > 1) for the update to work.
Download (untitled) / with headers
text/plain 270b
I've removed PDF::API2::Basic::TTF from the latest release and am using Font::TTF instead (it appears to have been copy-pasted into PDF::API2 in an earlier release). If the same issues are present in Font::TTF, I'd recommend creating a bug in that distribution instead.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.