character spacing around parentheses

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
sp27
Posts: 135
Joined: Mon May 09, 2011 3:01 pm

character spacing around parentheses

Post by sp27 » Wed May 11, 2011 9:34 pm

Two questions from a new user:

1) In the list of fonts (e.g. in the Text Formatting panel of the Inspector), some font names are preceeded by the @ sign, e.g. @Arial Unicode MS (Windows 7). There is also an Arial Unicode MS entry. Other applications (e.g. Notepad) don't show any @fonts. What is the significance of @ in front of a font name?

2) When the text typed in a Label includes parentheses, i.e., (some text), and the font is @Arial Unicode MS (Windows 7), the character spacing to the left of the left parenthesis and to the right of the right paranthesis is doubled, as if an extra space character is inserted. This looks the same in the Contents panel and in the card. With several other fonts I tried, this doesn't happen. It doesn't happen when the font is set to Arial Unicode MS (without the @). Why?

Thanks!

Slava

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7391
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: character spacing around parentheses

Post by jacque » Thu May 12, 2011 6:11 pm

Are these unicode fonts? If so, the extra space may be the extra byte. You probably would need to treat the text as unicode text and adjust it for display.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply