NI Home > Community > NI Discussion Forums

LabVIEW Idea Exchange

Showing results for 
Search instead for 
Do you mean 
Announcements
We've turned on a search before post feature in the LabVIEW Idea Exchange. This new feature will help cut down on the number of duplicate ideas in this space!

The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
altenbach

Font size standardization

Status: New
by Knight of NI ‎01-05-2011 07:37 PM - edited ‎01-05-2011 07:42 PM

Once in a while I complain about font issues in general (here, here, or here), but one of the really weird things are the font sizes as used in LabVIEW.

 

The font dialog lists them as units of pt, but for some reason they are quite different in size from the same sizes in any other applications (browser, word, etc.). LabVIEW also shows other problems, for example tahoma 14, 15 all look exactly the same... why??

 

Here is a side-by-side comparison of a wordpad document and a LabVIEW panel. Each line is configured for the indicated font size.

 

As you can easily see, LabVIEW is the exception. Any other applications I tried agrees with the left panel.

 

Idea -->LabVIEW should also standardize here!

 

 

 

Comments
by Trusted Enthusiast on ‎01-06-2011 03:28 PM

It seems that LabVIEW is actually specifying the font size in pixels rather than points.  A point is rather rigorously defined as 1/72 of an inch.  Left to its own devices, Windows assumes a monitor pitch of 96 dpi.  So a 72 point font should be 1 inch or 96 pixels tall. LabVIEW thinks it should be 72 pixels tall, so it winds up about 25% smaller than what everyone else thinks.

 

The Mac OS has a long tie to graphic artists, so I assume that is why they assumed 72 dpi for the monitor pitch, no need to fuss around.  LabVIEW was born on the Mac and brought to the PC. Since the font handling apparently hasn't changed in twenty plus years, they probably never got around to doing the scaling that other Windows programs do.

 

On the Mac I used to use 9 and 10 point fonts with LV, I'd be squinty if I tried that with LV on Windows...

 

All of that said, I am not sure what I would suggest NI do.  When I use the picture control, I can count on the height of the textbox being equal to the "point" size I choose for the font.  On the other hand, my FPs look different on every different sized monitor.  Should NI adopt a somewhat arbitrary Microsoft hack?  Or, just change the unit from pt to px?  I am inclined to say, move to all vector drawing based on the actual screen dimensions and resolution.  The chances of that seem slim, but how many half-measures make up the full measure?

 

Three choices here:  Do nothing (no), adopt Microsoft standard (better than nothing), change unit to px (accurate at least, explains difference).

by Active Participant dthor on ‎01-06-2011 07:08 PM

Of the 3 choices Darin mentioned, I'd be most in favor of #3: changing "pt" to "px." It's the simplest, fastest and easiest to implement, and it doesn't break FPs on any OS.

by Knight of NI on ‎01-06-2011 07:31 PM

Obviously, the fonts on windows are optimized for the local assumptions on dpi, etc. That's probably also the reason why all the integer sizes scale so well. Converted to the LabVIEW definition, We often get really jumpy behavior (8/9 14/15, 19/20 and are basically the same, and there is a gigantic jump between 13 and 14, right in the size range where we want to fine-tune the size. It is always irritating when I do a ctrl+ or ctrl- and, for some steps, only the vertical spacing changes while for other steps there is a large jump in size.

 

I would not like a definition in pixels, because it probably won't scale well in the future. (Maybe the next generation of displays has a 10x finer pitch).

 

I really don't know what the best solution is, but font issues are one of the biggest problems in LabVIEW. We need a way to ensure WTPSIWTUG (What the programmer sees is what the user gets). Font's should never be tied to the windows theme or OS settings, for example. Maybe there should even be an option to embed unusual fonts in the VI for portability.

by Member CrystalTech on ‎01-25-2011 04:39 PM

Kudos!  Back to my old rant.  NI needs a MAJOR overhaul of it's Front Panel "EVERYTHING"... not just patches or assorted improvements.  A good lesson in Standards of the current technology would help too.  NI is the best at most everything it does... but certainly not the FP.

by Knight of NI on ‎04-06-2011 01:29 PM

Another problem is in the case where company requirements dictate certain font sizes for the user interface for software written in any language.

Obvioulsy, the LabVIEW group would need to get special clearance to use different font sizes so the results conform. The size conversion routines would need to get specified.

by Active Participant Bob_Schor on ‎06-29-2012 03:43 PM

Something I'd like to see would be a way to set the "default font size" for a Project.  I know (because I've read the Discussion Groups) that it is possible to set the "global default fonts" by messing with the LabVIEW.ini file within Program Files, but that is both "dangerous" (who wants to mess around in there?) and clumsy (digging under the covers, non-intuitive, etc.).

 

What I'd like to see is a setting within a Project (so that it changes with each Project) that allows you to specify a fixed Font size (and possibly the font, itself, along with attributes).  One option for each setting should be "Default" (which is the current de facto standard).  But when you do want to set it for a particular Project, it would be nice to be able to do so!

 

I'm moving some old code, developed in LabVIEW 7.0 on a Windows XP system, to LabVIEW 2010 on Windows 7.  I noticed that many of my Front Panel controls look really ugly, with controls overlapping labels.  I started trying to "move them all around", and just realized the problem was that the default Font Size is probably one point bigger!  I do not want to change LabVIEW.ini for this one task ...

 

Seems to me this suggestion (assuming the implementation is relatively straight-forward) would solve lots of problems for lots of LabVIEW programmers, but would have minimal negative impact as one could always get the current behavior by using the Default setting.

by Member David_Staab on ‎06-02-2013 03:11 PM

2.5 years and 335 votes later, and this still hasn't been publically addressed by an NI account? I think the writing's on the wall that fixing this bug -- and yes, if they claim units of [pt] but use units of [px] it's a bug -- would involve too much risk or effort in NI's eyes. :smileyfrustrated:

by Active Participant Brian_Powell on ‎06-03-2013 09:07 AM

Um, 336 votes.  Thanks for reminding me to kudo the idea. :smileyhappy:

 

23 years ago, when I wrote the "current" version of LabVIEW's internal font manager, font display technology was, shall we say, more primitive than it is today.  (If only we had jumped on the Display PostScript bandwagon with the NeXT version of LabVIEW!)  There's a lot of great technology that's come out in only the last few years, driven by cross-platform web development.  Just last month, Adobe donated its font rasterizer to the FreeType Project.

 

As we've previewed at NIWeek and with Data Dashboard on tablets, we're experimenting with new user interface mechanisms.  Along with those come better ways of dealing with fonts.

 

Believe me, I want my old code to die be refactored as much as anyone else.

by Member A-T-R ‎06-04-2013 02:13 AM - edited ‎06-04-2013 02:23 AM

Bob_Schor wrote:
I'm moving some old code, developed in LabVIEW 7.0 on a Windows XP system, to LabVIEW 2010 on Windows 7.  I noticed that many of my Front Panel controls look really ugly, with controls overlapping labels.  I started trying to "move them all around", and just realized the problem was that the default Font Size is probably one point bigger!

 


 

 

And the default font type itself changes from OS to OS!

 

But as the XP default font is also shipped with Win7 and Win8, you can very easily change the look back to your XP experience. The workaround is to just add the keys for the desired font type in your "old" executables ini files!

 

That is what we did when our customer upgraded his complete company PC environment from Win XP to Win 7

by Active Participant SimonH on ‎06-07-2013 04:18 PM

The difference between a LabVIEW font size and the true point size is at least predictable.  I wrote a VI and posted it here that will do the conversion for you.

 

Screen Shot 2013-06-07 at 4.02.26 PM.png

 

https://decibel.ni.com/content/groups/ui/blog/2013/06/07/font-sizes-in-labview--conversion-utility-v...

 

While not really a response to this idea I figured it'd be useful to post a link for anyone who goes searching.

Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
82
80
36
36
34