I'm not a lawyer, but...if you install your web app on a web server, and then
copy the font files from the windows\fonts directory on that machine to the
directory of your app, that's not redistributing the font is it? As long as
you are allowed to embed the font I would think you should be fine.
Why is loading the font using the filename not convenient? iText specifically
provides a mechanism for doing just that (BaseFont.CreateFont, you just pass
the ttf filename instead of a font name), and getting the application path is
trivial in a .NET web app
This sounds to me like a much better option than opening up security on a
system directory you don't want to and hacking registry permissions
Now obviously if you're using a font that is only on your machine and not on
the web server and you don't think you are allowed to redistribute that font,
then your only choice is to use a different font
Erik Pfingsten
From: Emad Steitieh [mailto:[email protected]]
Sent: Monday, April 20, 2009 10:37 AM
To: Post all your questions about iText here; Fabrizio Accatino
Subject: Re: [iText-questions] iText in an ASP.net Web environment
Yes that would be a solution, but I am afraid some of the fonts are not
redistributable.
Another problem I faced was giving permission to registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Fonts because I am using this
key to get the file name from the description of the font
Really loading the font using its original filename is not convenient
Regards,
Emad
--- On Mon, 4/20/09, Fabrizio Accatino <[email protected]> wrote:
From: Fabrizio Accatino <[email protected]>
Subject: Re: [iText-questions] iText in an ASP.net Web environment
To: [email protected], "Post all your questions about iText here"
<[email protected]>
Date: Monday, April 20, 2009, 5:28 PM
Emad,
AFAIK if you don't want to give access to windows fonts folder, the only
solution is to make a new directory and copy there the fonts you need (ttf
files). Than allow Aspnet user to access to the new directory (read-only should
be sufficient).
fabrizio
On Mon, Apr 20, 2009 at 4:13 PM, Emad Steitieh
<[email protected]<mailto:[email protected]>> wrote:
Giving access to a Windows fonts folder may cause security issue and this is
what I am trying to avoid. Is there any other solution?
This message, including any attachments, may contain information
which is confidential and privileged. Unless you are the addressee (or
authorized to receive for the addressee), you may not read, use, copy
or disclose to anyone the message, its attachments, or any information
contained therein. If you have received the message in error, please
advise the sender by reply e-mail and delete the message and any
attachments.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php