LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executable font size different from what in LabVIEW development enrironment

Solved!
Go to solution
Solution
Accepted by topic author Ian_Ren

@Ian_Ren wrote:

It works now if I add the following manually in the *.ini file. How can I ask LabVIEW to add it in automatically while creating an executable?

 

appFont="0" 14


I don't recommend "0" because that says use the Windows font, but specifically defines the font size.

 

Change Windows, and you could wind up with a different font of the same size, (but fonts are never quite identical.)

 

When you create an executable, you will need to create the .ini file for it that includes those settings, include it in the project, and make sure the installer you  build references that .ini file so it gets copied over when you install.

 

That is why the best solution is to specifically define all of your controls to use a specific font such as Tahoma 14, or Segoe UI 15, or whatever Microsoft's fav orite font happens to be at the moement as opposed teo having those controls pointing to "System font".

 

That way it doesn't need to look at the .ini and doesn't need to grab the font settings from Windows.

0 Kudos
Message 11 of 22
(2,971 Views)

I am using LabVIEW 15.0.0. Yeah, for some reason, the default font size is 20, so I have to change it to 14.

0 Kudos
Message 12 of 22
(2,970 Views)
Solution
Accepted by topic author Ian_Ren

It is possible that your OS is configured for large fonts?

 

RIght-click on the desktop...screeen resolution.

 

 

 

Now click on "make text and other items larger or smaller".

 

 

 

Make sure you are at 100%. I guess yours is set to >100% and that's why you get 20 by default.

 

 

Download All
Message 13 of 22
(2,964 Views)

Yes, mine was set to Medium -125%. If I change it to Smaller - 100%, even without explicitly defining font size in the ini file, the executable now has a font size of 14 (the same as what I see in the LabVIEW development environment.

 

So I have two ways to do what I want to do now.

 

Many thanks for your help.

 

Ian

0 Kudos
Message 14 of 22
(2,956 Views)

You are lucking that the explicit 14pt that you selected at 125% is apparently equivalent to the default font size at 100%. 😄

 

(I never use symbolic fonts, so I never run into these annoying problems ....)

Message 15 of 22
(2,941 Views)

What do you mean when you say "symbolic fonts", do you mean "Application Font", "Dialog Front" and "System Font"?

0 Kudos
Message 16 of 22
(2,935 Views)

Correct.  Those 3 are "symbolic" in that they don't mean a specific font, but they point to those fonts within Windows in the Color and Appearance Dialog.  And Microsoft decides to change them  every time they come out with the next version of Windows.  For Windows XP, the font was Tahoma 8.  For Windows 7 it is Segoe UI 9.  I don;t remember what Vista had, or Windows 8.  And I have not seen Windows 10.

 

The biggest change was the change from size 8 to size 9 after Windows XP because that screwed up alignments in block diagrams and front panels.  Note that LabVIEW sizes are not 1:1 with Window sizes.  So Windows size 8 is roughly LV size 14.  Windows size 9 translates to LV size 15.  I guess that is why 125% large font roughly translates to size 20.

 

Now that you've run into font size problems, I recommend you go over and read Altenbach's extremely popular idea Font Size Standardization and click on the kudo button for that.  At least read through the thread as it gives some more technical detail.

 

Message 17 of 22
(2,929 Views)
Here is a related issue. The appearances of customized controls in LabVIEW environment and in executable are different. Can I fix it? Attached are two jpg files showing how they look in LabVIEW and in executable, respectively.
Download All
0 Kudos
Message 18 of 22
(2,823 Views)

It is kind of hard to know for sure because those buttons don't have text on them, just graphics.  Unless there is text hidden behind the graphic.  But even without text, I think the button still has some underlying font associated with it.

 

So pick those buttons in the development environment, and give them a specific font such as Tahoma 13 pt.  Save, build into an EXE, and see what happens.

0 Kudos
Message 19 of 22
(2,812 Views)

Are these actual graphic elements on the buttons or some weird font symbols (e.g. wingdings). Is the same font available on both systems?

Can you attach a small VI containing these controls?

Are you saying that the executable looks different when run on the same system as the development version? Are the font entries in the inis the same?

Is anything set to scale with the panel?

0 Kudos
Message 20 of 22
(2,805 Views)