Hi Mega Drupal,
Whenever Im trying to use Typekit for Custom Fonts on MegaSlider or Appearance settings. It gives me error :
Warning: file_get_contents(http://typekit.com/api/v1/json/kits/bai2nnl/published): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in _fullscreen_get_typekit_font() (line 339 of/home/domain/public_html/beta/sites/all/modules/custom/md_fullscreen_slider/inc/md_fullscreen_slider.utils.inc).
and
-
Warning: file_get_contents(http://typekit.com/api/v1/json/kits/bai2nnl/published): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in _md_make_process_typekit_font() (line 92 of/home/domain/public_html/beta/sites/all/themes/md_make/theme_setting/admin/utilities.inc).
-
Notice: Undefined variable: fontarray in _md_make_process_typekit_font() (line 110 of /home/domain/public_html/beta/sites/all/themes/md_make/theme_setting/admin/utilities.inc).
-
Notice: Undefined variable: fontvars in _md_make_process_typekit_font() (line 110 of /home/domain/public_html/beta/sites/all/themes/md_make/theme_setting/admin/utilities.inc).
-
Warning: Invalid argument supplied for foreach() in theme_add_font_style() (line 159 of /home/domain/public_html/beta/sites/all/themes/md_make/theme_setting/admin/utilities.inc).
How to use custom Typekit fonts ?
Best Regards,
Andre Fadyl
Hi,
Error occurs because of wrong Typekit ID or unpublish Typekit.
You could take a look at Typekit documentation at: http://help.typekit.com/customer/portal/articles/6780