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.
Comment | File | Size | Author |
---|---|---|---|
#2 | active_theme-2851701-2.patch | 711 bytes | Deciphered |
|
Issue fork fontyourface-2851701
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:
Comments
Comment #2
Deciphered CreditAttribution: Deciphered as a volunteer and at Realityloop commentedComment #3
Neslee Canil PintoComment #4
bago CreditAttribution: bago as a volunteer commentedThis has been closed as outdated, but the issue in 7.x is still there and the patch seems valid.
Comment #5
Neslee Canil Pinto@bago the changes have been commited to dev branch - https://git.drupalcode.org/project/fontyourface/-/commit/19a921bc996cf9e...