-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: font/unqualified
-
Environment:all flatforms
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.
- duplicates
-
FOP-2532 [PATCH] FontCache throws java.lang.IllegalArgumentException: URI scheme is not "file" for jar embedded fonts
-
- Closed
-