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 "J Frank (Jira)" <ji...@apache.org> on 2022/05/18 11:54:00 UTC
[jira] [Commented] (FOP-3068) NPE in FontInfoFinder for .ttc fonts
[ https://issues.apache.org/jira/browse/FOP-3068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17538770#comment-17538770 ]
J Frank commented on FOP-3068:
------------------------------
Can you upload fop.xconf and sample fo?
> NPE in FontInfoFinder for .ttc fonts
> -------------------------------------
>
> Key: FOP-3068
> URL: https://issues.apache.org/jira/browse/FOP-3068
> Project: FOP
> Issue Type: Bug
> Components: font/opentype
> Affects Versions: 2.7
> Reporter: Stephan Wienczny
> Priority: Critical
>
> When running FontInfoFinder::find on NotoSansCJK-Regular.ttc or NotoSerifCJK-Regular.ttc this causes an NPE in line 219
> {code:java}
> for (String fontName : ttcNames) { {code}
> because ttcNames is null.
> TTFFile::getTTCnames may return null for invalid files. This case should be handled in FontInfoFinder.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)