Open pikurasa opened 10 months ago
Hello @pikurasa,
This problem is not specific to MusicBlocks. I've encountered an issue with the rendering of musical symbols on various websites when accessed through Apple devices.
_https://www.alt-codes.net/music_note_alt_codes.php_ Above is a website for example.
I've noticed this issue across multiple websites, and it seems to be related to font rendering on Apple devices. This problem is not specific to a particular website but seems to be a broader concern.
What if we add a backup image or alternate text!
Are we able to add a conditional that checks whether we're running on Mac's build of Chrome or Safari, then display an image instead of a font?
I don't have a mac So couldn't test it, but found these...
const isMacChrome = navigator.userAgent.includes('Macintosh') && navigator.userAgent.includes('Chrome');
const isMacSafari = navigator.userAgent.includes('Macintosh') && navigator.userAgent.includes('Safari');
OR
var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
I have a mac and I'd like to fix this issue, but I'm having trouble finding where these note blocks (whole, half, etc.) are implemented in the codebase. I looked under WidgetBlocks.js or the widgets folder, but I seem to be missing them. This is my first time contributing to an open source project.
@pikurasa I also got the thought that we will check the browser and apply image in place of symbols for Mac users will update you soon
Description
I noticed this on my friends MacBook, and I was able to reproduce just now on an iPad. I was able to reproduce on both Safari and Chrome.
Expected Behavior
I expect the note value icons to display.
Screenshots
Environment: