LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strings font

Solved!
Go to solution

Hello.

 

If I choose to write NA and WB in different fonts, when I make it an array, I cannot get my customized fonts anymore!

 

 

.police of string in array.png NAWB.PNG

 

Does anyone know how I can do it?

 

Thank you in advance.

0 Kudos
Message 1 of 7
(4,249 Views)

So far i know you can only have one font by array element. You can change it by property nodes.

 

BR,

Vincent

0 Kudos
Message 2 of 7
(4,235 Views)
Solution
Accepted by topic author AlainKabs

would it be an option to use labview images?

 

 

 

2015-06-19_lv-picture-draw-text-fonts.png

 

0 Kudos
Message 3 of 7
(4,207 Views)

An array must have all the properties of the elements be the same.  The only thing that can change between elements of an array is the value.  If you want to show multiple strings with different font styles you'll either need multiple string controls, or a cluster with multiple string controls in it.  Some code can be written to make the representation of an array of elements into a cluster of elements to make this a bit easier.

0 Kudos
Message 4 of 7
(4,199 Views)

Also, font is a property of the control and the array element.  When you wire a constant to the array indicator, you are only passing along the value, you are not passing along properties.

0 Kudos
Message 5 of 7
(4,188 Views)

Not only will that not work for arrays, it also won't work for a string scalar.

The value that passes through a wire of type 'string', contains only the text characters;  no font information flows through the wire.

The font information exists as properties of constants/controls/indicatiors.

In the case of controls and indicators, you can easily access the font information through property nodes.

You might find the attached VIs helpful.

"If you weren't supposed to push it, it wouldn't be a button."
Message 6 of 7
(4,186 Views)

Thank you alexderjuengere for your answer, it is totally what I needed.

 

I would like also to know: does anyone know what is the default font used by LabView?

 

Thank you all for replying.

0 Kudos
Message 7 of 7
(4,111 Views)