04-20-2012 01:43 AM - edited 04-20-2012 01:43 AM
Hi,
my colleague has a problem with his application on a Windows 7 machine. It is an executable built with LabVIEW 2011 on a XP machine.
Please see the attached screenshots for the appearance of the same EXE on Windows XP and Windows 7 (where the fonts are bigger/resized).
Do you have any ideas how to avoid this? A workaround could be the use of screenshots/bitmaps instead of text, but this is very uncomfortable regarding future changes.
Best regards,
Manu
Solved! Go to Solution.
04-20-2012 02:10 AM
Hi Manuel,
this has been asked some times before:
You have to include some more keys in the executable's INI file. I usually use those:
FPFont="Tahoma" 13
BDFont="Tahoma" 13
appFont="Tahoma" 13
dialogFont="Tahoma" 13
systemFont="Tahoma" 13
Best regards!
04-20-2012 08:04 AM
@ GerdW
Thank you, this solves the problem. Didn't find it with the search function...
Best regards
Manu
08-10-2012 10:07 AM
Gerd, how do I fix this so that I do not have to copy these keys on every application I compile?
08-10-2012 10:18 AM
One fix would be to set the font at the top of your front panel to be Tahoma 13 rather than "Application Font" before you create any objects in a new VI. Then those items will be defined as Tahoma rather than whatever font is associated with "Application Font" based on the Windows settings.
02-14-2013 06:15 AM
How about selecting all objects on the front panel and setting their font to Tahoma? This seems to work so far, I only had to manually select the cursor legend of a graph and then to select Tahoma, as the font did not get changed for that object for some reason.
02-14-2013 06:49 AM
@Bryan24 wrote:
Gerd, how do I fix this so that I do not have to copy these keys on every application I compile?
The application builder gives you the opportunity to pass a customized config file to the exe. So you can create one config as template and then use application builder to "copy" those to the exe during the build process.
Norbert
02-18-2013 05:45 PM
So it seems like the issue is with using the system font. So then why would you ever want to use a system font and why is that the default?
02-19-2013 01:58 AM
The three default font types (application, system, dialog) are a lookup for fonts, not specific fonts. LV uses this to make VIs portable between different OSes (e.g. Windows => Linux) since not every OS is working with "true type font" (ttf).
From the LV help:
The Application font is the LabVIEW default font used in the Controls palette, the Functions palette, the context help, and tip strips.
The System font is the LabVIEW default font used for menus.
The Dialog font is the LabVIEW default font used for text in dialog boxes and system controls.
hope this helps,
Norbert
02-19-2013 04:22 AM
Hi HDRM
I know you already got the answers but best way to avoid this by using Times new roman font (Or any other which are common in both OSes, i am sure about Times new roman). As this is common to all the OSes go you wont get any problem in near future.