Bug 83405 - Support multiple fonts in StyledText
Summary: Support multiple fonts in StyledText
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 enhancement with 1 vote (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 64240 172518 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-21 11:12 EST by Veronika Irvine CLA
Modified: 2007-02-02 03:00 EST (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Veronika Irvine CLA 2005-01-21 11:12:08 EST
StyledText should support multiple fonts.  This means it would have to support 
fonts of varying heights.
Comment 1 Florian Priester CLA 2005-03-06 16:53:59 EST
See also bug 64240.
Comment 2 Steve Northover CLA 2005-04-04 15:22:13 EDT
Post 3.1
Comment 3 Marshall Culpepper CLA 2005-04-25 16:03:16 EDT
Is there any way this bug will be addressed before the 3.1 final release? We are
dealing with a situation where we need multiple fonts within the same text
widget (some data requires monospace because of it's tabular nature).
Comment 4 Felipe Heidrich CLA 2005-04-25 16:40:40 EDT
*** Bug 64240 has been marked as a duplicate of this bug. ***
Comment 5 Felipe Heidrich CLA 2005-04-25 16:45:33 EDT
Sorry, this item won't make it for 3.1. I don't know what situation you are 
dealing with but the information in bug 54526 might help.
Comment 6 Florian Priester CLA 2005-06-04 08:40:49 EDT
I think the bug ID given in comment #5 was supposed to be bug 54426.
Comment 7 Felipe Heidrich CLA 2005-11-22 14:40:21 EST
Fixed in Head > 20051122
we changed StyleRange to be a subclass of TextStyle, the new fields are 
Font font;
int rise;
GlyphMetrics metrics;

StyledText still don't have javadoc for these new features but TextStyle and TextLayout are ready (java doc + snippets).

The code is still very new and we are aware of some redraw problems, any help testing/fixing is welcome. Soon I'll add javadoc and snippets to the SWT homepage.
Comment 8 Grant Gayed CLA 2007-02-01 11:53:39 EST
*** Bug 172518 has been marked as a duplicate of this bug. ***
Comment 9 Yves Harms CLA 2007-02-02 02:57:05 EST
(In reply to comment #8)
> *** Bug 172518 has been marked as a duplicate of this bug. ***
> 

Grant,
as far as I understand this bug is meant to provide support support for different font heights. What I had in mind for 172518 was support for Arial, Helvetica etc ...
Or did I miss something in the api ?
Is there any secret way in StyledText to apply ARIAL for e.g. offset 10-20 ?
Comment 10 Yves Harms CLA 2007-02-02 03:00:06 EST
Sorry, ignore my comment.
I just read your advice in the dupe.