LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get list of avaiable fonts?

Hi!

Very simple question.
How is it possible to get list of all available fonts in VI (programmatically, of course)?
Probably anybody can answer me before I'm going into WinAPI hell?

Thank you in advance,

Andrey.
0 Kudos
Message 1 of 6
(4,803 Views)

Hi Andrey,

attached you find a simple VI which retrieves the information about the installed fonts from the Windows registry through an appropriate key query. LabVIEW font ring automatically updates according to the fonts that are installed for windows.

Hope this helps.

Regards,

C.L. - National Instruments Applications Engineering

Message 2 of 6
(4,796 Views)
Thank you very much! Exactly what I needed.

Andrey.
0 Kudos
Message 3 of 6
(4,788 Views)

Is there a native LV way of doing this?  We've ported our software to MacOS and so we can't use windows calls any more.

0 Kudos
Message 4 of 6
(3,891 Views)

Hi Thomas,

 

as fonts are (usually) maintained by the OS you  need OS-specific calls to get a list of available fonts.

 

You need to find the appropriate method for MacOS the get that list. I'm not familiar with MacOS but there surely is some kind of batch like cmd shell (or PowerShell) on Windows and some commands to check system settings…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(3,874 Views)

You need to know where the fonts are located. On Mac OS X 10.8 they are in /Library/Fonts. The attached VI will generate a list of the font files in that folder.

 

Lynn

0 Kudos
Message 6 of 6
(3,847 Views)