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
In src/core/ServerManager.js, preloading of fonts is specifically handled in its method ServerManager._downloadResources, which is quoted as follows, starting from Line 1115:
This line tries to use its name in resources as font family name, and the extension as font format. For example, if the font to be preloaded is fonts/OpenSans-Bold.ttf, it attempts to use the full path fonts/OpenSans-Bold.ttf as font family name, which is illegal. The format specified format('ttf') would also be wrong, since format('truetype') is expected in this case.
For an independent project this could be easily fixed, but I have no idea how this should be fixed in the context of PsychoJS and the builder project. I hope this would help.
The text was updated successfully, but these errors were encountered:
In src/core/ServerManager.js, preloading of fonts is specifically handled in its method
ServerManager._downloadResources
, which is quoted as follows, starting from Line 1115:Bug is introduced in Line 1128:
This line tries to use its name in resources as font family name, and the extension as font format. For example, if the font to be preloaded is
fonts/OpenSans-Bold.ttf
, it attempts to use the full pathfonts/OpenSans-Bold.ttf
as font family name, which is illegal. The format specifiedformat('ttf')
would also be wrong, sinceformat('truetype')
is expected in this case.For an independent project this could be easily fixed, but I have no idea how this should be fixed in the context of
PsychoJS
and the builder project. I hope this would help.The text was updated successfully, but these errors were encountered: