You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "MOHD (JIRA)" <ji...@apache.org> on 2014/02/11 11:23:19 UTC
[jira] [Commented] (FOP-2341) Infinite loop when "smaller" used
after error on inherited font-size
[ https://issues.apache.org/jira/browse/FOP-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897705#comment-13897705 ]
MOHD commented on FOP-2341:
---------------------------
font-size value will be zero when units are not in INCH, CM, MM, POINT, PICA and MPT.
Class file: FixedLength.java
…}else if (!FixedLength.MPT.equals(unit)) {
dvalue = 0;
log.error("Unknown length unit '" + unit + "'");
}
}
return (int)dvalue;
I have added mmpt also in supported values that time it is not going in infinite loop.
Please let me know if anyone has generic solution for this.
> Infinite loop when "smaller" used after error on inherited font-size
> --------------------------------------------------------------------
>
> Key: FOP-2341
> URL: https://issues.apache.org/jira/browse/FOP-2341
> Project: Fop
> Issue Type: Bug
> Components: general
> Affects Versions: 0.95, trunk
> Reporter: MOHD
> Priority: Critical
> Labels: font-size, infinite-loop, smaller
> Attachments: _test.fo
>
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> My local FOP engine is hang when below scenario was occur.
> <fo:block font-style="normal" font-size="10mmpt" role="html:div">
> <fo:inline baseline-shift="super" font-size="smaller" role="html:sup">th</fo:inline>of each month.
> </fo:block>
> Please give some suggestion if any one has solution for this issue.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)