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.
-
Open the stconfig.php file.
-
Find the code (around line 328 in version 2.94):
-
$font_face_list = array(
-
Add:
-
, 'addl'=>'Additional,Font,List'
-
before the closing parenthesis next to the font, where Additional,Font,List is a list of additional fonts to add after the current one.
-
For example, to add 'Chalkboard' fonts (Mac version of Comic Sans) to the Comic Sans MS list, change the line:
-
'Comic Sans MS'=>array('link'=>'', 'serif'=>'c'), -
to:
-
'Comic Sans MS'=>array('link'=>'', 'serif'=>'c', 'addl'=>'Chalkboard,ChalkboardSE-Regular'), -
Open the style.php file.
-
Find the code (around line 22 in version 2.94):
-
$font_face = "'" . str_replace(",", "', '", $font_face) . "', " . $fserif; -
and add the following code just above the line:
-
if (isset($font_face_list[$font_face]['addl'])) $font_face = $font_face.','.$font_face_list[$font_face]['addl'];
-
Save both files.
Note: to add a completely new font, use Add additional fonts.