Skip to content

Instantly share code, notes, and snippets.

View lanzhiheng's full-sized avatar
😺
Fine

Lan lanzhiheng

😺
Fine
View GitHub Profile
@lanzhiheng
lanzhiheng / gist:3c158762b6cae124625ad69b6608464d
Created May 19, 2017 02:53 — forked from joubertnel/gist:870190
HTML5 Canvas - Rendering of Text on high-DPI screens
<html>
<head>
<script src='http://code.jquery.com/jquery-1.5.1.min.js'></script>
</head>
<body>
<h2>Naive canvas</h2>
<canvas id="naive" width="400" height="50"></canvas>
<h2>High-def Canvas</h2>