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.

For crisp edges, use anything but crispEdges

4 pointsby flipstewartover 12 years ago

2 comments

chrisdroukasover 12 years ago
Interesting.<p>If I'm reading this right, the result shouldn't be surprising (though maybe inappropriately named?). Consider:<p><pre><code> {shape-rendering: crisp-edges;} Indicates that the user agent should attempt to emphasize the contrast between clean edges of artwork over rendering speed and geometric precision. To achieve crisp edges, the user agent might turn off anti-aliasing for all lines or possibly just for straight lines which are close to vertical or horizontal. Also, the user agent might adjust line positions and line widths to align edges with device pixels. </code></pre> Would a circle not be a graphic you'd want to be geometrically precise, making {shape-rendering: geometric-precision;} the most appropriate choice?
评论 #4582995 未加载
davebeesover 12 years ago
The crispEdges circle doesn't look good – but it's certainly not “blurry”.
评论 #4582963 未加载