[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

pdf writer font not found

dkmd_nielsen

2/3/2007 4:36:00 AM

I cannot figure out how to get a font loaded. I have in c:\windows/
fonts a font file named w128m.ttf. It displays as "WASP 128
M(TrueType)". I haven't been able to code the select_font method to
load the font. PDF::Writer::FONT_PATH displays as c:\windows/fonts.
Attempted coding statements have been:

pdf.select_font("w128m.ttf")
pdf.select_font("WASP 128 M")
pdf.select_font("WASP 128 M(TrueType)")

Your assistance is appreciated.
dvn

1 Answer

Austin Ziegler

2/3/2007 5:56:00 AM

0

On 2/2/07, donn@cmscms.com <donn@cmscms.com> wrote:
> I cannot figure out how to get a font loaded. I have in c:\windows/
> fonts a font file named w128m.ttf. It displays as "WASP 128
> M(TrueType)". I haven't been able to code the select_font method to
> load the font. PDF::Writer::FONT_PATH displays as c:\windows/fonts.
> Attempted coding statements have been:
>
> pdf.select_font("w128m.ttf")
> pdf.select_font("WASP 128 M")
> pdf.select_font("WASP 128 M(TrueType)")

There are issues with TrueType fonts at this point. Even if those
issues did not exist, PDF::Writer cannot yet obtain the font metrics
from the font file itself and must have an Adobe Font Metrics file
generated for it (usually associated with Type1 fonts).

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca