Jump to content

Resolving font types


mje

Recommended Posts

Does LabVIEW have any capacity to resolve font types? That is say I want a text box to be monospace, or sans-serif, but really don't care what the exact font is. Is there a way for me to set this and just let the IDE figure out what the system defaults are?

I'm pretty sure the answer is no, but lava often surprises me.

Link to comment

Using systemfontsPlay.vi as a starting point I made a VI that will determine all of the fixed-width fonts. It's slow but it seems to work.

For your application you could have 2 hidden indicators (one with "iii" and one with "www") set to the system font and see if they're the same size using the Label.Width property.

Bruce

Find Fixed-width Fonts.vi

Link to comment

Hehe, I already poke around the registry to obtain a font list. I'm not sure I like the idea of testing individual fonts, not only is it slow, but it doesn't help if I want to distinguish serif from sans-serif, for example. Granted, for this application all I care about is monospace...

Dug this up while poking about the MSDN:

post-11742-0-58487500-1347288191.png

Windows specific, but seems to work.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.