LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV 2014 SP1: VI documentation text has weird font and spaces between characters

Solved!
Go to solution

Hello, 

 When pasting text from Acrobat reader DC, The text appears in a sans font, along with spaces between characters and garbage characters at the end of the text block. See the attached picture. Any subsequent text pasted into the documentation text box will have the same issues. Is there a way to fix that?

0 Kudos
Message 1 of 9
(3,774 Views)

Seems like it is a unicode font.  There every character is represented by two bytes.

 

You might try sending the text through MS Word or notepad or something.  Do as paste as plain text and hopefully that will help it forget that it is a unicode font and will paste it as a regular font.

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

Hi, I have already tried that (Copied to notepad, made sure it is encoded as 8 bit ASCII and pasted back). The text remains the same. Restarting LabVIEW didn't help either.

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

You'll have to post a copy of the VI and/or the pdf you are copying from so we can see what the characters look like.

0 Kudos
Message 4 of 9
(3,753 Views)

Thanks for the reply, here is an empty VI showing the same issue, and a PDF file for the source material. 

Download All
0 Kudos
Message 5 of 9
(3,749 Views)

I don't see that string anywhere in that PDF.

 

I copied another set of text out and pasted it into the VI documentation and it didn't do it.

 

Here is a way to clean it up.  Copy your documentation text into a control and use search/replace string to replace the null character (\00) with nothing.  Then copy/paste the result back into the VI documentation.

0 Kudos
Message 6 of 9
(3,731 Views)

Found something even more interesting. I wired a string to the VI's description property, and now the encoding is back to normal (ASCII). Run the attached VI twice. The 1st time, it will show the saved description (Unicode string), the next time it will show the in-memory description (ASCII).

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

Just in case someone else encounters this, here is a code snippet that fixes the issue.

Paste it into your VI, run once, then save the VI.VI Documentation cleanup.png

 

 

 

0 Kudos
Message 8 of 9
(3,721 Views)
Solution
Accepted by Lior.Bilia
Message 9 of 9
(3,697 Views)