diff --git a/images/charvars.png b/images/charvars.png new file mode 100644 index 000000000..5658932c7 Binary files /dev/null and b/images/charvars.png differ diff --git a/images/download-options.png b/images/download-options.png index 0ee85779f..a88b69790 100644 Binary files a/images/download-options.png and b/images/download-options.png differ diff --git a/images/family.png b/images/family.png index 01911ab24..a0c87130c 100644 Binary files a/images/family.png and b/images/family.png differ diff --git a/images/languages.png b/images/languages.png index 639700433..189f15777 100644 Binary files a/images/languages.png and b/images/languages.png differ diff --git a/images/ligations.png b/images/ligations.png index db9da231b..259a1c87a 100644 Binary files a/images/ligations.png and b/images/ligations.png differ diff --git a/images/matrix.png b/images/matrix.png index c49a48463..aa54ef1b1 100644 Binary files a/images/matrix.png and b/images/matrix.png differ diff --git a/images/preview-all.png b/images/preview-all.png index 89b95fc52..1dea26871 100644 Binary files a/images/preview-all.png and b/images/preview-all.png differ diff --git a/images/stylesets.png b/images/stylesets.png new file mode 100644 index 000000000..54979a5f7 Binary files /dev/null and b/images/stylesets.png differ diff --git a/images/variants.png b/images/variants.png index e320d2be4..6dabf0dfa 100644 Binary files a/images/variants.png and b/images/variants.png differ diff --git a/images/weights.png b/images/weights.png index 4971a28a7..9cb30e680 100644 Binary files a/images/weights.png and b/images/weights.png differ diff --git a/snapshot/index.html b/snapshot/index.html index 2357826fe..979111231 100644 --- a/snapshot/index.html +++ b/snapshot/index.html @@ -22,194 +22,195 @@ HeavySlab HeavyHeavy ItalicSlab Heavy ItalicHeavy ObliqueSlab Heavy Oblique -
-

Opentype features

+
Stylistic Sets
-
    -
  1. - offDefault - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  2. - ss01Andale Mono Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  3. - ss02Anonymous Pro Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  4. - ss03Consolas Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  5. - ss04Menlo Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  6. - ss05Fira Mono Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  7. - ss06Liberation Mono Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  8. - ss07Monaco Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  9. - ss08Pragmata Pro Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  10. - ss09Source Code Pro Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  11. - ss10Envy Code R Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  12. -
  13. - ss11X Windows Fixed Style - @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 -
  14. -
