Solution
There are many issues that could cause the font to change between systems. Several potential solutions are listed below:
- Check to make sure all of the fonts used in your application are installed on the deployment machine. If a font is not installed, the computer will choose a similar font which can cause the text to shift.
- Define the font in the initialization file following the steps below:
- Build your VI into an executable.
- Edit the initialization file associated with your executable to specify the font. Note: the initialization file is in the same folder as the executable, shares the same name as executable, and has the .ini extension.
For example, to set your font to 30 pt Courier in your application, change your initialization file to match the one in the image below:
"
Courier"
is the font you would like to have and the number (30) after is the size.
- Build an installer to install the initialize file and any custom font along with the executable.
- Run the installer on another machine with a different version of Windows.
- Use property nodes within your code to set the font properties.