TienLung has asked for the wisdom of the Perl Monks concerning the following question:
This correctly embeds the Exmouth ttf font, and correctly uses it. The resulting PDF uses the font (i.e. the letters look ok) however the character spacing is uniform..i.e. no kerning. I have tried various methods, including adding a -dokern option to the font. .. To no avail. Has anyone any experience in embedding ttf fonts? or come up against this issue? Many thanks in advancemy $headline_text = $page->text; my $tmpFont=$pdf->ttfont("../pdf/API2/fonts/Exmouth.ttf"); $headline_text->font( $tmpFont, 12 / pt ); $headline_text->fillcolor('black'); $headline_text->translate( 95 / mm, 131 / mm ); $headline_text->text_center('Testing Testing');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PDF API2 Kerning
by rpnoble419 (Pilgrim) on Dec 14, 2009 at 21:08 UTC | |
by Your Mother (Archbishop) on Dec 14, 2009 at 23:18 UTC | |
by TienLung (Acolyte) on Dec 15, 2009 at 09:15 UTC | |
|
Re: PDF API2 Kerning
by Anonymous Monk on Dec 14, 2009 at 16:55 UTC | |
by TienLung (Acolyte) on Dec 14, 2009 at 17:37 UTC | |
by Khen1950fx (Canon) on Dec 14, 2009 at 21:47 UTC | |
|
Re: PDF API2 Kerning
by Neighbour (Friar) on May 20, 2010 at 06:48 UTC |