Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 521002

Summary: Tabs with fixed width fonts in editors not aligning.
Product: [Eclipse Project] JDT Reporter: Paul Cuttler <paulcuttler>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard: stalebug
Attachments:
Description Flags
Andale Mono 10 misaligned tabs none

Description Paul Cuttler CLA 2017-08-16 00:26:28 EDT
Created attachment 269861 [details]
Andale Mono 10 misaligned tabs

Our code uses hard tabs of size 4. In 4.7 (Oxygen) it is not aligning correctly using most of the fixed-width fonts. Only PT Mono sizes 10, 20 or 30 work - any other sizes don't work. Courier, Courier New, Andale Mono, Osaka don't work at all. Our code aligns properly in previous versions of Eclipse, up to and including Neon. It also works on bitbucket, and other basic text editors.

It seems the fixed width fonts are actually using variable widths.

This is some sample code to demonstrate (it doesn't display properly here because the tabs are width 8 here):

	Connection database		= db.getConnection();
	organisationId			= Organisation.get(database)
	organisationMemberId	= Organisation.getMember(organisationId);
	user					= new User(organisationMemberId);


regards,

Paul.
Comment 1 Paul Cuttler CLA 2017-08-16 00:32:43 EDT
I think this bug might be related where the Display view is having problems too - https://bugs.eclipse.org/bugs/show_bug.cgi?id=519080
Comment 2 Eclipse Genie CLA 2020-03-03 18:50:02 EST
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.