Expanding fonts (v. 2.9x)

Fonts register differently in different operating systems. For instance, Comic Sans may not appear correctly in iOS devices or mobile phones, because it's a Microsoft font. In these cases, it's helpful to add additional work around fonts for those operating systems.

  1. Open the stconfig.php file.

  2. Find the code (around line 328 in version 2.94):

  3. $font_face_list = array(
  4. Add:

  5. , 'addl'=>'Additional,Font,List'
  6. before the closing parenthesis next to the font, where Additional,Font,List is a list of additional fonts to add after the current one.

  7. For example, to add 'Chalkboard' fonts (Mac version of Comic Sans) to the Comic Sans MS list, change the line:

  8. 'Comic Sans MS'=>array('link'=>'', 'serif'=>'c'), 
  9. to:

  10. 'Comic Sans MS'=>array('link'=>'', 'serif'=>'c', 'addl'=>'Chalkboard,ChalkboardSE-Regular'), 
  11. Open the style.php file.

  12. Find the code (around line 22 in version 2.94):

  13. $font_face = "'" . str_replace(",", "', '", $font_face) . "', " . $fserif;
  14. and add the following code just above the line:

  15. if (isset($font_face_list[$font_face]['addl']))
    $font_face = $font_face.','.$font_face_list[$font_face]['addl'];
  16. Save both files.

Note: to add a completely new font, use Add additional fonts.