question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text Rendering Issues on Brave Browser

See original GitHub issue

Expected Behavior

Text rendering should be the same across all browsers

Current Behavior

pixi-text-rendering-browser-comparison

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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
miltoncandelerocommented, Jul 12, 2022

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 canvas-fingerprinting 1

1reaction
bigtimebuddycommented, Jul 8, 2022

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 the PIXI.TextMetrics. One thing that would be helpful @diegomachado would be to output values from TextMetrics.measureText to see if there are any differences. That may help track down what’s going on.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found