r0.1.2; also improved presentation of mark glyphs

This commit is contained in:
be5invis 2015-08-15 09:51:37 +08:00
parent 7415a994ad
commit 2c07e255e7
13 changed files with 14 additions and 6 deletions

View File

@ -100,6 +100,12 @@
text-decoration: none; text-decoration: none;
position: relative; position: relative;
} }
.show div.block span > s > d {
position: absolute;
z-index: 2;
color: #ddd;
text-shadow: 0 0 2px white;
}
.show div.block span.present:hover s:before { .show div.block span.present:hover s:before {
display: block; display: block;
content: ''; content: '';
@ -172,7 +178,7 @@
</html> </html>
<body> <body>
<p>Iosevka is a monospace coding typeface inspired by <a href="http://www.fsd.it/fonts/pragmatapro.htm">Pragmata Pro</a>, <a href="http://mplus-fonts.osdn.jp/">M+</a> and <a href="http://www.parachute.gr/typefaces/allfonts/din-mono-pro">PF DIN Mono</a>. It is designed to have a narrow shape to be space efficient and compatible to CJK characters.</p> <p>Iosevka is a monospace coding typeface inspired by <a href="http://www.fsd.it/fonts/pragmatapro.htm">Pragmata Pro</a>, <a href="http://mplus-fonts.osdn.jp/">M+</a> and <a href="http://www.parachute.gr/typefaces/allfonts/din-mono-pro">PF DIN Mono</a>. It is designed to have a narrow shape to be space efficient and compatible to CJK characters.</p>
<p>The current release is <strong><a href="https://github.com/be5invis/Iosevka/releases/tag/v0.1.1">v0.1.1</a></strong>. You can find all releases <a href="https://github.com/be5invis/Iosevka/releases/">here</a>.</p> <p>The current release is <strong><a href="https://github.com/be5invis/Iosevka/releases/tag/v0.1.2">v0.1.2</a></strong>. You can find all releases <a href="https://github.com/be5invis/Iosevka/releases/">here</a>.</p>
<p>By the way it is completely generated by <a href="http://github.com/be5invis/Iosevka">code</a>.</p> <p>By the way it is completely generated by <a href="http://github.com/be5invis/Iosevka">code</a>.</p>
<div id="links"></div> <div id="links"></div>
<script> <script>
@ -237,10 +243,12 @@
$.get(font.name + '.charmap', function(data){ $.get(font.name + '.charmap', function(data){
data = JSON.parse(data); data = JSON.parse(data);
var uhash = []; var uhash = [];
var whash = [];
for(var j = 0; j < data.length; j++) { for(var j = 0; j < data.length; j++) {
var unicodes = data[j][1]; var unicodes = data[j][1];
if(unicodes && unicodes.length) for(var k = 0; k < unicodes.length; k++){ if(unicodes && unicodes.length) for(var k = 0; k < unicodes.length; k++){
uhash[unicodes[k]] = data[j][0].trim() uhash[unicodes[k]] = data[j][0].trim()
whash[unicodes[k]] = data[j][2]
} }
} }
for(var block = 0; block < (65536 / BLOCKSIZE); block++) { for(var block = 0; block < (65536 / BLOCKSIZE); block++) {
@ -252,7 +260,7 @@
if(hasGlyphInThisBlock) { if(hasGlyphInThisBlock) {
for(j = block * BLOCKSIZE; j < (block + 1) * BLOCKSIZE; j++) { for(j = block * BLOCKSIZE; j < (block + 1) * BLOCKSIZE; j++) {
if(j % 16 === 0) blockdiv.append('<span class="indicator">' + padzero(j.toString(16).toUpperCase(), 4) + '</span>') if(j % 16 === 0) blockdiv.append('<span class="indicator">' + padzero(j.toString(16).toUpperCase(), 4) + '</span>')
blockdiv.append('<span class="' + (uhash[j] ? 'present' : 'missing') + '" alt="' + (uhash[j] || '') + '"><s>' + String.fromCharCode(j) + '</s></span>') blockdiv.append('<span class="' + (uhash[j] ? 'present' : 'missing') + '" alt="' + (uhash[j] || '') + '"><s>' + (whash[j] ? '<d>\u25CC</d>\u25CC': '') + String.fromCharCode(j) + '</s></span>')
} }
div.append(blockdiv) div.append(blockdiv)
} }

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.