LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why are the fonts on my VI different from the fonts on the EXE after Ap Builder?

I am using LV 7 with Ap Builder. Suddenly my VI as they appear within LV have a different font size after being compiled with the Ap Builder. AND, EXE files that were compiled a long time ago, now have the wrong size font. AND if I take the same EXE to another computer, the fonts are correct again. Anyone have any idea as to what is going on?

Steve
0 Kudos
Message 1 of 4
(4,034 Views)
If you want the fonts (of an executable) to look like they were on your development computer, then you need to attach a support file when you build the application, and it has to be distributed with the application (in the same folder)

copy the LabView.ini file to the build folder, from the labView folder \nationalintruments\labView\Labview.ini
rename LabView.ini to applicationName.ini
open applicationName.ini with a text editor
edit the top line change [LabView] to [applicationName]
Save the file

once the file is distributed with the application, the fonts settings will look like those of the development computer
Message 2 of 4
(4,028 Views)
Dr. Imad:

You are correct, THANK YOU. But why do the ini files that come out of the Ap Builder are empty (except for the name)? should there not be some way to affect the Ap Builder output ini files? I have been maintaining this programs for a number of years w/o this problem. What could I have done that caused this problem to start?

Steve
0 Kudos
Message 3 of 4
(4,015 Views)
The most likely thing you have done is switch to LV 7 from an old version (5 and prior). The newer versions have a different execution system in that they have a common run-time library which needs to be installed once and which allows the applications themselves to be smaller and simpler. Before this there were no INI files, and if your systems had different fonts and you couldn't get them installed, you were in a problem. For example, I had an old program built in 5.0, which showed the fonts as gibberish when transferred to a new computer running XP. I tried forcefully installing the right fonts on that machine (they were working fine on the XP development machine) but nothing helped. The fonts would be installed, but it was still gibberish. So I had to port the code to 7.0, which meant I had to go over all the serial functions in the program and convert them to VISA, because the old style serial didn't work, despite everything I tried. When I did finish, I had gibberish again, but now I could just change the font settings in the INI file and it worked.

___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(4,003 Views)