Text Rendering Issues on Brave Browser
See original GitHub issueExpected Behavior
Text rendering should be the same across all browsers
Current Behavior
- All texts are rendered at a little lower Y value;
- On a multiline text, line height is much bigger than expected;
- This behavior does not happen when using BitmapText; (at least when using https://pixijs.io/examples/#/text/bitmap-text.js)
Steps to Reproduce
Using the official Text Example
Environment
pixi.js
version: 6.4.2 - WebGL 2- Brave - Version 1.40.113 Chromium: 103.0.5060.114 (Official Build) (64-bit)
- Firefox - Version 102.0.1 (64-bit)
- Chrome - Version 103.0.5060.114 (Official Build) (64-bit)
- OS & Version: Windows 11
- Running Example: https://pixijs.io/examples/#/text/text.js
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Font rendering issues with Brave on Windows - Browser Support
The font rendering issues seem to appear if there are multiple screens connected to the computer (e.g. notebook screen and external monitor) ...
Read more >font rendering issues on brave only. help? : r/brave_browser
r/brave_browser - font rendering issues on brave only. help? ... Are you able to check if you have any graphics drivers updates? And...
Read more >Brave Browser Blurry - Programs, Apps and Websites
Now, onto the problem! The entire browser is blurry: graphics, text, everything. A great example is the landing page for this forum.
Read more >Windows Cleartype: font rendering is inconsistent than other ...
Most likely a Skia or other font rendering problem as all our font data comes from there, and all our font painting goes...
Read more >Syncthing: Weird font problem in Brave - Arch Linux Forums
I have this weird font problem for Syncthing in the Brave browser. ... the "font-famiy" css rule with "rendered fonts" at the bottom....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, it’s a feature of brave. Brave randomizes the canvas text rendering to prevent fingerprinting
Learn more: https://en.wikipedia.org/wiki/Canvas_fingerprinting
Fingerpint test: https://browserleaks.com/canvas
edit: Really cool gif of the same canvas text rendering in 35 different computers
If I had to guess, this seems to be a bug in Brave about how it measures text (e.g.
context.measureText
). Much of this functionality is wrapped up in thePIXI.TextMetrics
. One thing that would be helpful @diegomachado would be to output values fromTextMetrics.measureText
to see if there are any differences. That may help track down what’s going on.