Re: Font Symbol doesn't work
According to FOP developers [1], when rendering SVGs, FOP uses batik library - which doesn't use FOP's font configuration, using system fonts instead. I am using a work-around I described in that thread [1] to get SVGs to use proper fonts; you can also pre-render them in your vector editor (e.g., in Inkscape: Path -> Object to path). [1] http://permalink.gmane.org/gmane.text.xml.fop.user/34984 Regards, Alexey. On Thursday, December 05, 2013 07:45:29 am markus.sticker.e...@zf.com wrote: > Hello, > > I tried to use (for PDF) a SVG which is using the font “symbol”. > (I know the font is a BASE14 font and is embedded in the Adobe Reader. > So I tried with symbol.ttf in the config and also without. I also cleaned > the Font Cache) > > I also have take a look in to the sources and the desired glyph are > described. So this is confusing me, because they got width but are not in > the font ? > > Expected: formula.png > I got: formula_fail.png > -- FOP message > -- [WARN] > DefaultEventListener - glyphNotAvailable - Glyph "(" (0x28, parenleft) not > available in font "SymbolMT". [WARN] DefaultEventListener - > glyphNotAvailable - Glyph ")" (0x29, parenright) not available in font > "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "ò" > (0xf2, ograve) not available in font "SymbolMT". [WARN] > DefaultEventListener - glyphNotAvailable - Glyph "+" (0x2b, plus) not > available in font "SymbolMT". [WARN] DefaultEventListener - > glyphNotAvailable - Glyph "=" (0x3d, equal) not available in font > "SymbolMT". -- > FOP message -- > Symbol.java > > è width[0x2b] = 549; > > è width[0xf2] = 274; > > è …. > > So want’s wrong? > Thanks for your help in advance > Best regards > > Markus - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
AW: Font Symbol doesn't work
Hi Martin, thanks for your answer. But that's wrong. In the SVG is already written "Symbol". And sorry I forgot to attach the svg. Best regards Markus Von: Martin Norbäck Olivers [mailto:martin.norback.oliv...@soleilit.se] Gesendet: Donnerstag, 5. Dezember 2013 16:53 An: fop-users@xmlgraphics.apache.org Betreff: Re: Font Symbol doesn't work It looks like the SVG uses the font SymbolMT which is not the same as Symbol. SVG is a text format so you should be able to open the SVG in a text editor and change the font there. Or use your favorite SVG editor to do it. Med vänliga hälsningar, Martin Norbäck Olivers -- Konsult, Soleil http://www.soleilit.se/ tel: +46 (0)703 - 22 70 12 Lagergrens Gata 2 652 26 KARLSTAD From: "markus.sticker.e...@zf.com<mailto:markus.sticker.e...@zf.com>" mailto:markus.sticker.e...@zf.com>> Reply-To: "fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>" mailto:fop-users@xmlgraphics.apache.org>> Date: torsdag 5 december 2013 16:45 To: "fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>" mailto:fop-users@xmlgraphics.apache.org>> Subject: Font Symbol doesn't work Hello, I tried to use (for PDF) a SVG which is using the font "symbol". (I know the font is a BASE14 font and is embedded in the Adobe Reader. So I tried with symbol.ttf in the config and also without. I also cleaned the Font Cache) I also have take a look in to the sources and the desired glyph are described. So this is confusing me, because they got width but are not in the font ? Expected: formula.png I got: formula_fail.png -- FOP message -- [WARN] DefaultEventListener - glyphNotAvailable - Glyph "(" (0x28, parenleft) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph ")" (0x29, parenright) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "ò" (0xf2, ograve) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "+" (0x2b, plus) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "=" (0x3d, equal) not available in font "SymbolMT". -- FOP message -- Symbol.java ? width[0x2b] = 549; ? width[0xf2] = 274; ? So want's wrong? Thanks for your help in advance Best regards Markus formula.svg Description: formula.svg - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Font Symbol doesn't work
It looks like the SVG uses the font SymbolMT which is not the same as Symbol. SVG is a text format so you should be able to open the SVG in a text editor and change the font there. Or use your favorite SVG editor to do it. Med vänliga hälsningar, Martin Norbäck Olivers -- Konsult, Soleil http://www.soleilit.se/ tel: +46 (0)703 - 22 70 12 Lagergrens Gata 2 652 26 KARLSTAD From: "markus.sticker.e...@zf.com<mailto:markus.sticker.e...@zf.com>" mailto:markus.sticker.e...@zf.com>> Reply-To: "fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>" mailto:fop-users@xmlgraphics.apache.org>> Date: torsdag 5 december 2013 16:45 To: "fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>" mailto:fop-users@xmlgraphics.apache.org>> Subject: Font Symbol doesn't work Hello, I tried to use (for PDF) a SVG which is using the font "symbol". (I know the font is a BASE14 font and is embedded in the Adobe Reader. So I tried with symbol.ttf in the config and also without. I also cleaned the Font Cache) I also have take a look in to the sources and the desired glyph are described. So this is confusing me, because they got width but are not in the font ? Expected: formula.png I got: formula_fail.png -- FOP message -- [WARN] DefaultEventListener - glyphNotAvailable - Glyph "(" (0x28, parenleft) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph ")" (0x29, parenright) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "ò" (0xf2, ograve) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "+" (0x2b, plus) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "=" (0x3d, equal) not available in font "SymbolMT". -- FOP message -- Symbol.java èwidth[0x2b] = 549; èwidth[0xf2] = 274; è So want's wrong? Thanks for your help in advance Best regards Markus
Font Symbol doesn't work
Hello, I tried to use (for PDF) a SVG which is using the font “symbol”. (I know the font is a BASE14 font and is embedded in the Adobe Reader. So I tried with symbol.ttf in the config and also without. I also cleaned the Font Cache) I also have take a look in to the sources and the desired glyph are described. So this is confusing me, because they got width but are not in the font ? Expected: formula.png I got: formula_fail.png -- FOP message -- [WARN] DefaultEventListener - glyphNotAvailable - Glyph "(" (0x28, parenleft) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph ")" (0x29, parenright) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "ò" (0xf2, ograve) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "+" (0x2b, plus) not available in font "SymbolMT". [WARN] DefaultEventListener - glyphNotAvailable - Glyph "=" (0x3d, equal) not available in font "SymbolMT". -- FOP message -- Symbol.java è width[0x2b] = 549; è width[0xf2] = 274; è …. So want’s wrong? Thanks for your help in advance Best regards Markus <><> - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Font Symbol
Andreas L Delmelle wrote: A little later than promised, but here goes: http://svn.apache.org/viewvc?rev=438251&view=rev As Chris suggested, the notifyFontReplacement() method has been altered to show which triplet will be used instead. Note: I'm not sure if this suffices. If the default is used, the message will now read "... replacing with 'any,normal,400'." Is that enough? Thanks Andreas - I'm happy with that :) Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Symbol
For me is perfect, because this way we know what was used in each time a font isn't found. Gratz, Luis Ferro Andreas L Delmelle wrote: > > On Aug 25, 2006, at 01:04, Andreas L Delmelle wrote: > >> >> Anyway, I'll give other devs a chance to chime in before I start >> fiddling with it. If no objections arise, I'll probably commit this >> small change during the weekend. > > A little later than promised, but here goes: > http://svn.apache.org/viewvc?rev=438251&view=rev > > As Chris suggested, the notifyFontReplacement() method has been > altered to show which triplet will be used instead. > Note: I'm not sure if this suffices. If the default is used, the > message will now read > "... replacing with 'any,normal,400'." Is that enough? > > > Later, > > Andreas > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Font-Symbol-tf2161582.html#a6048927 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Symbol
On Aug 25, 2006, at 01:04, Andreas L Delmelle wrote: Anyway, I'll give other devs a chance to chime in before I start fiddling with it. If no objections arise, I'll probably commit this small change during the weekend. A little later than promised, but here goes: http://svn.apache.org/viewvc?rev=438251&view=rev As Chris suggested, the notifyFontReplacement() method has been altered to show which triplet will be used instead. Note: I'm not sure if this suffices. If the default is used, the message will now read "... replacing with 'any,normal,400'." Is that enough? Later, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Symbol
On 25.08.2006 11:53:28 Chris Bowditch wrote: > Andreas L Delmelle wrote: > > > On Aug 25, 2006, at 00:11, Luis Ferro wrote: > > > > > > > It doesn't seem too difficult to alter FontInfo.java to make it first > > look for a font with the same name/weight, but with default font-style. > > > > Anyway, I'll give other devs a chance to chime in before I start > > fiddling with it. If no objections arise, I'll probably commit this > > small change during the weekend. > > This change sounds like a good idea. If you decide to do it make sure > you update the message "replacing with default font" to reflect exactly > which font was used instead. Well, it depends. :-) You could also say that you want to find a similar font (PANOSE matching [1] which we don't have) but in the same variant, i.e. italic in this case. It really depends what is more important to you: that the font is similar but italic or that it's the same font but you fall back to non-italic. That said, I'm ok with the change. It's just that the decision should not be done just so. [1] http://en.wikipedia.org/wiki/PANOSE Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Symbol
Andreas L Delmelle wrote: On Aug 25, 2006, at 00:11, Luis Ferro wrote: It doesn't seem too difficult to alter FontInfo.java to make it first look for a font with the same name/weight, but with default font-style. Anyway, I'll give other devs a chance to chime in before I start fiddling with it. If no objections arise, I'll probably commit this small change during the weekend. This change sounds like a good idea. If you decide to do it make sure you update the message "replacing with default font" to reflect exactly which font was used instead. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Symbol
Luis Ferro wrote: I've found a weird bug... Its not weird and not a bug ;) When i use the font "Symbol" (which is built it), all works well... except if i try to use the "font-style='italic'" with it... it gives an error: missing font (or something like that): 'Symbol, italic, 400' replacing with default (or something like that). Can others replicate the problem? (i sorted it out by forcing all symbols to be "normal" but i think this should be sorted out) Symbol, Normal is one of the built in 14 fonts. Symbol, Italic is not! Roughly list of 14 built in fonts is: Times, Normal, Normal Times, Bold, Normal Times, Normal, Italic Times, Bold, Italic Helvetica, Normal, Normal Helvetica, Bold, Normal Helvetica, Normal, Italic Helvetica, Bold, Italic Courier, Normal, Normal Courier, Bold, Normal Courier, Normal, Italic Courier, Bold, Italic Symbol, Normal, Normal ZapfDingbats, Normal, Normal Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Symbol
It seams so... some symbols which doesn't exist in normal fonts (weird unicodes to start with) just disapear from the text and are replaced with a "#"... After i switched the italic to normal, the characters reapeared. (this is in the somewhat new thrunk-svn of the start of August) This didn't happened in the older version... Cheers, LF Andreas L Delmelle wrote: > > On Aug 25, 2006, at 00:11, Luis Ferro wrote: > > Hi Luis, > >> When i use the font "Symbol" (which is built it), all works well... >> except >> if i try to use the "font-style='italic'" with it... it gives an >> error: >> >> missing font (or something like that): 'Symbol, italic, 400' >> replacing with >> default (or something like that). > > Seems correct more or less, but now that you mention it: it does > switch the whole font, right? While it is actually only the font- > style component that makes it impossible to locate the font. > > It doesn't seem too difficult to alter FontInfo.java to make it first > look for a font with the same name/weight, but with default font-style. > > Anyway, I'll give other devs a chance to chime in before I start > fiddling with it. If no objections arise, I'll probably commit this > small change during the weekend. > > > Cheers, > > Andreas > > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Font-Symbol-tf2161582.html#a5974770 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font Symbol
On Aug 25, 2006, at 00:11, Luis Ferro wrote: Hi Luis, When i use the font "Symbol" (which is built it), all works well... except if i try to use the "font-style='italic'" with it... it gives an error: missing font (or something like that): 'Symbol, italic, 400' replacing with default (or something like that). Seems correct more or less, but now that you mention it: it does switch the whole font, right? While it is actually only the font- style component that makes it impossible to locate the font. It doesn't seem too difficult to alter FontInfo.java to make it first look for a font with the same name/weight, but with default font-style. Anyway, I'll give other devs a chance to chime in before I start fiddling with it. If no objections arise, I'll probably commit this small change during the weekend. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Font Symbol
I've found a weird bug... When i use the font "Symbol" (which is built it), all works well... except if i try to use the "font-style='italic'" with it... it gives an error: missing font (or something like that): 'Symbol, italic, 400' replacing with default (or something like that). Can others replicate the problem? (i sorted it out by forcing all symbols to be "normal" but i think this should be sorted out) Cheers LF P.S.- The more i know of FOP, the greater my admiration and respect for all the hard work put into it... you guys certainly did (and are doing) a great work! -- View this message in context: http://www.nabble.com/Font-Symbol-tf2161582.html#a5973915 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]