LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Annotation Fonts

Solved!
Go to solution

I have several annotations that I am adding to a graph.  I would like to align their left side.  Annotation text is center justified.  Is there a way to set the justification?  If not, I can calculate the number of characters and pad the back end with spaces to bump the left side out.  But so far, I haven't gotten this to work either because the font is not a fixed width font.  What font setting do the annotations use?  In other words, I am willing to change the fonts of other things in order to also change the font of the graph annotation, but I kind of need to know which other font to change.

 

Thanks,

Bob Young

 

0 Kudos
Message 1 of 4
(3,390 Views)
Solution
Accepted by topic author Bob_Y.

Bob Y. wrote:

....  If not, I can calculate the number of characters and pad the back end with spaces to bump the left side out.  But so far, I haven't gotten this to work either because the font is not a fixed width font.  What font setting do the annotations use?  In other words, I am willing to change the fonts of other things in order to also change the font of the graph annotation, but I kind of need to know which other font to change.

 

Thanks,

Bob Young

 


The "Draw Text at Point" (found under Picture functions) will return the rectagnle used to render your ext in the font you specify. Just use that VI to get your text rectangle size and... well you nkow th rest of the story.

Smiley Wink

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 4
(3,381 Views)

Thanks Ben!

 

It even turns out the "you do the math" part was not at all hard. 

:smileyhappy:

0 Kudos
Message 3 of 4
(3,358 Views)

Here is the VI that I created to do padding.  It should make the separator be in the middle of the name (where the position is).

 

block diagram 

Message Edited by Bob Y. on 03-11-2009 10:45 AM
Download All
Message 4 of 4
(3,313 Views)