If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Visio 2007 has an extra space added to every line of composed text inevery text block
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? Many thanks, Andy C. |
#3
|
|||
|
|||
Visio 2007 has an extra space added to every line of composedtext in every text block
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? Thanks, Andy |
#4
|
|||
|
|||
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/ |
#5
|
|||
|
|||
Visio 2007 has an extra space added to every line of composedtext in every text block
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? -- 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/- Hide quoted text - - Show quoted text - If you do the same thing in Visio 2002, though, it gives you the text flush, no extra padding. This extra padding is not "normal", as you can see if you simply move the cursor through the text from one end to the other-- the cursor never goes flush with the side of the text box, which theoretically it should do if the margins are set =0 (and if you haven't messed with the Text Transform section's settings), and which it clearly does in Visio 2002. Also, in Visio 2002 you don't get the extra space-character, selected on the end, when you select the text (e.g. by going into edit mode using F2). Why extra padding? And how come, if you get TEXTWIDTH() to tell you how wide the text is in Visio 2007, it tells you exactly the text- width you get in Visio 2002 after you insert an extra space into the text? You can test this, if you have Visio 2002 also installed as I do, by putting =TEXTWIDTH(theText) in some cell (e.g. a Scratch cell) and looking at the value it returns in each version. Something's very fishy! If you have Visio 2002 by any chance, you can see very clearly how the text-block is supposed to work-- which is, TEXTWIDTH() actually gives you the text width, not the text-width plus, arbitrarily, an extra whitespace character. And yes, if you don't have any text at all in the block, the extra space disappears as well... it only appears when you've typed in at least one character. This happens with any font I believe. Further feedback appreciated. Regards, Andy |
#6
|
|||
|
|||
Visio 2007 has an extra space added to every line of composed text in every text block
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/ |
#7
|
|||
|
|||
Visio 2007 has an extra space added to every line of composedtext in every text block
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 |
#8
|
|||
|
|||
Visio 2007 has an extra space added to every line of composed
A workaround to try would be to change your formula to something like width
=TEXTWIDTH(TheText)-Char.Size*0.25. The amount subtracted will always be proportional to the font size in the text block. HTH Wapperdude "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/ |
#9
|
|||
|
|||
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 |
#10
|
|||
|
|||
Visio 2007 has an extra space added to every line of composed text in every text block
There is a way around this, it can only be done via the shapesheet
though, the Format - Text dialog won't allow it. Open the shape's shapesheet and in the Text Block format section set the RightMargin cell to -5pt or whatever seems suitable. -- Regards, Paul Herber, Sandrila Ltd. Electronics for Visio http://www.electronics.sandrila.co.uk/ |
|
Thread Tools | |
Display Modes | |
|
|