PHP Classes

Help needed: fullfontname wrong

Recommend this page to a friend!

      TTF Info  >  All threads  >  Help needed: fullfontname wrong  >  (Un) Subscribe thread alerts  
Subject:Help needed: fullfontname wrong
Summary:The value of fullfontname is displayed wrong (only some ttf).
Messages:3
Author:halome
Date:2006-12-05 14:30:38
Update:2009-03-06 02:45:40
 

  1. Help needed: fullfontname wrong   Reply   Report abuse  
Picture of halome halome - 2006-12-05 14:30:38
For some fonts e. g. Courier and variants I cannot get the right value fullfontname. The field information is shown as C#o#r#i#e#r#N#e#w where you have to replace '#' with the aquare for an unknown character.

Does anybody has an idea why this only occurs for some fonts?

Here my code snippet based on the original class and the listed modifications, where the field is initialized:

if( $name_id_dec==4 && !isset($fullfontname) ) {
for( $l=0; $l<$string_length_dec; $l++ ) {
$fullfontname .= $text[$storage_dec+$string_offset_dec+($l)];
}//end for
}//end if

Thanks for your replies and help...

  2. STEP BACK Re: Help needed:...   Reply   Report abuse  
Picture of halome halome - 2006-12-05 15:07:02 - In reply to message 1 from halome
Hi again,

just wasted a lot of time. The "error" I mentioned in my previous message is a browser specific problem. This problem occurs only in Firefox (my current version is 1.5.0.8). The new problem is: I don't know why ;-). Any attempt to configure FF in the right way fails. If you have any idea, please reply to this post.

I openend my script in IE6 and it works fine.

Sorry for bugging you.


  3. Re: Help needed: fullfontname wrong   Reply   Report abuse  
Picture of John-Marc Ventimiglia John-Marc Ventimiglia - 2009-03-06 02:45:40 - In reply to message 2 from halome
Why dont you use the posted fix 2 for null characters? Thats what the problem is.