X-1.0rc3: IDE: Cursor is misplaced in IDE when font size is changed

Bug #945641 reported by Harry Parker
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

Found in Sikuli r930 on for Mac 10.6 and on Sikuli X 1.0rc3 on Windows 7.

This behavior found in both Windows 7 (64 bit) and Mac OS 10.6.8 (64 bit).

To recreate: Change font size in text editing preferences. Then try to click in code editor and add or delete text. Note that the text is not inserted or deleted at the cursor location.

Looks like the cursor moving logic isn't using the updated font size.

Tags: editor
RaiMan (raimund-hocke)
summary: - Cursor is misplaced in IDE when font size is changed
+ X-1.0rc3: IDE: Cursor is misplaced in IDE when font size is changed
Revision history for this message
RaiMan (raimund-hocke) wrote :

I cannot reproduce this problem on my Mac 10.7.3 with the latest build (r931).
Everything works fine.
The only weakness I found: going up/down one line directly after changing font size does not position correctly (it positions according the latest pixel position of the cursor).
But after this first move all moves/inserts/delete work as expected.

I will have a look later on my Win7.

Revision history for this message
celesta (chaitra-s19thmay) wrote :

@ Raiman,

even i could able to reproduce the same issue on windows xp,
the If Fonts Size setting (Preferences -> Text Editing) is changed to a value except 18/19, the size and position of Space and Characters become strange.

Revision history for this message
RaiMan (raimund-hocke) wrote :

Thanks for your feedback.

I accidentally found, that you are right, after changing the font size and directly afterwards pasting some snippet from one of the questions here to the IDE.

Additionally It seems that in bigger fonts some special characters (e.g. [ ] brackets) are slightly misplaced.

It seems, that a workaround is (at least for the extra spaces and sales deletes) is to restart the IDE directly after changing the font size.

Changed in sikuli:
status: New → Confirmed
RaiMan (raimund-hocke)
Changed in sikuli:
status: Confirmed → In Progress
assignee: nobody → RaiMan (raimund-hocke)
RaiMan (raimund-hocke)
tags: added: editor
removed: ide
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
milestone: none → x1.0
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → High
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.