kimosavi
Active member
Hi. Wanted to start a new thread as a discussion on what will be the best way to install or embedd the fonts used on your project to the client machine.
The solution must be capable of working in XP/Vista.
Some of the topics that I found involves the following:
1. Embedding the fonts into the Assemby and calling them from memory.
(using Private Font Collections and installing them via AddFontMemResourceEx)
Works in XP (sometimes) but not in Vista
2. Embedding the fonts into the Assemby and calling them from memory.
(using Private Font Collections and installing them via TTEmbedFont and TTLoadEmbeddedFont)
HAVE NOT TRIED THIS, Seems too damn complicated for my knowledge, and most code samples are in C.
3. Embedding the fonts into the Assemby and calling them from a File
(using Private Font Collections and installing them via AddFontResourceEx)
Works in XP (sometimes) but not in Vista
4. Installing the fonts into the Windows\Fonts Folder @Runtime
@XP will have no problem, Vista will deny access)
5. Installing the fonts into the Windows\Fonts Folder @Installation
@XP will have no problem, Have not tried on Vista, but assuming the right permissions should work)
The purpose of this discussion is to find a solution that might work for everyone and post the code here for people to use it.
Your contributions will be highly appreciated.
if you need to see some code of the steps I have taken let me know.
The solution must be capable of working in XP/Vista.
Some of the topics that I found involves the following:
1. Embedding the fonts into the Assemby and calling them from memory.
(using Private Font Collections and installing them via AddFontMemResourceEx)
Works in XP (sometimes) but not in Vista
2. Embedding the fonts into the Assemby and calling them from memory.
(using Private Font Collections and installing them via TTEmbedFont and TTLoadEmbeddedFont)
HAVE NOT TRIED THIS, Seems too damn complicated for my knowledge, and most code samples are in C.
3. Embedding the fonts into the Assemby and calling them from a File
(using Private Font Collections and installing them via AddFontResourceEx)
Works in XP (sometimes) but not in Vista
4. Installing the fonts into the Windows\Fonts Folder @Runtime
@XP will have no problem, Vista will deny access)
5. Installing the fonts into the Windows\Fonts Folder @Installation
@XP will have no problem, Have not tried on Vista, but assuming the right permissions should work)
The purpose of this discussion is to find a solution that might work for everyone and post the code here for people to use it.
Your contributions will be highly appreciated.
if you need to see some code of the steps I have taken let me know.