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

[Feature Request] Fit on one line #41

Open
tigerhawkvok opened this issue Oct 2, 2014 · 1 comment
Open

[Feature Request] Fit on one line #41

tigerhawkvok opened this issue Oct 2, 2014 · 1 comment

Comments

@tigerhawkvok
Copy link

When calling flowtype, it'd be great to be able to do

$("#id").flowtype({
onOneLine:true
});

To resize the text selected to fit exactly on one line in its parent element.

@AntonVoltchok
Copy link

Hey Tiger,
What you are looking for is FitText.js, they have some sort of compressor values you can mess around with to get big headlines just how you like them. http://i.imgur.com/tzY7AsF.jpg I ran into same problem as you where in flowtype i couldn't keep it at 1 line but in fittext messing around with the "2.02" number a few times locked it to 1 line. It's a kinda like a scale amplifier: $(".intro-h1").fitText(2.02, { minFontSize: '15px', maxFontSize: '100px' });

BUT!!! do NOT use FitText for regular text, that is where FlowType.js shines and should rightfully be used.

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

2 participants