I was trying to figure out why my fonts weren't rending with @font-your-face, and I tracked it down to the code in fontyourface_parse_theme_info_file().

The issue is that the function is only parsing the .info file of the site default theme, but the page I was having issues with was being rendered by a non-default theme, a theme that was being contextually switched to.

It's a relatively simple fix, instead of parsing the default theme, parse the active theme. Patch incoming.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Deciphered created an issue. See original summary.

Deciphered’s picture

Status: Active » Needs review
FileSize
711 bytes
Neslee Canil Pinto’s picture

Status: Needs review » Closed (outdated)
bago’s picture

This has been closed as outdated, but the issue in 7.x is still there and the patch seems valid.

Neslee Canil Pinto’s picture

Status: Closed (outdated) » Fixed

@bago the changes have been commited to dev branch - https://git.drupalcode.org/project/fontyourface/-/commit/19a921bc996cf9e...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.