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, 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,
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,
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Aaron Gray |
last post by:
Is there anyway to get a list of all the availiable fonts in Javascript ?
Aaron
|
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...
|
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...
|
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...
|
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...
|
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...
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |