hudsonfoo / typebutter Goto Github PK
View Code? Open in Web Editor NEWoptical kerning for the web
optical kerning for the web
Text with soft hyphens () have two issues:
I my opinion it looks strange if the text changes a short moment after the page is loaded. Maybe we should make the text invisible until the kerning has been applied (as they do it in Hyphenator). Or a fade-in? Or showing nothing but the HTML background color until everything is done?
I think this happens because it does not resize the variable width of the parent element? Maybe I’ll post a minimal example later.
I think that would be a nice feature and I think it’s easy to implement.
It can be fixed like this:
if(currentNode.css('text-transform').toLowerCase() == 'uppercase') {
thisNodeText = thisNode.text().toUpperCase();
}
It is very exhausting to set up kerning using typebutter.com/roll-your-own. Is there a way to speed up this process (e.g. by showing the examples right next to the text fields and reloading the kerning only after a few keystrokes, instead of immediately)? Or is it even possible to take existing kerning information from some source and convert it into the TypeButter format?
Maybe it’s a similar case to this one.
I fixed mine with this:
letterSpacing = parseInt(currentNode.css('letter-spacing'));
and
kerning = ((letterSpacing * 0.064) + parseFloat(kerning) + parseFloat(settings['default-spacing'])) + 'em';
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.