Skip to content
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

Dynamic ScaleAgain without loops #517

Open
RuixiZhang42 opened this issue Feb 22, 2019 · 0 comments
Open

Dynamic ScaleAgain without loops #517

RuixiZhang42 opened this issue Feb 22, 2019 · 0 comments

Comments

@RuixiZhang42
Copy link

It was mentioned here that for smaller Scales we could apply “rougher” ScaleAgains, but for larger Scales we might want to apply “finer” ScaleAgains.

One could hard-code the following dynamic ScaleAgains to get more accurate fontdimen’s, without using loops:

ScaleAgains Scale coverage
1.0001 and 0.9999 0.152587890625000000 and up
1.00009 and 0.99991 0.169542100694444444 and up
1.00008 and 0.99992 0.190734863281250000 and up
1.00007 and 0.99993 0.217982700892857143 and up
1.00006 and 0.99994 0.254313151041666667 and up
1.00005 and 0.99995 0.305175781250000000 and up
1.00004 and 0.99996 0.381469726562500000 and up
1.00003 and 0.99997 0.508626302083333333 and up
1.00002 and 0.99998 0.762939453125000000 and up
1.00001 and 0.99999 1.525878906250000000 and up

Looking at my calculations, I incline to suggest that “fixed” ScaleAgain at 1.00005 and 0.99995 already cover reasonable usage. Actually, if we assume that no user will ever scale math font at 60% or lower, we could just use ScaleAgain at 1.00003 and 0.99997.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant