You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thank you for this class.
I recognize its value
I have a few questions.
My goal is to be able to load perhaps 1 class for the body but with different variations (italic, bold etc).
So I believe I should be using multi_simul_fontdisplay(...
When I use your example: include_once('myserverpath/class.fontperformance.php"); $ref= new Fontperformance; $apilink =array( "https://fonts.googleapis.com/css?family=Montserrat+Alternates", "https://fonts.googleapis.com/css?family=Rancho", "https://fonts.googleapis.com/css?family=Tangerine", "https://fonts.googleapis.com/css?family=Roboto+Mono", "https://fonts.googleapis.com/css?family=Cantarell", "https://fonts.googleapis.com/css?family=Inconsolata", "https://fonts.googleapis.com/css?family=Gaegu" ); $font_display = $ref->multi_simul_fontdisplay($apilink,"fallback", false );
I receive an error in my php logs that say:
PHP Warning: count(): Parameter must be an array or an object that implements Countable in class.fontperformance.php on line 168
I have tried changing fallback to auto or optional and the I get the same error.
Can you tell me why this is ?
The text was updated successfully, but these errors were encountered:
Hello and thank you for this class.
I recognize its value
I have a few questions.
My goal is to be able to load perhaps 1 class for the body but with different variations (italic, bold etc).
So I believe I should be using multi_simul_fontdisplay(...
When I use your example:
include_once('myserverpath/class.fontperformance.php"); $ref= new Fontperformance; $apilink =array( "https://fonts.googleapis.com/css?family=Montserrat+Alternates", "https://fonts.googleapis.com/css?family=Rancho", "https://fonts.googleapis.com/css?family=Tangerine", "https://fonts.googleapis.com/css?family=Roboto+Mono", "https://fonts.googleapis.com/css?family=Cantarell", "https://fonts.googleapis.com/css?family=Inconsolata", "https://fonts.googleapis.com/css?family=Gaegu" ); $font_display = $ref->multi_simul_fontdisplay($apilink,"fallback", false );
I receive an error in my php logs that say:
PHP Warning: count(): Parameter must be an array or an object that implements Countable in class.fontperformance.php on line 168
I have tried changing fallback to auto or optional and the I get the same error.
Can you tell me why this is ?
The text was updated successfully, but these errors were encountered: