LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use phonetic fonts for cursors name

Hi all!
I need to use phonetic characters in cursors names. Does somebody know wich font I have to use for this ?
One other problem is that I need to use Vietnamese characters at the same time. Is it possible to change the font of the cursors names run-time (in the diagram)?
Last quetion: Does LabVIEW support unicode? If yes,how can I use it?
Thank you for your help!
Nico
0 Kudos
Message 1 of 4
(2,753 Views)
> I need to use phonetic characters in cursors names. Does somebody know
> wich font I have to use for this ?
> One other problem is that I need to use Vietnamese characters at the
> same time. Is it possible to change the font of the cursors names
> run-time (in the diagram)?
> Last quetion: Does LabVIEW support unicode? If yes,how can I use it?
> Thank you for your help!
> Nico

LV doesn't currently support Unicode. It uses the older dual-byte
system. That means that it assumes that the encoding matches the locale
of the machine. Since you need to support Vietnamese, switch your
locale to Vietnamese and look at the fonts provided to find one that has
the phonetic characters you want. I'm assuming these are extended ASCII
or Accented Latin. Plenty of
popular fonts should work, but it seems
that Arial is one of the more complete.

You will also be able to display English and western languages since
that code page is always available. What you will not be able to do
without unicode is use multiple multi-byte encodings on the same
machine. Using both Chinese and Vietnamese in the same app for example
would require unicode.

Greg McKaskle
0 Kudos
Message 2 of 4
(2,753 Views)
Thank you!
Effectively, dual-byte encodind is allright to support Vietnamese and Western languages. But how did I get the phonetics characters? With shortcut key ?
As I need the user to change the cursor name run-time without using the frontpannel cursor legend, I'm using property node and a subVI asking for this name. (The user will enter the name in a string control).
Moreover I would like the user to have the possibility to choose a character in a pannel (something similar to the menu 'insert symbol' in MS Word). Is it possible to do this ? With Active X maybe, but I don't know which activeX objet I can use....(I am not very familiar with ActiveX).
0 Kudos
Message 3 of 4
(2,753 Views)
> Effectively, dual-byte encodind is allright to support Vietnamese and
> Western languages. But how did I get the phonetics characters? With
> shortcut key ?
> As I need the user to change the cursor name run-time without using
> the frontpannel cursor legend, I'm using property node and a subVI
> asking for this name. (The user will enter the name in a string
> control).
> Moreover I would like the user to have the possibility to choose a
> character in a pannel (something similar to the menu 'insert symbol'
> in MS Word). Is it possible to do this ? With Active X maybe, but I
> don't know which activeX objet I can use....(I am not very familiar
> with ActiveX).

Unfortunately, I don't know what the phonetic characters look like, so I
can't
tell you what to type to enter them. If you find them in Word,
you should be able to copy them to the clipboard, they will be in
Unicode, and paste them into LV -- where they will be converted to dual
byte. If it doesn't work, try to find out if they are exist in the
locale of your machine, or more importantly, the target machine.

If you can display them, you can build a simple ring with short strings
containing the phonetic characters. When the user picks something from
the ring, use the strings property and value to index out the string and
replace/append to the string the user is editing. You will want to pay
attention to the string's selection if this is supposed to act like a
character palette and either do an insert or replace.

If you want a more compact grid menu, you will need to convert the
strings to images and paste them in a pict menu. That value can be used
to index a constant array that matches the order in the pict ring.

Greg McKaskle
0 Kudos
Message 4 of 4
(2,753 Views)