TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

FontSprite - a new approach to custom fonts on the web

2 点作者 digitalclubb大约 14 年前

1 comment

winestock大约 14 年前
From the website:<p>"By using the FontSprite generator, you can create sprite images of glyphs from your chosen font. Then, give the FontSprite engine your image, and the metrics data that the generator calculated for you. On your website, the engine creates a span for every letter, and perfectly sprites and places the rendered font as a background image, to create the illusion of custom fonted text! Best of all, you can copy and paste! (kinda)"<p>This is such an ugly hack. I'm giving this story an upvote just for the persistence this guy showed. To see how this affects selecting text, go to the examples page: <a href="http://jasper.clarkberg.org/fontsprite/engine.html#examples" rel="nofollow">http://jasper.clarkberg.org/fontsprite/engine.html#examples</a> And try to select the text at the top of the page (viz, Here is some text set in Adelle. Make it casual with some Idolwild! Even Zapfino kinda works)<p>Notice how the selection appears offset from the displayed text? Jarring.<p>I admire this hacker for his ingenuity and persistence, but font-embedding will only be practical for websites with a dedicated audience, I'm afraid.