-
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 followups #167
Comments
Tried it. This seems like a good point to go have a 16 hr sleep |
If I understand correctly the relevant code is here and and getDimensions reapplies the style when measuring Lines 399 to 400 in 36f9d92
style is a const and therefore can't change (from what we set) and here is the hardcoded style we set Lines 285 to 289 in 36f9d92
is that correct @abrahamjuliot -- but const style is in two places Line 335 in 36f9d92
once when we create the elements, and again on every looped font. Why can't the font loop just use the global const? - another @abrahamjuliot question |
This just prevents resetting the obj like
|
Correction. This is only necessary if we are changing the element or stylesheet, so I think we don't need to call |
this line didn't affect perf at all (because nothing changed?) Line 391 in 9b4a517
but it insures(?) the style hasn't changed - this is the bit I need to find in the FPing paper - it was like 3 years ago I modified arthur's fallback poc after reading about it |
ToDo
Ideas and things to follow up on from perf work
transform: scale(1.0361118, 0.91866667);
ToNumber
methods (see below original post)!important;
reference
OP from other post
Ahh, so I tired it, and I see what you mean: I didn't check the differences in measurements. So it splits the results (for me) into three - those that don't use pixelsToNumber, those that use originPixelsToNumber and those that don't use either
Since I'm expecting them to all be the same, and I need 4/7 to be the same to determine a result, I end up flummoxed and return a red lie. This is my lie detector - comparing sets. I think yours would have the same issue
But ... I could still use this. Add more methods (the perf cost is very cheap it seems) and Sets, use the ToInt ones for lies, but display and show and record the ToNumber
And get transform:scale going
I'm going to open a new issue on these things and keep this one for perf
Originally posted by @Thorin-Oakenpants in https://github.com/arkenfox/TZP/issues/34#issuecomment-1132631154
The text was updated successfully, but these errors were encountered: