LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fonts changing size in deployed code

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.

0 Kudos
Message 1 of 9
(2,894 Views)

Show some screenshots so we can see and compare.

0 Kudos
Message 2 of 9
(2,888 Views)

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.

0 Kudos
Message 3 of 9
(2,885 Views)

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.

0 Kudos
Message 4 of 9
(2,882 Views)

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

0 Kudos
Message 5 of 9
(2,863 Views)

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)

Message 6 of 9
(2,855 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 9
(2,847 Views)

A simple Ctrl+A, Ctrl+0 (Zero) will knock you out!


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 9
(2,840 Views)

@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... 😮

0 Kudos
Message 9 of 9
(2,838 Views)