Subject: | CJKFonts' cmap files can't be loaded. |
Hi,
I found that PDF::API2::Resource::CIDFont::CJKFont can't load specified cmap file properly, for
example:
$pdf->cjkfont('simplified');
it will always tell you that "requested cmap 'simplified' not installed", related code in
CJKFont.pm:
---
sub _look_for_cmap ($) {
...
eval "require PDF::API2::Resource::CIDFont::CMap::$fname; ";
...
}
so if I specified 'simplified' for cjkfont(), then above "eval" equals:
---
eval "require PDF::API2::Resource::CIDFont::CMap::simplified; ";
But in PDF/API2/Resource/CIDFont/CMap/, there is no .pm file, they are all .cmap files, I
think this bug should be easily sovled by rename all *.cmap to *.pm in that directory.
Thanks!