Character width is measured wrong in Linux

RESOLVED FIXED in 0.5.1

Status

Skywriter
Editor
P1
major
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: pcwalton, Assigned: pcwalton)

Tracking

Trunk
0.5.1
All
Linux

Details

(Assignee)

Description

8 years ago
The measured character width is way too high in Linux, causing the cursor to be out of sync with the text and making the editor unusable.
(Assignee)

Comment 1

8 years ago
The problem was that charWidth didn't specify the font before measuring it. It just so happened that Linux usually has different font widths for the gutter and the editor. Fixed by adding a getCharacterWidth() method to the canvas mixin that requires the font to be specified.

[needs-pull] Changeset f9dd8928a9c9 @ http://bitbucket.org/pcwalton/bespinclient/
Whiteboard: needs-pull

Comment 2

8 years ago
This is on tip.
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.5.1
Since this bug has been resolved, I am clearing the whiteboard and removing the 'need-pull' tag.

If you feel this was in error, feel free to put it back. (However, please provide an explanation for doing so.)

[This was a mass comment. To filter bugmail, use the term 'bespin-remove-needs-pull'.]
Whiteboard: needs-pull
You need to log in before you can comment on or make changes to this bug.