Bug 323843 - Toggling on block selection mode causes font height to change
Summary: Toggling on block selection mode causes font height to change
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All Mac OS X
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 11:16 EDT by Timothy Mowlem CLA
Modified: 2021-01-29 06:06 EST (History)
4 users (show)

See Also:


Attachments
Screencast (348.99 KB, image/gif)
2021-01-29 06:05 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Mowlem CLA 2010-08-27 11:16:44 EDT
Build Identifier: 3.7M1 - 3.6.0 I20100608-0911

Running 3.7M1 on MacOSX when I click the toolbar button to toggle on block selection mode the font height or leading seems to change even though the font is the same for "text font" and "block selection text editor font", both Consolas 14 pt.

Interestingly the preview box in the Font pref pane in Preferences also shows this extra spacing out.

Reproducible: Always

Steps to Reproduce:
1. Open Eclipse
2. Open a java editor
3. Toggle block selection mode on
Comment 1 Timothy Mowlem CLA 2010-08-27 11:21:48 EDT
If i change to Droid Sans Mono 14 pt then I don't see the apparent height adjustment so looks like it is font specific.
Comment 2 Markus Keller CLA 2010-08-27 12:43:23 EDT
SWT implements the drawing in StyledText.
Comment 3 Scott Kovatch CLA 2010-08-27 13:02:40 EDT
I'm not seeing this in the top-of-tree of SWT. I set up Consolas 14 as both the plain and block-selection font and the font isn't changing. StyledText.setFont() isn't being called, either. I'll get 3.7m1 just to be sure.

Felipe, can you give it a try?
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:17:37 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 5 Lars Vogel CLA 2021-01-29 06:05:50 EST
Created attachment 285413 [details]
Screencast

Screencast demonstrating the issue.

To reproduce:

Use Ctrl+ to increase font size
Select Block mode -> font size changes
Turn block mode off -> font size changes back