Opened 18 years ago
Closed 17 years ago
#750 closed bug (fixed)
[Desk Calculator] text overlapping
Reported by: | diver | Owned by: | jackburton |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Interface Kit | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
*1. If you type several letters in Desk Calculator, then back to beginng of textview and type another (e.g. in upper register) several letters and repeat this several times, soon you will see that some letters overlapping another.
2*. rm /boot/home/config/settings/DeskCalc_settings type "11111", now you should see that ibeam cursor in the beginng of textview will not be erased and there are 2 cursors...
Attachments (2)
Change History (7)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Component: | General → User Interface/InterfaceKit |
---|---|
Description: | modified (diff) |
Platform: | → All |
Status: | new → assigned |
follow-up: 4 comment:3 by , 18 years ago
Looks like there's a rounding issue in the text width calculation. Disabling the use of WidthBuffer fixes the problem, but I suspect it's related to another thing, as _BWidthBuffer_::StringWidth() is simply less accurate in its calculation and isn't subject to the same rounding as the values returned by BView::StringWidth(). Looking into it...
comment:4 by , 18 years ago
Replying to jackburton:
Looks like there's a rounding issue in the text width calculation. Disabling the use of WidthBuffer fixes the problem, but I suspect it's related to another thing, as _BWidthBuffer_::StringWidth() is simply less accurate in its calculation and isn't subject to the same rounding as the values returned by BView::StringWidth(). Looking into it...
Apparently I was wrong. The problem is that the app_server only supports B_STRING_SPACING and nothing else. This spacing mode is not compatible with how _BWidthBuffer_ works. I've disabled its use in hrev19004 within BTextView and this problem is gone. I'll keep this bug opened as a reminder, though.
Also i think Desk Calculator is a good test case for BTextView as you could see various problems resizing deskcalc, you could even see sometimes semitransparent text...