LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Installing Fonts

Hello,

Hi, I have developed an application that uses a rather uncommon font. It is not included in the default font registry. I would like the font to be installed automatically upon installation rather than have the user do it themselves. I know that I can write an executable to do this and have it run at installation. However, I do not know how to acheive this in Labview. Actually I would not really know how to do it in any language. I imagine I will have to call the win32api??? What functions??? Anybody have any ideas on what needs to be done?

Thank you,
Glen Deslauriers
0 Kudos
Message 1 of 6
(4,105 Views)
Glen;

As far as I know, to install a new font on Windows all you need to do is to place the font file in the \FONTS directory.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 6
(4,105 Views)
I think there is more to it than that. I think the font needs to be registered. When I install a font I need to goto control panel/fonts. Then file/install new font. I have tried to drag and drop them into that folder in the past and the fonts were not recoginized by any applications.
0 Kudos
Message 3 of 6
(4,105 Views)
Windows should detect the new fonts. A related article (203018) at microsoft.com says that when you add new fonts, the fonts may not be displayed. According to them, that behavior may occur only the first time you install new fonts. This applies, however, only to Windows 98.

Did you re-started your applications?
www.vartortech.com
0 Kudos
Message 4 of 6
(4,105 Views)
Enrique,

Thank you. I read over that article. Nice. I setup the LabVIEW installer to place the ttf file in the font directory. It worked fine on an XP machine. I feel as though I have tried it in the past on 98 machines without as much success. Hence my sceptical outlook. But it is working ok now.

Thanks for your comments and sugguestions,
Glen D.
0 Kudos
Message 5 of 6
(4,105 Views)

May i ask how to place the ttf.file into C:\Windows\fonts directory? I only able to put the ttf.file in C:\Windows.

installer properties.JPG

0 Kudos
Message 6 of 6
(3,410 Views)