Bold font bug

I'm sorry if this has been reported already. I was away for a while and quickly
glancing through the message titles couldn't find anything.

When "Display items" in "Fonts and colors" are set to bold, like in "ReSharper
Constant Marker" then I have problem positioning text cursor at the right place.
On the screen, it looks like it's in one place, but when I type, letters show up
at another place (usually one or more characters on the right). See attached
image. While it looks like cursor is positioned between letters e and d, it is
in fact at the end of the line (after the closing bracket).

Unchecking the bold checkbox everything returns to normal.

Incidentally, I experienced the same problem in earlier versions of JBuilder. I
think they fixed it in JB 8 or 9.



Attachment(s):
BoldBug.png
6 comments
Comment actions Permalink

Predrag,

this is a known problem. It is reproducible only with certain fonts.
We suspect that the VS core editor cannot handle bolded items correctly.
The workaround is either to uncheck bold or use those fonts which avoid this
problem
(one of the is Courier New).

"Predrag Stanar" <reply.to.usenet@nospam.com> wrote in message
news:f2q560hj6emo69n21sj57nroaifds5h8sd@4ax.com...

I'm sorry if this has been reported already. I was away for a while and

quickly

glancing through the message titles couldn't find anything.

>

When "Display items" in "Fonts and colors" are set to bold, like in

"ReSharper

Constant Marker" then I have problem positioning text cursor at the right

place.

On the screen, it looks like it's in one place, but when I type, letters

show up

at another place (usually one or more characters on the right). See

attached

image. While it looks like cursor is positioned between letters e and d,

it is

in fact at the end of the line (after the closing bracket).

>

Unchecking the bold checkbox everything returns to normal.

>

Incidentally, I experienced the same problem in earlier versions of

JBuilder. I

think they fixed it in JB 8 or 9.

>
>


0
Comment actions Permalink

"Dmitry Shaporenkov \(JetBrains\)" <dsha@jetbrains.com> wrote:

True. If I switch from Lucida Console to Courier New problem disappears. But
bold in Courier New is barely any different than non-bold. I guess I'll stick
with Lucida and disable bold.

>Predrag,
>
>this is a known problem. It is reproducible only with certain fonts.
>We suspect that the VS core editor cannot handle bolded items correctly.
>The workaround is either to uncheck bold or use those fonts which avoid this
>problem
>(one of the is Courier New).

0
Comment actions Permalink

Predrag,

I noticed the same issue some time ago, it's documented in the tracker at
http://www.intellij.net/tracker/resharper/viewSCR?publicId=983.

- Thomas

"Predrag Stanar" <reply.to.usenet@nospam.com> wrote in message
news:f2q560hj6emo69n21sj57nroaifds5h8sd@4ax.com...

I'm sorry if this has been reported already. I was away for a while and

quickly

glancing through the message titles couldn't find anything.

>

When "Display items" in "Fonts and colors" are set to bold, like in

"ReSharper

Constant Marker" then I have problem positioning text cursor at the right

place.

On the screen, it looks like it's in one place, but when I type, letters

show up

at another place (usually one or more characters on the right). See

attached

image. While it looks like cursor is positioned between letters e and d,

it is

in fact at the end of the line (after the closing bracket).

>

Unchecking the bold checkbox everything returns to normal.

>

Incidentally, I experienced the same problem in earlier versions of

JBuilder. I

think they fixed it in JB 8 or 9.

>
>


0
Comment actions Permalink

"Dmitry Shaporenkov \(JetBrains\)" <dsha@jetbrains.com> wrote:

>Predrag,
>
>this is a known problem. It is reproducible only with certain fonts.
>We suspect that the VS core editor cannot handle bolded items correctly.
>The workaround is either to uncheck bold or use those fonts which avoid this
>problem
>(one of the is Courier New).

Visual Studio without ReSharper handles bold font (Lucida Console) just fine. If
I, for example, change standard keyword display, to include bold, cursor
positioning is still OK.

0
Comment actions Permalink

Yes, you are right. But internally there is a difference in how VS editor
handles coloring of various display items.
As you may notice, in Tools->Options->Fonts and Colors 'bold' checkbox is
disabled for certain display items e.g.
"Compiler Error". I think this is done intentionally because editor cannot
handle bold in such items properly.
Unfortunately, we have no further information about this problem.

"Predrag Stanar" <reply.to.usenet@nospam.com> wrote in message
news:b1je60p92955csd2qjfm1aej11n2fksj2n@4ax.com...

"Dmitry Shaporenkov \(JetBrains\)" <dsha@jetbrains.com> wrote:

>

>Predrag,
>
>this is a known problem. It is reproducible only with certain fonts.
>We suspect that the VS core editor cannot handle bolded items correctly.
>The workaround is either to uncheck bold or use those fonts which avoid

this

>problem
>(one of the is Courier New).

>

Visual Studio without ReSharper handles bold font (Lucida Console) just

fine. If

I, for example, change standard keyword display, to include bold, cursor
positioning is still OK.



0
Comment actions Permalink

"Dmitry Shaporenkov \(JetBrains\)" <dsha@jetbrains.com> wrote:

>Yes, you are right. But internally there is a difference in how VS editor
>handles coloring of various display items.
>As you may notice, in Tools->Options->Fonts and Colors 'bold' checkbox is
>disabled for certain display items e.g.
>"Compiler Error". I think this is done intentionally because editor cannot
>handle bold in such items properly.
>Unfortunately, we have no further information about this problem.

Sorry for repeating what's already being mentioned in an older thread. It's not
a big deal anyway, as long as future ReSharper builds don't insist on resetting
things back to bold.

0

Please sign in to leave a comment.