 Wim S
		
			Wim S
		
		
		
		
		
		
		
		
	
			01-08-2008 03:15 AM
 . To avoid this problem, I thought of just using MS Sans Serif as the standard font for all controls and labels, instead of the NIDialog font. Of course I have to make sure that the MS Sans Serif font is present on the target PC. Is the installer of my application intelligent enough to install this font automatically on the target PC. If not, how can I make sure that this font is installed correctly? I noticed that I can include files in the [Fonts] directory in the Edit Installer dialog on the File tab page (right click the Folders tree and select "All Installation Locations" from the popup menu). Do I just need to put the MICROSS.TTF (located in C:\WINDOWS\Fonts on my PC) in this location?
 . To avoid this problem, I thought of just using MS Sans Serif as the standard font for all controls and labels, instead of the NIDialog font. Of course I have to make sure that the MS Sans Serif font is present on the target PC. Is the installer of my application intelligent enough to install this font automatically on the target PC. If not, how can I make sure that this font is installed correctly? I noticed that I can include files in the [Fonts] directory in the Edit Installer dialog on the File tab page (right click the Folders tree and select "All Installation Locations" from the popup menu). Do I just need to put the MICROSS.TTF (located in C:\WINDOWS\Fonts on my PC) in this location? Ian.W
		
			Ian.W
		
		
		
		
		
		
		
		
	
			01-08-2008 08:28 AM
 Is it really the case that MS Sans Serif is not present on those machines, or is it just that NI Dialog does not map to it, (perhaps due to users customizing the appearance)?
 Is it really the case that MS Sans Serif is not present on those machines, or is it just that NI Dialog does not map to it, (perhaps due to users customizing the appearance)?  01-08-2008 08:34 AM
Hello Ian,
I have no information about the settings on these machines. I assume that NI Dialog doesn't map to the MS Sans Serif font. I'm probably just going to use this font directly instead of using the NIDialog font, and put the font in the installer.
 Ian.W
		
			Ian.W
		
		
		
		
		
		
		
		
	
			01-08-2008 09:00 AM
 Biccio
		
			Biccio
		
		
		
		
		
		
		
		
	
			02-03-2017 09:44 AM
You do not need to install the fonts on Windows, for using it in your application.
You can copy the font file during the installation of your program in a sub-folder, such as "\\fonts".
In main () you must add the SDK function (you must also include the library "gdi32.lib")
#include "windows.h"
AddFontResource ("fonts\\xxxxxxxx.ttf");
This allows you to use the fonts without installing it in Windows, for the duration of the user's login session.
It works even if you logged in as a standard user.
Fabrizio