Character Variants
-
    -
  1. - cv01 - aa -
  2. - cv02 - aa -
  3. - cv03 - ii -
  4. - cv04 - ii -
  5. - cv05 - ii -
  6. - cv06 - ii -
  7. - cv07 - ll -
  8. - cv08 - ll -
  9. - cv09 - ll -
  10. - cv10 - ll -
  11. - cv11 - gg -
  12. - cv12 - gg -
  13. - cv13 - 00 -
  14. - cv14 - 00 -
  15. - cv15 - 00 -
  16. - cv16 - ~~ -
  17. - cv17 - ~~ -
  18. - cv18 - ** -
  19. - cv19 - ** -
  20. - cv20 - __ -
  21. - cv21 - __ -
  22. - cv22 - -
  23. - cv23 - -
  24. - cv24 - gg -
  25. - cv25 - mm -
  26. - cv26 - mm -
  27. - cv27 - ll -
  28. - cv28 - ll -
  29. - cv29 - ^^ -
  30. - cv30 - ^^ -
  31. - cv31 - @@ -
  32. - cv32 - @@ -
  33. - cv33 - @@ -
  34. - cv34 - ßß -
  35. - cv35 - ßß -
  36. - cv36 - {{ -
  37. - cv37 - {{ -
  38. - cv38 - $$ -
  39. - cv39 - $$ -
  40. - cv40 - tt -
  41. - cv41 - tt -
  42. - cv42 - QQ -
  43. - cv43 - QQ -
  44. - cv44 - ## -
  45. - cv45 - ## -
  46. -
  47. - cv46 - 33 -
  48. - cv47 - 33 -
  49. -
+
    +
  1. + offDefault + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  2. + ss01Andale Mono Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  3. + ss02Anonymous Pro Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  4. + ss03Consolas Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  5. + ss04Menlo Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  6. + ss05Fira Mono Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  7. + ss06Liberation Mono Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  8. + ss07Monaco Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  9. + ss08Pragmata Pro Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  10. + ss09Source Code Pro Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  11. + ss10Envy Code R Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  12. + ss11X Windows Fixed Style + @real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789@real fox.quick(h){ *is_brown && it_jumps_over(doges.lazy) } 0123456789 +
  13. +
+
+
+
Character Variants
+
    +
  1. + cv01 + aa +
  2. + cv02 + aa +
  3. + cv03 + ii +
  4. + cv04 + ii +
  5. + cv05 + ii +
  6. + cv06 + ii +
  7. + cv07 + ll +
  8. + cv08 + ll +
  9. + cv09 + ll +
  10. + cv10 + ll +
  11. + cv11 + gg +
  12. + cv12 + gg +
  13. + cv13 + 00 +
  14. + cv14 + 00 +
  15. + cv15 + 00 +
  16. + cv16 + ~~ +
  17. + cv17 + ~~ +
  18. + cv18 + ** +
  19. + cv19 + ** +
  20. + cv20 + __ +
  21. + cv21 + __ +
  22. + cv22 + +
  23. + cv23 + +
  24. + cv24 + gg +
  25. + cv25 + mm +
  26. + cv26 + mm +
  27. + cv27 + ll +
  28. + cv28 + ll +
  29. + cv29 + ^^ +
  30. + cv30 + ^^ +
  31. + cv31 + @@ +
  32. + cv32 + @@ +
  33. + cv33 + @@ +
  34. + cv34 + ßß +
  35. + cv35 + ßß +
  36. + cv36 + {{ +
  37. + cv37 + {{ +
  38. + cv38 + $$ +
  39. + cv39 + $$ +
  40. + cv40 + tt +
  41. + cv41 + tt +
  42. + cv42 + QQ +
  43. + cv43 + QQ +
  44. + cv44 + ## +
  45. + cv45 + ## +
  46. +
  47. + cv46 + 33 +
  48. + cv47 + 33 +
  49. +
diff --git a/snapshot/index.js b/snapshot/index.js index 71a06c676..feb0f3c12 100644 --- a/snapshot/index.js +++ b/snapshot/index.js @@ -1,98 +1,107 @@ -if(window && window.process && window.process.type && process.versions['electron']) (function(){ - console.log('I AN IN ELECTRON'); - var windowWidth = window.innerWidth; - var windowHeight = window.innerHeight; - var dpi = window.devicePixelRatio; - var ipc = require('electron').ipcRenderer; - - var onScroll = function(){}; - ipc.on('scroll', function(){ - onScroll.apply(this, arguments); - setTimeout(function(){ ipc.send('snapshot', 'scroll-done') }, 500); - }); - var onComplete = function(){}; - ipc.on('complete', function(){ onComplete.apply(this, arguments) }); - - function captureElement(options, callback){ - window.scroll(0, 0); - setTimeout(function(){ - var rect = options.el.getBoundingClientRect(); - onScroll = function(event, arg){ - window.scrollTo(0, arg); +if (window && window.process && window.process.type && process.versions["electron"]) + (function() { + console.log("I AN IN ELECTRON"); + var windowWidth = window.innerWidth; + var windowHeight = window.innerHeight; + var dpi = window.devicePixelRatio; + var ipc = require("electron").ipcRenderer; + + var onScroll = function() {}; + ipc.on("scroll", function() { + onScroll.apply(this, arguments); + setTimeout(function() { + ipc.send("snapshot", "scroll-done"); + }, 500); + }); + var onComplete = function() {}; + ipc.on("complete", function() { + onComplete.apply(this, arguments); + }); + + function captureElement(options, callback) { + window.scroll(0, 0); + setTimeout(function() { + var rect = options.el.getBoundingClientRect(); + onScroll = function(event, arg) { + window.scrollTo(0, arg); + }; + onComplete = function() { + if (callback) callback(); + onComplete = function() {}; + }; + ipc.send("snapshot", { + name: options.name, + windowWidth: windowWidth, + windowHeight: windowHeight, + doubleTrim: options.doubleTrim, + dpi: dpi, + x: rect.left | 0, + y: rect.top | 0, + width: rect.width | 0, + height: rect.height | 0 + }); + }, 10); + } + + window.onload = function() { + var snapshotTasks = [ + { + el: document.querySelector("#downloadoptions"), + name: "download-options", + doubleTrim: "white" + }, + { + el: document.querySelector("#languages"), + name: "languages" + }, + { + el: document.querySelector("#variants"), + name: "variants" + }, + { + el: document.querySelector("#stylesets"), + name: "stylesets" + }, + { + el: document.querySelector("#charvars"), + name: "charvars" + }, + { + el: document.querySelector("#matrix"), + name: "matrix" + }, + { + el: document.querySelector("#family"), + name: "family" + }, + { + el: document.querySelector("#previews"), + name: "preview-all" + }, + { + el: document.querySelector("#weights"), + name: "weights" + }, + { + el: document.querySelector("#ligations"), + name: "ligations", + doubleTrim: "white" + } + ]; + current = 0; + var step = function() { + var doit = function() { + captureElement(snapshotTasks[current], function() { + current += 1; + if (current >= snapshotTasks.length) window.close(); + else setTimeout(step, 100); + }); + }; + if (snapshotTasks[current].prepare) snapshotTasks[current].prepare(doit); + else setTimeout(doit, 100); }; - onComplete = function(){ - if(callback) callback(); - onComplete = function(){}; - }; - ipc.send('snapshot', { - name: options.name, - windowWidth: windowWidth, - windowHeight: windowHeight, - doubleTrim: options.doubleTrim, - dpi: dpi, - x: rect.left | 0, - y: rect.top | 0, - width: rect.width | 0, - height: rect.height | 0 - }); - }, 10); - } - - window.onload = function(){ - var snapshotTasks = [ - { - el: document.querySelector('#downloadoptions'), - name: 'download-options', - doubleTrim: 'white' - }, - { - el: document.querySelector('#languages'), - name: 'languages' - }, - { - el: document.querySelector('#variants'), - name: 'variants' - }, - { - el: document.querySelector('#opentype'), - name: 'opentype' - }, - { - el: document.querySelector('#matrix'), - name: 'matrix' - }, - { - el: document.querySelector('#family'), - name: 'family' - }, - { - el: document.querySelector('#previews'), - name: 'preview-all' - }, - { - el: document.querySelector('#weights'), - name: 'weights' - }, - { - el: document.querySelector('#ligations'), - name: 'ligations', - doubleTrim: 'white' - } - ]; - current = 0; - var step = function(){ - var doit = function(){ - captureElement(snapshotTasks[current], function(){ - current += 1; - if(current >= snapshotTasks.length) window.close() - else setTimeout(step, 100) - }) - }; - if(snapshotTasks[current].prepare) snapshotTasks[current].prepare(doit); - else setTimeout(doit, 100) + ipc.send("snapshot", "i am ready"); + console.log("I AM READY"); + setTimeout(step, 2000); }; - ipc.send('snapshot', 'i am ready'); - console.log('I AM READY'); - setTimeout(step, 2000); - } -})() \ No newline at end of file + })(); diff --git a/snapshot/index.styl b/snapshot/index.styl index 16fdbd222..f1732294a 100644 --- a/snapshot/index.styl +++ b/snapshot/index.styl @@ -114,7 +114,7 @@ section#matrix > div > row > span { padding: 0 0.5em } -section#opentype +section.opentype width: 36em padding: 0 8em > h2 { display: none }