The fonts are found with:

   Microsoft.Win32.RegistryKey r =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("Mic
rosoft").OpenSubKey("Windows").OpenSubKey("CurrentVersion");
   String fontDirectory = (String)(r.GetValue("CommonFilesDir")) +
java.io.File.separator + "Ujihara" + java.io.File.separator + "iText";// +
java.io.File.separator + "fonts";
   String resourceFileName = fontDirectory + java.io.File.separator + key;
   is = new java.io.FileInputStream(resourceFileName);

It must point to the right place.

Best Regards,
Paulo Soares

----- Original Message ----- 
From: "Thang Pham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 16, 2004 19:27
Subject: [iText-questions] iTextDotNet project


> Hi,
> I'm having some problem running the example of the VB.NET version.  I was
wondering if someone could help me.  I'm getting an exception error message
that says:
>
> "Helvetica not found as resource. (The *.afm files must exist as resources
in the
>  package com.lowagie.text.pdf.fonts)"
>
> I went to this folder to make sure that these font files exist and it deos
so I don't understand why this is happening.  In the end the "Chap0101.pdf"
files cannot be open.
>
> I would appreciate any help.
> Thang Pham
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to