08-17-2012 10:07 AM
Sup Gents,
Is it possible to include downloaded custom fonts in an installer package..? I'm aware other files like text files can be included but unsure how to include a font file (.ttf) files...
Good weekend to all...
Strokes
08-17-2012 10:39 AM - edited 08-17-2012 10:42 AM
I added a custom font and its automatically loaded into my fonts list provided by labview. So I think that would be an OS addition, not specifically adding the font to only labview.
08-17-2012 01:15 PM
@g e m i n i wrote:
I added a custom font and its automatically loaded into my fonts list provided by labview. So I think that would be an OS addition, not specifically adding the font to only labview.
I understand it is an OS addition but the fonts don't seem to carry over in my case. I built an executable of my program and tested it on a different computer to than my development computer. Low and behold the fonts changed to generic ones.
Any solution?
08-17-2012 01:21 PM
You should be able to make the installer put the font file in C:\Windows\Fonts. This should work at least for Windows 7. I think XP uses the same location.
08-17-2012 01:56 PM
crossrulz - you are correct for the XP location. I double checked it is C:\WINDOWS\Fonts.
08-23-2012 05:23 AM
Strokes,
In relation to your first post asking how to include a custom font in an installer.
Add the .ttf (font file) to your project, under your project explorer: My Computer (right click) >> Add >> file >> .ttf (font file)
You will need to write a .bat file that will copy the .ttf (font file) from your installation destination to C:\Windows\Fonts\
Here's how you add the font installation to your installer
Under your Installer Properties >> Advanced >> Run executable at end of installation (check box) >> select .bat file
This will run the batch file after the installation
I recommend having a read of this:
Kev R
06-29-2017 12:00 PM
I know this is an old post, but I'm replying to help users like myself who followed instructions here which do not work on Win10 and Win7.
Instructions were to create a batch file which copies the font to c:\windows\fonts. Reality is that the copy procedure works from Windows Explorer, but does *not* work from a batch file, see here.
Hopefully this will save someone an hour or so of grief.