You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Noel Grandin (JIRA)" <ji...@apache.org> on 2011/04/13 13:48:05 UTC
[jira] [Resolved] (PIVOT-727) Text of different sizes in a TextPane
should have aligned baselines
[ https://issues.apache.org/jira/browse/PIVOT-727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noel Grandin resolved PIVOT-727.
--------------------------------
Resolution: Fixed
Assignee: Noel Grandin
> Text of different sizes in a TextPane should have aligned baselines
> -------------------------------------------------------------------
>
> Key: PIVOT-727
> URL: https://issues.apache.org/jira/browse/PIVOT-727
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Affects Versions: 2.0
> Reporter: Bill van Melle
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.1
>
>
> When you have spans of different font sizes in a TextPane, it looks to me like all the text is bottom-aligned, which generally looks bad. It would be much nicer if the baselines were aligned. Here's a deliberately exaggerated example:
> <Window maximized="true" xmlns:bxml="http://pivot.apache.org/bxml"
> xmlns="org.apache.pivot.wtk">
> <TextPane>
> <Document xmlns="org.apache.pivot.wtk.text">
> <Paragraph backgroundColor="yellow">
> <Span font="{size:48}">
> <TextNode text="Label:" />
> </Span>
> <Span font="{size:24}">
> <TextNode text=" some random text " />
> </Span>
> <Span font="{size:12}">
> <TextNode text="(much smaller)" />
> </Span>
> </Paragraph>
> </Document>
> </TextPane>
> </Window>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira