TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tofu – The opposite of a font

166 pointsby juanpotatoalmost 8 years ago

14 comments

userbinatoralmost 8 years ago
<i>WARNING: PLEASE DO NOT RUN THIS CODE ON A HARD DRIVE, I&#x27;M NOT SURE HOW LONG IT WOULD TAKE. I USED A RAM DISK</i><p>I haven&#x27;t looked at the implementation, but this seems to imply it is very I&#x2F;O intensive and already takes a very long time in RAM. Yet, nothing about the problem statement suggests it would be such a task --- it sounds like something that could be very straightforwardly done completely in memory.
评论 #14944434 未加载
评论 #14943784 未加载
评论 #14943443 未加载
评论 #14944279 未加载
transitorykrisalmost 8 years ago
&quot;This is stupid. Yeah probably, but for its very specific use case it&#x27;s not terribly bad.&quot;<p>Don&#x27;t put your work down like this. You created something useful for yourself, and likely useful for others. I&#x27;d be surprised if someone called it stupid.
评论 #14945715 未加载
评论 #14948488 未加载
peterburkimsheralmost 8 years ago
That&#x27;s great! When I first started trying to learn Chinese, I had a problem because I couldn&#x27;t read the characters and sometimes couldn&#x27;t copy-paste from some apps. I made a font that was similar, and then I could use the Unicode Hex Input keyboard. Your font looks so much better though!
评论 #14948546 未加载
mintplantalmost 8 years ago
re: license, the SIL Open Font License is common and well-accepted. <a href="http:&#x2F;&#x2F;scripts.sil.org&#x2F;cms&#x2F;scripts&#x2F;page.php?site_id=nrsi&amp;id=OFL" rel="nofollow">http:&#x2F;&#x2F;scripts.sil.org&#x2F;cms&#x2F;scripts&#x2F;page.php?site_id=nrsi&amp;id=...</a>
Retr0spectrumalmost 8 years ago
&gt; WARNING: PLEASE DO NOT RUN THIS CODE ON A HARD DRIVE, I&#x27;M NOT SURE HOW LONG IT WOULD TAKE. I USED A RAM DISK<p>How much disk IO does this program generate? Why?<p>In any case, the OS should cache stuff and give similar performance to using a ramdisk, provided you have enough spare ram.
评论 #14943460 未加载
评论 #14943807 未加载
jfk13almost 8 years ago
Might be interesting to compare SIL&#x27;s &quot;Unicode BMP Fallback Font&quot;,[1] which is significantly more compact (I believe it uses composite glyphs).<p>[1] <a href="http:&#x2F;&#x2F;scripts.sil.org&#x2F;cms&#x2F;scripts&#x2F;page.php?site_id=nrsi&amp;id=UnicodeBMPFallbackFont" rel="nofollow">http:&#x2F;&#x2F;scripts.sil.org&#x2F;cms&#x2F;scripts&#x2F;page.php?site_id=nrsi&amp;id=...</a>
评论 #14948641 未加载
lifthrasiiralmost 8 years ago
It is both reasonable and unfortunate that TrueType &amp; OpenType fonts can have no more than 65,535 glyphs. That said, probably the logical font made of multiple physical fonts can be probably made to support all available planes.
评论 #14944944 未加载
edemalmost 8 years ago
We had a bug some weeks ago which was caused by a missing `trim` and an invisible chararcter. Our tester copied some text from a webpage which had such characters. This font is helpful in those cases.
hobarreraalmost 8 years ago
Does anyone know the name of the app that&#x27;s listing&#x2F;displaying fonts? It looks pretty neat, and I haven&#x27;t found anything good-looking like that for Linux&#x2F;*nix.
评论 #14944911 未加载
LoSboccaccalmost 8 years ago
very nice! this should be the default binary view on many, many things, especially debuggers&#x2F;inspectors.<p>how does it handle combining characters? do they get everything in a single box or are going to be rendered as two boxes?
评论 #14948507 未加载
dgreenspalmost 8 years ago
I feel like I&#x27;m missing the punchline. How big is the generated font?
评论 #14948557 未加载
insulanianalmost 8 years ago
I&#x27;d call it &quot;Unfont&quot; :-)
boltnalmost 8 years ago
how would one go about running code&#x2F;operations on ram as opposed to the hd?
评论 #14943573 未加载
评论 #14943530 未加载
nicostouchalmost 8 years ago
TOFU = Terrified Of Fucking it Up.<p>e.g I wanna try it but i&#x27;m TOFU