Display of font error
In an older project I used the standard fonts. They are also displayed in the editor. But not in the browser. What should I do?
Beste GrĂĽĂźe Matthias
Failed to generate font files for Arial
UnityEngine.Debug:LogError (object)
Needle.Engine.Utils.FontsHelper/<RunCommand>d__12:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter@4.1.0-beta.2/Core/Editor/Utils/FontsHelper.cs:353)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
Failed to generate font files for Jost-Medium
UnityEngine.Debug:LogError (object)
Needle.Engine.Utils.FontsHelper/<RunCommand>d__12:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter@4.1.0-beta.2/Core/Editor/Utils/FontsHelper.cs:353)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
Failed to generate font files for Arial
UnityEngine.Debug:LogError (object)
Needle.Engine.Utils.FontsHelper/<RunCommand>d__12:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter@4.1.0-beta.2/Core/Editor/Utils/FontsHelper.cs:353)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
It looks like you’re encountering font generation issues in your Needle Engine project when transitioning to the browser. The error messages indicate that the font files for “Arial” and “Jost-Medium” are failing to generate. Here are a few steps you can take to troubleshoot and resolve the issue:
Check Font Availability: Ensure that the fonts you’re trying to use are available in the project and properly imported. If you’re using custom fonts, verify that they are included in your project directory.
Font Settings in Unity: Verify your font settings within Unity. Go to the font assets in your project, right-click on them, and check whether the settings are properly configured for web export.
Regenerate Fonts: Try regenerating the font assets. You can do this by selecting the font files and using the option to regenerate them or regenerate the font sources if applicable.
Check Console for Errors: Look into the Unity console for any additional errors or warnings that may provide more context on why the font generation is failing.
Log Output: Review the logs for more details or any other hidden warnings/errors that may be present. You may also use the menu item “Help/Needle/Logs” to gather comprehensive logs for analysis.
Update Packages: Ensure that you are using the latest version of Needle Engine and its related packages. Compatibility issues may arise from outdated versions.
If the issue persists, it could be beneficial to know the versions of Unity and Needle Engine you are using. You can find this information via the menu item “Copy Project Info Into Clipboard” and paste it here for further assistance.
Best,
Matthias
1 replies left - Get a PRO license for more AI replies. thread_JpJ44mnAwu6A9onPt9N6dhud Reply to this message to continue the conversation
Somehow your bugreport contained Unity editor logs from yesterday and none from today. Could you try reproducing the error above and then submitting a bugreport again? Thank you
Could you check if this file exists and if so send it via DM? It’s not in the bugreport. C:\Users\matbean\AppData\Local\npm-cache\_logs\2025-01-30T16_58_59_287Z-debug-0.log (the npm log folder is sent with the bugreport but this file doesnt exist it seems)
Could you try to save the scene with just a canvas and text component if that also reproduces the error? If it fails could you upload a new bugreport with that scene?
After that report has been uploaded could you try running the following command from your commandline and let me know what it outputs?
Hello Matthias, do you know if something else could be configured differently on this machine vs your others? E.g. the package exists on npm and this is aregular npx command (as sent above).
Could you try running it without --yes ?
Could you also try running npx @gltf-transform/cli for testing ?