11-08-2012 07:58 PM - edited 11-08-2012 08:06 PM
I'm stuck here. We have 2 identical deployed .exe progs on what should be identical laptops (ordered together, same product, fairly untouched) running windows 7. Somehow the fonts on one laptop are off (changed sizes, look like they might also have turned to bf, probably a different font) while on the other "identical" labtop things look ok. A quick check of the obvious possible suspects: same number and type of fonts appear to be installed, fonts setting appear the same, can't find anything different installed on the laptops that might explain the discrepancy like MS word or adobe software that might contain other fonts (but as I mentioned seems that the installed fonts are the same). Only difference in installed programs seem to be Matlab and Firefox installed on the laptop with the font problems. Would uninstalling these programs even make a difference?
Anyone have an idea what is going on here, and for things I might try?
Edit: uninstalling Matlab and Firefox in fact did not make any difference, FYI.
11-08-2012 08:19 PM
Show some screenshots so we can see and compare.
11-08-2012 08:39 PM
Was preparing some screen shots, but I finally found something different between the two laptops. The windows "Theme" *grumble*.
There were different themes, though with the same name "Unsaved Theme". I didn't think I or my colleagues changed anything there, but perhaps it came out of the factory different.
Anyway, a fix that works, if anyone has a like problem in the future, was to switch to "Windows 7" theme, though probably any theme would have fixed it. I don't know what "unsaved theme" was.
11-08-2012 08:52 PM
Something was changed and the changes weren't saved as a named theme. The change had to be one of the Windows fonts such as what is used for message boxess, or menu bars or something.
The default fonts used in LabVIEW point to the Windows defined fonts. Usually you see these differences in fonts between an XP and a Vista or Win7 machine because Microsoft decided to change the fonts and basic font size when they came out with Vista. It might not have been as obvious in your case because they were both Win7 machines, but certainly one of the Windows fonts was different.
One other possibility is the setting for font size in one of the display property screens. If it might have been set for Normal on one or Large on the other in which case all the fonts get scaled a certain percentage.
11-09-2012 11:16 AM
This Knowledge Base article talks a little more about fonts changing size when running an executable. Let me know if this helps!
http://digital.ni.com/public.nsf/allkb/2F11E12E565D2DD5862579490062827D?OpenDocument
Regards,
Leah
11-09-2012 11:29 AM
Did you develop the application yourself or is it from elsewhere?
A LabVIEW developer should never use default fonts on the front panel. Always use defined fonts.
(I wonder if it would help to add the current font entries to the application.ini file. I have not tried. Anyone?)
Font handing is currently one of the real weak points of LabVIEW, and there are plenty of ideas to make it better ( e.g. here)
11-09-2012 11:34 AM
@altenbach wrote:
A LabVIEW developer should never use default fonts on the front panel. Always use defined fonts.
I never thought of that! That's so simple it's ingenious.
11-09-2012 12:00 PM
A simple Ctrl+A, Ctrl+0 (Zero) will knock you out!
11-09-2012 12:03 PM
@JÞB wrote:
A simple Ctrl+A, Ctrl+0 (Zero) will knock you out!
Unfortunately some of my labels contain greek letters mixed with regular text, and that would really mess things up... 😮