Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

TextBlock Run background highlighting with hyphens

$
0
0

While trying to figure out strange visual behavior coming from a company's control library, I was led to this SO question:

http://stackoverflow.com/questions/19422308/inline-run-objects-not-completely-highlighted-when-a-hyphen-is-present

It seems that hyphens/dashes create a small, but noticeable break in highlighting for TextBlocks using particular fonts. I'm experiencing it with a proprietary font, but according to the link it can be reproduced with Helvetica. There is a workaround mentioned in the link, involving another TextBlock embedded in the TextBlock, but that's not really a feasible solution for me because the TextBlocks are abstracted away by the control I'm using and not accessible directly without tons of template overriding.

Am I correct in thinking this is a WPF bug? If so, can/will it ever be fixed?


Viewing all articles
Browse latest Browse all 18858

Trending Articles