i don't fully understand your answer. do you mean i should pack the
font into another file and then extract it from there? like for
example, encrypt the font, decrypt it and use it, and on application
exit encrypt it again? could you please provide some more detailed
information?
all i need is to use a font in my applikation (it doesn't have to be
necessarily stored in the resource file) but i don't want to install
the font on the users machine. i don't even want, that the user can
install the font himself.
kind regards,
matthias

Signature
> On Mar 26, 1:06 pm, "Matthias S."
> <matthias.st_SP_AM_TR_...@googlemail.com> wrote:
[quoted text clipped - 16 lines]
> create a temp file with the form and use it like that.
> Note that you would have to pack it as just another file though.
Peter Bromberg [C# MVP] - 26 Mar 2008 21:11 GMT
I think what Ignacio means is that you could include the font in your built
assembly as an embedded resource and pull it out at runtime with
GetManifestResourceStream. However, I am not sure if you can actually use a
TTF font without installing it first into the Fonts folder.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
> i don't fully understand your answer. do you mean i should pack the
> font into another file and then extract it from there? like for
[quoted text clipped - 31 lines]
> > create a temp file with the form and use it like that.
> > Note that you would have to pack it as just another file though.
Ignacio Machin ( .NET/ C# MVP ) - 26 Mar 2008 22:13 GMT
On Mar 26, 3:42 pm, "Matthias S."
<matthias.st_SP_AM_TR_...@googlemail.com> wrote:
> i don't fully understand your answer. do you mean i should pack the
> font into another file and then extract it from there? like for
> example, encrypt the font, decrypt it and use it, and on application
> exit encrypt it again? could you please provide some more detailed
> information?
No,
What I mean is that you can embedd ANY file of any kind as a resource
in your EXE (or DLL) and later extract it (take a look at this post of
mine from a time ago
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_f
rm/thread/1dd44602a1ca360c/5f6130995d18d4e5?lnk=gst&q=%22ignacio+machin%22+embed
ded#5f6130995d18d4e5
)
So after you extract the file you can try to install the font.