Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Made defensive resize adjustment relative #25

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

mpj commented Oct 7, 2012

I found that newFontSize turned out slightly off in some cases, 
and I figured that this was due to autoGuessSubtraction being an absolute
number, instead of relative. I honestly have little idea what I'm doing, 
but my fixed solved my problem, at least. :P

Mattias Petter Johansson Made defensive resize adjustment relative
I found that newFontSize turned out slightly off in some cases, 
and I figured that this was due to autoGuessSubtraction being an absolute 
number, instead of relative. I honestly have little idea what I'm doing, 
but my fixed solved my problem, at least. :P
5b91f9a

bfintal commented Apr 3, 2013

This has helped me as well especially for small containers with only a few characters:

branch copy of bigtext.js: http://jsfiddle.net/bfintal/RL2JD/1/
adjusted bigtext.js: http://jsfiddle.net/bfintal/WjdAv/

@mpj mpj closed this Jul 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment