468,170 Members | 1,967 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,170 developers. It's quick & easy.

enumerating and using fonts installed by AddFontResourceEx

1. I've installed a bunch of fonts in main application, which is in native
C++ code using AddFontResourceEx
2. A C# application is launched from this main application, but failed to
enumerate those installed fonts.

My issue is that I don't want those fonts to be used outside of the main
application so that I've set the font characteristics as FR_PRIVATE. However,
I want the C# application be able to use those fonts. Although the C# app is
from Main application, probably it is in another process so that it is not
able to enumerate the fonts.

My question is may I view and use those fonts in C# application? And how?

Thanks in advance,
Aug 15 '06 #1
2 4416
Gary,

You can't do this. The documentation specifically states that fonts
added using the FR_PRIVATE flag are only accessible by the process that made
the call.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Gary" <Ga**@discussions.microsoft.comwrote in message
news:4A**********************************@microsof t.com...
1. I've installed a bunch of fonts in main application, which is in native
C++ code using AddFontResourceEx
2. A C# application is launched from this main application, but failed to
enumerate those installed fonts.

My issue is that I don't want those fonts to be used outside of the main
application so that I've set the font characteristics as FR_PRIVATE.
However,
I want the C# application be able to use those fonts. Although the C# app
is
from Main application, probably it is in another process so that it is not
able to enumerate the fonts.

My question is may I view and use those fonts in C# application? And how?

Thanks in advance,

Aug 15 '06 #2
Yes. I think it is impossible for one process to get private fonts from
another process. However, this C# app is actually in side the Main process.
It is an addin to that application.

Is there a way to check the private fonts?

"Nicholas Paldino [.NET/C# MVP]" wrote:
Gary,

You can't do this. The documentation specifically states that fonts
added using the FR_PRIVATE flag are only accessible by the process that made
the call.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Gary" <Ga**@discussions.microsoft.comwrote in message
news:4A**********************************@microsof t.com...
1. I've installed a bunch of fonts in main application, which is in native
C++ code using AddFontResourceEx
2. A C# application is launched from this main application, but failed to
enumerate those installed fonts.

My issue is that I don't want those fonts to be used outside of the main
application so that I've set the font characteristics as FR_PRIVATE.
However,
I want the C# application be able to use those fonts. Although the C# app
is
from Main application, probably it is in another process so that it is not
able to enumerate the fonts.

My question is may I view and use those fonts in C# application? And how?

Thanks in advance,


Aug 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Randell D. | last post: by
reply views Thread by J Turner | last post: by
4 posts views Thread by Brian P. Bailey | last post: by
6 posts views Thread by ryan.mclean | last post: by
5 posts views Thread by Colin McGuire | last post: by
4 posts views Thread by Aaron Gray | last post: by
reply views Thread by WDS | last post: by
reply views Thread by kamranasdasdas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.