Font Symbol

View: New views
9 Messages — Rating Filter:   Alert me  

Font Symbol

by Luis Ferro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

Re: Font Symbol

by Andreas L Delmelle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...


Re: Font Symbol

by Luis Ferro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

Re: Font Symbol

by cbowditch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

<snip/>

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...


Re: Font Symbol

by cbowditch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andreas L Delmelle wrote:

> On Aug 25, 2006, at 00:11, Luis Ferro wrote:
>

<snip/>

> 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: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...


Parent Message unknown Re: Font Symbol

by Jeremias Maerki-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 25.08.2006 11:53:28 Chris Bowditch wrote:

> Andreas L Delmelle wrote:
>
> > On Aug 25, 2006, at 00:11, Luis Ferro wrote:
> >
>
> <snip/>
>
> > 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: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...


Re: Font Symbol

by Andreas L Delmelle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Aug 25, 2006, at 01:04, Andreas L Delmelle wrote:

> <snip />
> 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: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...


Re: Font Symbol

by Luis Ferro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:

> <snip />
> 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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

Re: Font Symbol

by cbowditch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...