Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 227296 - [PATCH] Syntax Color Setup Preview should use fixed width font
Summary: [PATCH] Syntax Color Setup Preview should use fixed width font
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 0.95   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 06:31 EDT by Alex Panchenko CLA
Modified: 2010-06-11 07:15 EDT (History)
2 users (show)

See Also:


Attachments
patch (5.22 KB, patch)
2008-04-16 06:32 EDT, Alex Panchenko CLA
alex.panchenko: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Panchenko CLA 2008-04-16 06:31:43 EDT
At the moment preview is displayed with default (variable width) font and source code looks strange since usually code editors use fixed width font.

The proposed solution is based on the 
public String getFontPropertyPreferenceKey() { return JFaceResources.TEXT_FONT; }
method added to the ScriptSourceViewerConfiguration.

This method should be overridden for specific scripting languages when the editor font setup will be added for that language.

Legal Message: I, Alex Panchenko, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer (xored software, Inc.) to make this contribution under the EPL.
Comment 1 Alex Panchenko CLA 2008-04-16 06:32:46 EDT
Created attachment 96236 [details]
patch
Comment 2 Andrei Sobolev CLA 2008-04-17 07:22:46 EDT
Patch Applied.
Comment 3 Andrey Platov CLA 2008-05-26 02:48:11 EDT
bulk change: fixed in 0.95