Bug 47872 - MalformedURLException while using FontLoader#loadFont(File, ...)
Summary: MalformedURLException while using FontLoader#loadFont(File, ...)
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fonts (show other bugs)
Version: trunk
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 09:23 UTC by Alexander Kiel
Modified: 2012-04-01 06:58 UTC (History)
0 users



Attachments
Failing test. (1.39 KB, text/x-java)
2009-09-18 09:23 UTC, Alexander Kiel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kiel 2009-09-18 09:23:30 UTC
Created attachment 24294 [details]
Failing test.

The attached test fails with a MalformedURLException: no protocol:
/home/akiel/coding/libs/fop-trunk/test/resources/fonts/DejaVuLGCSerif.ttf.

The problem is in line 90 of FontLoader:

return loadFont(fontFile.getAbsolutePath(), subFontName,

where the getAbsulutePath() isn't an URI.

I markt this bug as minor, because the loadFont(File, ...) method isn't used in
FOP. It will be properly ok to remove it.
Comment 1 Max Berger 2009-09-24 03:19:03 UTC
http://svn.apache.org/viewvc?rev=818424&view=rev

Applied, fixed, thanks!

BTW: Having non-working functions is always bad, even if they are unused.  Unused functions could be deprecated (or removed if they are non-public), if they are really not used anymore.
Comment 2 Glenn Adams 2012-04-01 06:58:00 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed