- From: Kevin Babbitt via GitHub <sysbot+gh@w3.org>
- Date: Mon, 27 Jan 2025 23:45:11 +0000
- To: public-css-archive@w3.org
> It could be argued that then we have more bits of entropy, because if we can detect that it's Hoefler Text that is being applied we also know that Adobe Caslon Pro and Adobe Garamond are not installed. However, I think it would be pretty hard to detect this in the general case without actually accessing the first two fonts (i.e. apply them without a fallback). I think it might be possible using `<canvas>`. Call `CanvasRenderingContext2D.font = '<long-list-of-fonts>'`, draw a distinguishing glyph, then use `getImageData()` to read back the result and compare to known renders. Once the applied font has been identified, trim the front of the list up to and including that font, then repeat to find the next installed font. -- GitHub Notification of comment by kbabbitt Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11571#issuecomment-2617165722 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 27 January 2025 23:45:12 UTC