[
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 edited comment on ODFTOOLKIT-349 at 12/3/13
3:19 PM:
---------------------------------------------------------------------------------------
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?
was (Author: leofl):
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)