text:
it
html:
<span class="69">i</span><span class="74 sarcastic">t</span>
css:
/* could also use ch or ex instead of em */
.69 + .74::before {
margin-left: -0.1em;
}
.sarcastic {
transform: skewX(-10deg);
}
/* loosen spacing a bit for certain randomness */
.69 + .74.sarcastic::before {
margin-left: -0.05em;
}
Maybe the type of randomness applied could be set as additional classes on the character, limited only by imagination (I added .sarcastic as an example). Maybe AI could be trained on sample text to tidy up the kerning for a large number of permutations, althought the generated css could get quite large.I asked AI if there's a way to apply css to specific characters instead of selectors, but unfortunately that doesn't seem to be possible (yet). It feels strange to live in a world where I could have just asked AI to do all of this for me in an online sandbox in less time than it took me to write this comment :-/
misone•3mo ago
The text is presented in both Italian and English.
The authors also created a LibreOffice extension that applies random fonts to any document, allowing users to experiment with the same generative approach directly. It's called "Patina": https://www.ilcovile.it/V3_p_patina.html
MultifokalHirn•3mo ago
rgovostes•2mo ago