LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set ONLY the font size for the target PCs

Solved!
Go to solution

I know that I must include a custom ini file to specify font name AND size for target PCs (the ones where the EXE runs).

For example

appFont="Tahoma" 13

dialogFont="Tahoma" 13

systemFont="Tahoma" 13

Is there a way to specify only the font size and not the name? (i.e. I want to use the specific font for a given PC, but I want to set its size).

I tried with

appFont= 13

but this setting is ignored.

When I used

appFont= "0" 13

the size was correctly set, but what does the "0" mean?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 6
(3,308 Views)

Hi Vix,


Good afternoon and I hope your well today. Thanks for the post.

 

I have seen previously the "0" for the font type argument means default. I have though found it hard to locate a resource online which confirms this. 

 

I believe this is similar to if you specify a font which the system doesn't have.. 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 2 of 6
(3,302 Views)

Hi Hillman,

thank you for your answer.

 

So when I specify "0" 13  I should be able to set size to 13 keeping that particular PC default font...

If this is true, this is exactly what I need

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 6
(3,299 Views)
Solution
Accepted by topic author vix

Hi Vix,

 

Yes I believe this will work.


You could confirm by the fact,

 

The default Application font is the Message Box Font which is Segoi UI and Tahoma for Windows VISTA and XP machines respectively. To verify this this on a Windows XP machine, complete the following steps:


  1. Open Start»Settings»Control Panel»Display

  2. On the Appearance tab, press Advanced

  3. Select Message Box from the Item: pull-down menu

  4. The font is displayed in the Font: pull-down menu

 .. does the font change between "0" and Tahoma for example.. 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 4 of 6
(3,294 Views)

I did the test you suggested, and I can confirm the assumption.

 

Kudos to you!

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 5 of 6
(3,287 Views)

You may want to vote for this idea.

0 Kudos
Message 6 of 6
(2,887 Views)