You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2011/04/06 14:36:05 UTC

[jira] [Updated] (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 ]

Sandro Martini updated PIVOT-727:
---------------------------------

        Fix Version/s: 2.0.1
           Issue Type: Improvement  (was: Bug)
    Affects Version/s:     (was: 2.0.1)

> 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
>            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