[jira] [Commented] (FOP-2494) Unable to use Ubuntu Mono Font

2015-08-01 Thread Robert Meyer (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14650397#comment-14650397
 ] 

Robert Meyer commented on FOP-2494:
---

Fixed in http://svn.apache.org/viewvc?view=revision&revision=1693719

> Unable to use Ubuntu Mono Font
> --
>
> Key: FOP-2494
> URL: https://issues.apache.org/jira/browse/FOP-2494
> Project: FOP
>  Issue Type: Bug
>  Components: font/opentype
>Affects Versions: 2.0
> Environment: Ubuntu 14.04, Java 8u45
>Reporter: Harshad
>Assignee: Robert Meyer
> Attachments: output.pdf, patch.diff
>
>
> I want to use the Ubuntu Mono font, which is installed on my system. But FOP 
> throws an exception when it is auto-detecting the fonts:
> {code}
> Unable to load font file: 
> file:/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf
> java.lang.ArrayIndexOutOfBoundsException: 1047
>
>   at org.apache.fop.fonts.truetype.OpenFont.readPostScript(OpenFont.java:1320)
>   at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:736)
>   at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
>   at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
>   at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:124)
>   at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:108)
>   at 
> org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:254)
>   at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63)
>   at 
> org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:97)
>   at org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
>   at 
> org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
>   at 
> org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
>   at 
> org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
>   at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
>   at 
> org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
>   at org.apache.fop.area.RenderPagesModel.(RenderPagesModel.java:75)
>   at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
>   at org.apache.fop.area.AreaTreeHandler.(AreaTreeHandler.java:105)
>   at 
> org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)
>   at org.apache.fop.fo.FOTreeBuilder.(FOTreeBuilder.java:107)
>   at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
>   at org.apache.fop.apps.Fop.(Fop.java:78)
>   at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179)
>   at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:240)
> {code}
> The same exception is thrown for other variants of the font (bold, italic, 
> etc).
> Note that this font can be downloaded freely from http://font.ubuntu.com/
> The latest version of the font is 0.80, and that is what I have installed on 
> my system.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2494) Unable to use Ubuntu Mono Font

2015-08-01 Thread Robert Meyer (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Meyer updated FOP-2494:
--
Attachment: output.pdf
patch.diff

I've attached the patch and will apply this shortly. I've also attached a 
document showing all the ubuntu fonts embedded in a document to show they're 
working.

> Unable to use Ubuntu Mono Font
> --
>
> Key: FOP-2494
> URL: https://issues.apache.org/jira/browse/FOP-2494
> Project: FOP
>  Issue Type: Bug
>  Components: font/opentype
>Affects Versions: 2.0
> Environment: Ubuntu 14.04, Java 8u45
>Reporter: Harshad
>Assignee: Robert Meyer
> Attachments: output.pdf, patch.diff
>
>
> I want to use the Ubuntu Mono font, which is installed on my system. But FOP 
> throws an exception when it is auto-detecting the fonts:
> {code}
> Unable to load font file: 
> file:/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf
> java.lang.ArrayIndexOutOfBoundsException: 1047
>
>   at org.apache.fop.fonts.truetype.OpenFont.readPostScript(OpenFont.java:1320)
>   at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:736)
>   at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
>   at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
>   at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:124)
>   at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:108)
>   at 
> org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:254)
>   at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63)
>   at 
> org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:97)
>   at org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
>   at 
> org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
>   at 
> org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
>   at 
> org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
>   at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
>   at 
> org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
>   at org.apache.fop.area.RenderPagesModel.(RenderPagesModel.java:75)
>   at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
>   at org.apache.fop.area.AreaTreeHandler.(AreaTreeHandler.java:105)
>   at 
> org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)
>   at org.apache.fop.fo.FOTreeBuilder.(FOTreeBuilder.java:107)
>   at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
>   at org.apache.fop.apps.Fop.(Fop.java:78)
>   at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179)
>   at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:240)
> {code}
> The same exception is thrown for other variants of the font (bold, italic, 
> etc).
> Note that this font can be downloaded freely from http://font.ubuntu.com/
> The latest version of the font is 0.80, and that is what I have installed on 
> my system.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


buildbot success in ASF Buildbot on fop-trunk

2015-08-01 Thread buildbot
The Buildbot has detected a restored build on builder fop-trunk while building 
ASF Buildbot. Full details are available at:
http://ci.apache.org/builders/fop-trunk/builds/24

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: orcus_ubuntu

Build Reason: The Nightly scheduler named 'fopNightly' triggered this build
Build Source Stamp: [branch xmlgraphics/fop/trunk] HEAD
Blamelist: 

Build succeeded!

Sincerely,
 -The Buildbot