Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
2.0
-
None
-
all flatforms
Description
config has following:
<fonts>
<font metrics-url="classpath:///fonts/arialuni.xml" kerning="yes" embed-url="classpath:///fonts/arialuni.ttf">
<font-triplet name="arialuni" style="normal" weight="normal"/>
</font>
Exception on FontCache.java (line 335)
File fontFile = new File(fontUri);
My proposal:
Instead:
File fontFile = new File(fontUri);
long lastModified = fontFile.lastModified();
cachedFontFile = new CachedFontFile(lastModified);
Write:
long lastModified = 0L;
if(fontUri.getScheme().equals("file"))
cachedFontFile = new CachedFontFile(lastModified);
This code is working.
Attachments
Issue Links
- duplicates
-
FOP-2532 [PATCH] FontCache throws java.lang.IllegalArgumentException: URI scheme is not "file" for jar embedded fonts
- Closed