[ 
https://issues.apache.org/jira/browse/PIVOT-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sandro Martini updated PIVOT-797:
---------------------------------

    Affects Version/s: 2.0
        Fix Version/s: 2.1
    
> Bold spans in TextPane result in bad word breaking
> --------------------------------------------------
>
>                 Key: PIVOT-797
>                 URL: https://issues.apache.org/jira/browse/PIVOT-797
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0, 2.0.1
>            Reporter: Bill van Melle
>            Priority: Minor
>              Labels: text
>             Fix For: 2.1
>
>
> If you have a mixture of plain and bold spans of text in a paragraph, the 
> bold spans don't behave properly with respect to line breaking -- the system 
> will happily break a line in the middle of a bold word (though apparently 
> this happens only for the first word in a bold span), and in particularly 
> perverse cases will place the first character of a bold word at the start of 
> a line and then break immediately after it.
> Here's a test case I made:
> <Window maximized="true" 
>   xmlns:bxml="http://pivot.apache.org/bxml"; 
>   xmlns="org.apache.pivot.wtk">
>   <TextPane>
>     <Document xmlns="org.apache.pivot.wtk.text">
>       <Paragraph>
>         <Span>This paragraph has some words in </Span>
>         <Span font="{bold:true}">bold</Span>
>         <Span>, and if you </Span>
>         <Span font="{bold:true}">reshape the window</Span>
>         <Span> to certain widths, they will break poorly.</Span>
>       </Paragraph>
>     </Document>
>   </TextPane>
> </Window>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to