03-04-2009 11:15 AM
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
Solved! Go to Solution.
03-04-2009 11:55 AM
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.
Ben
03-05-2009 09:12 AM
Thanks Ben!
It even turns out the "you do the math" part was not at all hard.
03-11-2009 10:44 AM - edited 03-11-2009 10:45 AM
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).