View Single Post
  #9  
Old November 27th, 2008, 04:47 PM posted to microsoft.public.visio.general
WapperDude
external usenet poster
 
Posts: 589
Default Visio 2007 has an extra space added to every line of composed

This is the 1st mentioning of this problem that I'm aware of.



" wrote:

On Nov 26, 5:36 pm, Paul Herber
wrote:
On Wed, 26 Nov 2008 16:02:34 -0800 (PST), wrote:
On Nov 26, 2:06 pm, Paul Herber
wrote:
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?


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.


If you do the same thing in Visio 2002,


Sorry, earliest I have running now is 2003 and that shows the same
problem. If it's really important that the text extends fully to the
edge of the shape then it can be fixed by setting the text to be
condensed. For 8pt text then setting condensed by -1pt works. Looks
cr*p though.

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

- Show quoted text -


Hi Paul

Thanks for the suggested workaround. My main concern is not with
getting text to go flush against the side of the shape. It's that when
solution developers write a formula using TEXTWIDTH() to, say, resize
the shape, or to resize up to a certain maximum size, or whatever,
they should be able to depend on TEXTWIDTH() actually giving them the
correct figure for the text-width -- and not some number that's rather
vaguely and seemingly arbitrarily related to, if always significantly
bigger than, the text-width.

That's why I say this "extra padding" of one space character's width
is not a feature, it's a bug. And IMHO, it's a fairly significant
one.

Again, does anyone know if it has already been reported, or if
Microsoft is working on it? Too bad it's now into its second Visio
version...

Regards
Andy