You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/02/08 14:02:28 UTC

[jira] Commented: (PIVOT-405) Can not set the font of TextArea

    [ https://issues.apache.org/jira/browse/PIVOT-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830928#action_12830928 ] 

Greg Brown commented on PIVOT-405:
----------------------------------

Either of those approaches should work. Note that, if you set the font using the theme, you must do so before any components are created. 

Can you provide a sample application that reproduces the issue?


> Can not set the font of TextArea
> --------------------------------
>
>                 Key: PIVOT-405
>                 URL: https://issues.apache.org/jira/browse/PIVOT-405
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-wtkx
>    Affects Versions: 1.4
>            Reporter: alfred zhang
>
> I use two ways to set the font of TextArea, but neither dose work.
> 1. Theme theme = Theme.getTheme();
>      theme.setFont(new Font("宋体",Font.PLAIN,16));
> 2.<TextArea wtkx:id="textArea"
> editable="false"
> styles="{wrapText:false, font:'Courier 50'}"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.