It could be a problem with the specific font, or a subtle bug in PDF::API2 triggered by that very font... But it's hard to tell without knowing more about which font it is (I presume it's not really named "myfont.otf").
What happens when you try a different OpenType font, for example the one I used in the snippet above (it ships with recent versions of Adobe Reader, so you might already have it, or at least can easily get it).
Also, which version of PDF::API2 are you using? And which PDF reader? (I'm asking because not all readers can handle embedded OpenType fonts)
|