PDF::API2 version 2.033
Font::TTF version 1.06
Perl version 5.20.2
Sample code:
#!/usr/bin/env perl
use PDF::API2;
$pdf = PDF::API2->new();
$pdf->page();
$pdf->ttfont("NotoSansJP-Medium.otf");
# downloaded from here:
# https://github.com/googlei18n/noto-cjk/blob/master/NotoSansJP-Medium.otf
dies with:
requested cmap '' not installed at /Users/Shared/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/PDF/API2/Resource/CIDFont/TrueType/FontFile.pm line 27.
About a third of the CJK fonts I have don't work with PDF::API2. I used Noto Sans JP in the above example because it's freely available, but it's not the only one, and at least one other PostScript-flavored OTF font that I own does work (DFKyoKaShoStd-W4.otf). Is there a workaround or a fix?
perlbug [...] jgreely.com (ssimms/pdfapi2#32)
PDF::API2 version 2.033 Font::TTF version 1.06 Perl version 5.20.2
Sample code:
dies with:
About a third of the CJK fonts I have don't work with PDF::API2. I used Noto Sans JP in the above example because it's freely available, but it's not the only one, and at least one other PostScript-flavored OTF font that I own does work (DFKyoKaShoStd-W4.otf). Is there a workaround or a fix?
-j