이 내용은 고객님의 설정 언어로 확인할 수 없습니다

이 내용은 다른 사용 가능한 언어로 표시됩니다. 고객님께서 사용하시는 브라우저에 텍스트 번역에 도움이되는 기능이 포함되어 있을 수 있습니다.

LabVIEW's Application Font Changes Between Windows Versions

Updated Nov 6, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Application Builder Module

Issue Details

  • I have created a LabVIEW built application (.exe) on a specific version of Windows. When I run my application on different versions of Windows, my font changes style and size. How can I stop this from happening?
  • My LabVIEW front panel contains a lot of labels with different sized fonts. It looks the way I want on my development machine, but when I move it to another computer, the text changes sizes and shifts on the front panel making it unreadable.
  • I want the text to be static on the front panel so when I deploy it to another system it stays the way I specified.
  • If you launch in Windows 7 Aero theme you have no problems. However, if you relaunch in Windows 7 Classic: the tab alignment, font spacing and numerous other window appearance features are changed or misplaced. 

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:
  1. Build your VI into an executable.
  2. 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:
Folder Files.png
Application ini File.png
"Courier" is the font you would like to have and the number (30) after is the size.
  1. Build an installer to install the initialize file and any custom font along with the executable.
  2. Run the installer on another machine with a different version of Windows.
  • Use property nodes within your code to set the font properties.
 

Additional Information

Different operating system versions and themes have different default fonts and sizes. LabVIEW will usually try to use the following default settings:
 
FPFont="Segoe UI" 13 
BDFont="Segoe UI" 13 
appFont="Segoe UI" 13 
dialogFont="Segoe UI" 13 
systemFont="Segoe UI" 13