-
Notifications
You must be signed in to change notification settings - Fork 0
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
font stuff #150
Comments
I'm not quite following what is being summed
I do not like the sound of this, seems like collisions would happen - e.g. 100 x 200 = 200 x 100 = 20 x 1000 - probably not likely given a small sample size. Tell me more Unique set: not 100% sure on exactly how system scaling, dpi and devicePixelRatio (subpixels) may affect this, but I think this would lead to less entropy, because the same font users (think platform and limited font visibility such as RFP or Brave) are going to returning the same relative measurements, and same sets of unique measurement won't change (i.e if A, B and C are the same size, that's not going to change for like platforms and fonts)
Maybe I'm missing something but to me you would return glyph sets for both as |
I collect each unique set of width x height, then sum them all together. Yeah, collision can happen. A hash of the collection is best.
I'm re-evaluating this, and I don't think it works beyond monospaced fonts. That's true, the unique set of code points' has less entropy than the unique dimension. We could use both, but it may not be worth it. I recently stopped using the |
I'm going to be adding in code points per size - per script and globally .. to my fontscript page (which doubles as a code point generator and fingerprint data collector for analysis)
It's a bit of a hack to sort the |
This has been on my mind. There is a method I use to harden unicode metrics (emojis & glyphs). Instead of using the text pixel sizes as the metric, I look for the first occurrences of unique dimensions and then the final set is the metric. I also reduce the dimensions in the set to a sum. Then, if we change the screen device pixel ratio or font size, this unique set (but not the sum) should remain the same.
Originally posted by @abrahamjuliot in #49 (comment)
The text was updated successfully, but these errors were encountered: