Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I installed bell_gothic_std_black.typeface.js in sites/all/modules/typeface/fonts/.
The list in admin/settings/typeface shows the font file and its family, which is "Bell gothic std".
Attempting to use the line:
print typeface_print($title, 'bell_gothic_std_black');
print typeface_print($title, 'Bell gothic std');
print typeface_print($title, 'bell_gothic_std_black.typeface');
print typeface_print($title, 'bell_gothic_std_black.typeface.js');
produces the error:
The font: bell_gothic_std_black is not installed in Typeface module
The font: bell_gothic_std_black.typeface is not installed in Typeface module
The font: bell_gothic_std_black.typeface.js is not installed in Typeface module
Any help is greatly appreciated, and thanks for the module!
Albert.
Comments
Comment #1
Archnemysis CreditAttribution: Archnemysis commentedIn case someone comes across this looking for an answer, I believe the three errors you are getting are due to using the font file name instead of just the font family name. So your code should look like this:
The first, third and fourth lines were incorrect, thus producing the 3 errors.
Comment #2
Archnemysis CreditAttribution: Archnemysis commented