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.

Unicoder.js

3 pointsby getdavidhigginsover 10 years ago

1 comment

cabirumover 10 years ago
This relies on limited number of precomposed characters and browser fallbacks to a font containing them. Chrome&#x2F;Windows cannot display anything except first and second-to-last lines, IE and FF work fine though.<p>You could instead use combining characters (\u20dd, \u20df) to decorate any unicode char, but the number of fonts supporting this feature is extremely limited. One such font is Cambria on Windows, but spaces should be used to properly center a char inside enclosing mark (&lt;char&gt; + space + \u20dd) [1]. I wonder if a font exists which fully supports combining chars and contains metrics for centering them.<p>[1] <a href="http://jsbin.com/cuxogojivo/2/edit?html,css,output" rel="nofollow">http:&#x2F;&#x2F;jsbin.com&#x2F;cuxogojivo&#x2F;2&#x2F;edit?html,css,output</a>