开发者

bold and normal font rendering

It is observed in some fonts sat Verdana, that the rendering for bold and normal text does not occupy the same width for a given text. In my application i am making use of one such font ,and there is UI with list and highlighted item. for highlighted item the font is same with bold attribute ,because of above mentioned font issue the text appears to move(enlarge and occupy开发者_运维知识库 more space )horizontally when the list is scrolled. I can use bold font with one less in font size which seem ok but not perfect Is there any corrective measure to resolve this?


What you describe is the default attribute of most proportional fonts. If having the string width increased seems ugly, try using other visual methods to draw attention to the selected item, such as changing the background color.


You could make the list items wide enough to accommodate size increase when it becomes bold.

If the highlight has to be bold, most likely your only option is using a proportional font (doesn't need to be courier, you may find some sans-serif proportional fonts acceptable).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