View Single Post
  #4  
Old November 26th, 2008, 09:06 PM posted to microsoft.public.visio.general
Paul Herber
external usenet poster
 
Posts: 1,732
Default Visio 2007 has an extra space added to every line of composed text in every text block

On Wed, 26 Nov 2008 11:52:45 -0800 (PST), wrote:

On Nov 26, 12:44*pm, Paul Herber
wrote:
On Wed, 26 Nov 2008 09:56:55 -0800 (PST), wrote:
Has anyone noticed a bug in Visio 2007, that every line of composed
text ("theText") in every text block has a space character at the end,
which cannot be deleted (although it can be selected, and shows up
whenever the text as a whole is selected)? This makes TEXTWIDTH()
return a size that is larger than the actual composed text, by exactly
one space character's width. (I've tested this with several different
fonts and different text sizes.) The extra width at the end of the
text line shows up whether or not there is a char. return at the end
of the line.


I do not know whether this bug shows up in Visio 2003. It does NOT
show up in Visio 2002. Thus, shapes whose dimensions are dependent on
TEXTWIDTH(theText) will appear larger in Visio 2007 than they do in
Visio 2002.


Has anyone reported this bug? Does anyone know if Microsoft is working
on it?


Looks fine to me, I've just tried setting a shape's width cell to
"=textwidth(TheText)" and it sizes correctly as far as I can tell.
Have you set the text block margins to 0?

--
Regards, Paul Herber, Sandrila Ltd.
http://www.electronics-packages.sandrila.co.uk/- Hide quoted text -

- Show quoted text -


Paul,

Yes, I've tried setting the margins to 0; the problem is actually
easier to see if you do that. Because setting the margins to 0 with
the width =textwidth(theText) should make the text flush with the
sides of the shape; but that's not what I get, I get a half-space's
width on either side, as if the margins were not 0. The text still
looks centered, of course.

Is that what you get?


Yes, I think that's just the normal padding space around the
character. Which font are you using? Are you using Condensed or
Expanded characters? Condensed shows an interesting problem.
If I remove the text then the shape width becomes 0.



--
Regards, Paul Herber, Sandrila Ltd.
DFD/SSADM for Visio http://www.visio-dfd.sandrila.co.uk/