LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a font to the Environment Font Preferences.

Solved!
Go to solution
I would like to set the font of the Source Window to linedraw.ttf, I added this font to system32 but it does not appear as an option in the Enviornment Font Preferences.  What do I need to do?
0 Kudos
Message 1 of 9
(3,981 Views)

Does it appear in other font dialogs, inside CVI? For example, for some control that you edit in the User Interface Editor?

If it does appear elsewhere, then the font is installed correctly. In that case, the problem is probably that the font is not monospaced. The source editor only supports monospaced fonts.

Luis

0 Kudos
Message 2 of 9
(3,974 Views)

It does not appear in other font dialogs including controls in the User Interface Editor?

The font did indeed install in C:\winnt\Fonts, but it still does not come up as an option in the enviornment font preferences.  I am using LabWindows/CVI v. 8.1.1, others that I work with are using older versions (6 & 7) with the font installed the same way and it is selectable as a source window font.  Did something change with version 8.1.1?

0 Kudos
Message 3 of 9
(3,966 Views)
Yes, something did change in CVI 8.x concerning font selection. CVI now enforces the character sets of the font more strictly. This was necessary in order to properly support non-Western character sets in CVI (for example, Greek and Russian alphabets).
 
Try running Notepad, and bring up the font selection dialog (Format>>Font). Browse to this particular font and then see which character sets show up in the ring control for this particular font (Notepad calls them scripts). In order to see this font in CVI, the font has to support the character set that is associated with the language specified in the Control Panel (Regional and Language Options>>Advanced). If your language is English, then the font needs to include the "Western" character set. If it doesn't show up as a script of this font in Notepad, that explains why CVI is not displaying this font at all.
 
If that's the case, then I apologize for the more restrictive behavior in newer versions of CVI. It really was a necessity at the time. However, we've since received the feedback that some users would like to mix different character sets in the same user interface, and so we might be reviewing this behavior soon, with the goal of allowing character sets other than the one selected in the Control Panel.
 
Luis
Message 4 of 9
(3,927 Views)

Thank you for your help. The script for the Font in Notepad reads as "Symbol" instead of "Western".

However, we have another user using LabWindows/CVI v. 8.1.1 and this font is set as his Source Window Font. 

Is there anything I can do to set my  Source Window Font to a font with a "Symbol" script?

 

0 Kudos
Message 5 of 9
(3,921 Views)
Solution
Accepted by topic author KSMN
It might be that once the other user was able to select that specific font with an older version of CVI, that choice was preserved in the registry. And even though in 8.1.1 you're not able to select that font, it might still try to honor the earlier choice (normally, when a new version of CVI is installed, it initializes its preferences to match any existing preferences made under an older version of CVI).
 
If you'd like to confirm this, look for the font specified in the Windows registry. The path is HKEY_CURRENT_USER\Software\National Instruments\CVI\8.1\SourceFont. Compare the value in your machine with that of the other user. If the other user's machine has the font that you want, you might be able to also use it yourself, if you manually modify the registry value in your own machine.
 
Luis


Message Edited by LuisG on 12-10-2007 05:31 PM

Message Edited by LuisG on 12-10-2007 05:32 PM
0 Kudos
Message 6 of 9
(3,906 Views)

Changing the registry worked!  Thank you. 

I did make a mistake in my previous message: the other user is using version 8.1.0. but things still worked out well.

We use MS Linedraw for many applications here and intend to use it in the future.  An easier fix for this problem in the future would be appreciated.

 

Thanks again.

0 Kudos
Message 7 of 9
(3,884 Views)

I'm comming back to this old thread because I want to use Greek (Math) caracters on the uir but the "Symbol" font available in other windows applications (like NotePad) does not display in the font selector in the user interface editor.

 

I have taken a look at the registry but couldn't find out how to change it in order to get the symbol font.

Here is a screen shoot of my registry.

 

Registry.jpg

 

Could some one advise me what I have to add?

 

 

 

0 Kudos
Message 8 of 9
(3,211 Views)

Sorry for this post.

 

The solution is to choose the right Character set

0 Kudos
Message 9 of 9
(3,207 Views)