473,385 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 4651
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Randell D. | last post by:
I have just recompiled, upgraded to PHP 4.3.4. As an exercise (and curiosity) I've decided to test out PDF functions and got the test in the PHP online manual working. I had one problem whereby...
0
by: J Turner | last post by:
Hi All, I've googled and googled, but I can't seem to track this down anywhere... Point me to a thread if I've missed it. How would one retrieve a list of all available system fonts on a...
7
by: Scott | last post by:
Sorry if this is a dumb question - bit of a newbie to Access: Just getting to grips with OfficeXP Developer, the intention being to be able to deploy a simple Access application to various...
4
by: Brian P. Bailey | last post by:
Hello, I'm trying to enumerate the fixed-pitch font families installed on a system. I am _not_ trying to create a generic monospaced font. I've tried looking at: FontFamily...
6
by: ryan.mclean | last post by:
Hi all! I was hoping someone could help me out. What I would like to do is use a font that is not installed on the server, but does reside in my local web. Does that make sense? I would like to...
5
by: Colin McGuire | last post by:
Hi again. I have written the following small piece of code Dim f As FontFamily For Each f In System.Drawing.FontFamily.Families Console.WriteLine(f.Name) Next f and when executed it prints...
4
by: Aaron Gray | last post by:
Is there anyway to get a list of all the availiable fonts in Javascript ? Aaron
70
by: axlq | last post by:
I'm trying to design my style sheets such that my pages have similar-looking fonts different platforms (Linux, Mac, Adobe, X-Windows, MS Windows, etc). The problem is, a font on one platform...
0
by: WDS | last post by:
Hello something weird happens to me. I have Windows Server 2003 with all the fonts installed and Microsoft Visual Studio .NET 2003. When I create a report on Visual Studio .NET (rpt), I can't see...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.