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: Bug
Components: wtk
Affects Versions: 2.0, 2.0.1
Reporter: Bill van Melle
Priority: Minor
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