Community
Participate
Working Groups
StyledText should support multiple fonts. This means it would have to support fonts of varying heights.
See also bug 64240.
Post 3.1
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).
*** Bug 64240 has been marked as a duplicate of this bug. ***
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.
I think the bug ID given in comment #5 was supposed to be bug 54426.
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.
*** Bug 172518 has been marked as a duplicate of this bug. ***
(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 ?
Sorry, ignore my comment. I just read your advice in the dupe.