CSS Sans – A font created in CSS
yusugomori.com
yusugomori.com
You could even pass around "not so hidden" messages with it. Tell your friends, add this CSS class to the body to see the message.
Bulletproof, not at all. Just pointing out a clever use.
This just reminds me of a very "gray hat" SEO project I dabbled with 8-9 years ago.
Back then we were grabbing dropped domains and rebuilding them in masse to harvest the search traffic and build an early "PBN." Not wanting to leave an obvious footprint for Google or having to build a ton of templates, we randomized everything. From generating logos on the fly to randomizing the html structure and css classes names an extra precaution.
The sites were ugly as sin, but since Google wasn't rendering CSS on every crawl it didn't matter.
Pair this with our monetization strategy that made extensive use of css's `content=""` to place large CTAs across different sites and this project reminds me of the lessons we learned back then.
Needless to say, this isn't a project I'm super proud of, but when I saw how non-accessible this CSS font was, I couldn't help but think about scrambling the class names as well.
And honestly, we as society should do anything to eliminate people doing this.
No one was harmed in this endeavor. Sure it "polluted the web" and was against Google's guidelines, but we definitely weren't hacking or doing other true "black hat" things.
Ultimately it was shut down in 2012 and in the entire time I was involved in this 2 people requested their domain back and we sent it their way no questions asked.
Content was generated with our internal equivalent of a markov chain, so there wasn't content piracy either.
Sure, this project added no value to the web and we should have spent our time building an awesome service that generated links naturally... but as they say hindsight is 20/20.
I wish I had a dime everytime someone used this justification.
As much I would call me a white hat, I guess most of us have done we're not proud of in the past.
I for one used to work a very short time at a small dating portal that used like any available way to get users to pay.
“And here...” he gestured “...is where they torture people who place CTAs in a css content=“
Ah, it was you!... Whenever I searched for an obscure word and one of these sites cropped up, I was wondering what the monetization strategy for this garbage was. Now I finally know...
I know I'm on HN but everyone responding is taking a tone like the creator said, "this is the best way to do it and everyone should use this in production" while on the page it only says they built it because they could -- because CSS has evolved to support it.
Something like this (but with different primitives, not CSS) is how Donald Knuth made the program Metafont, using which he created Computer Modern in all its variants (the font used by default by every TeX/LaTeX document). His intent was to capture the “idea” of each letter shape (glyph in the font), by writing a program for drawing that letter, instead of simply drawing it. He came up with something vaguely similar (pens of varying thickness, erasers, etc). The program is described in Volume C of Computers and Typesetting (The METAFONTbook), and Volume E is a thick hardcover book somewhat like this page, which gives the definition of (program for) each character next to a picture of its shape.
More Metafont-related links, if anyone finds this sort of thing inspiring:
- https://s3-us-west-2.amazonaws.com/visiblelanguage/pdf/16.1/... (this paper is a work of art!)
- https://www.metaflop.com/modulator (use the sliders)
- https://tex.stackexchange.com/a/423720/48
Metafont may not have had the right primitives for character drawing, and CSS obviously doesn't (it's not what it's designed for), but the idea of describing shapes is very interesting, and I still hope (despite decades of “failure”) that it can catch on. Maybe with interactive input and immediate visual feedback, it would be more appealing, at least for some people.
[1]: https://www.typenetwork.com/brochure/opentype-variable-fonts...
Very clever.
Edit: Found a demo page[1], it's monospaced.
<div style="transform: scale(1.6);">
<div class="A"></div>
<div class="B"></div>
</div>EDIT: Demo with font-size: https://jsfiddle.net/6cg8dLnz/
Haven't figured out how to fix kerning if it's even supposed to work.
.font div {
display: inline-block;
vertical-align: top;
}
.H + .U { margin-left: 2px; }
.U + .G { margin-left: 1px; }
.G + .E { margin-left: -5px; }But that aside - pretty cool!
On-topic: I really like the hover animations under https://yusugomori.com/projects/css-sans/fonts. Makes it really easy to get what was being done.