incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Alexandre Ferreira Leite (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ODFTOOLKIT-349) Setting red color gets the text stricken
Date Tue, 03 Dec 2013 15:19:35 GMT

    [ https://issues.apache.org/jira/browse/ODFTOOLKIT-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837782#comment-13837782
] 

Leonardo Alexandre Ferreira Leite commented on ODFTOOLKIT-349:
--------------------------------------------------------------

Today i investigated this behavior using the repo version.
(by the way, maven run well without issues :)
Now the current behavior is no more related to strike,
but the text simply does not appear.

i found out that the font returned by  

Font font = cell.getFont(); 

has size equals zero!
Therefore a possible workaround is

		Font font = cell.getFont();
		font.setColor(Color.RED);
		font.setSize(10);
		cell.setFont(font);

but i think that maybe the returned font should inherit the size from somewhere. right?

> Setting red color gets the text stricken
> ----------------------------------------
>
>                 Key: ODFTOOLKIT-349
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-349
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: 0.7-incubating
>         Environment: Ubuntu 12.05, Open JDK 6
>            Reporter: Leonardo Alexandre Ferreira Leite
>            Priority: Minor
>
> The following excerpt should make the font color become red, but the font color gets
black (as it already was) and the text get stricken! 
>  Cell cell = table.getCellByPosition(col+l);
>  Font font = cell.getFont();
>  font.setColor(Color.RED);
>  cell.setFont(font);



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message