Skip to content

Instantly share code, notes, and snippets.

@ichadhr
Created December 28, 2017 20:05
Show Gist options
  • Save ichadhr/45da843a4ed630b753a87cf214243751 to your computer and use it in GitHub Desktop.
Save ichadhr/45da843a4ed630b753a87cf214243751 to your computer and use it in GitHub Desktop.
Font Character Test
<!DOCTYPE html>
<html>
<head>
<title>Testing Char</title>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Roboto);
body {
font-family: 'Roboto';
font-size: 18px; padding: 5px;
}
div {
display: inline-block;
background: #ddd;
color: #111;
margin: 4px;
width: 1.5em;
height: 1.5em;
text-align: center;
padding: 0.2em 0 0 0;
box-sizing: border-box;
}
div:hover {
cursor:
pointer;
background: #ccc;
}
</style>
<script type="text/javascript">
var content = "";
for (var i = 34; i < 30000; i++) {
if (i % 1000 === 0) { content += '<hr>'; }
content += "<div title='"+i+"'>" + String.fromCharCode(i) + "</div>";
}
window.onload = function() {
document.body.innerHTML = content;
}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment