LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Including custom fonts in installer packages...

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

0 Kudos
Message 1 of 7
(5,436 Views)

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. 

Message 2 of 7
(5,433 Views)

@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? 

0 Kudos
Message 3 of 7
(5,422 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 7
(5,420 Views)

crossrulz - you are correct for the XP location. I double checked it is C:\WINDOWS\Fonts.

Message 5 of 7
(5,416 Views)

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:

 

http://blogs.technet.com/b/rspitz/archive/2010/09/25/how-to-install-a-font-from-the-command-line-on-...

 

Kev R

Kevin R
Applications Engineer
National Instruments UK&Ireland
Message 6 of 7
(5,391 Views)

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.

 

Message 7 of 7
(4,506 Views)