Bug in get_api_query()
-
You use ucwords() to create the query. That doesnt work with all fonts.
I tried to use the “Fredericka the Great” font. Differently to your comment in get_api_query(), its name isnt ucfirst in all words. Google recognize it as “Fredericka the Great”, not as “Fredericka The Great”.I did a workaround especially for this font. But maybe this happens with other fonts, too.
Line 660
if($fontvars['family'] == 'Fredericka-the-Great'){ $families[$i] = 'Fredericka+the+Great'; } else { $words = explode("-",$fontvars['family']); foreach($words as $key => $word){ $words[$key] = ucwords($word); } $families[$i] = implode('+', $words); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug in get_api_query()’ is closed to new replies.