-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OffscreenCanvas for TextMetrics is not cached #8317
Comments
Oh, you're right on that @coeing, good catch. |
Also, we have also been working to make PixiJS run in Node.js as first-class in the project. We should chat and combine forces. It is one of our most requested features. |
@bigtimebuddy Very nice, looking forward to it! And yes, let me know when you have time, I am open to share my experiences, although I am not that experienced with PixiJS yet. |
Message me on Pixi's Discord and we can find time to chat. |
pixijs/packages/text/src/TextMetrics.ts
Line 739 in 3258470
I am currently working on making PixiJS work in a NodeJS environment and came across this issue. Because the canvas is not cached in this location leads to the issue that the context (which is fetched with
TextMetrics._context
inmeasureFont
) is not the context of the canvas that is used and therefore does not resize when setting the dimensions of the canvas inmeasureFont
.It may only be an issue in my special case (and I will work around it), but it seems wrong nonetheless :)
The text was updated successfully, but these errors were encountered: