diff options
author | Och Noe <och_noe@forksworld.de> | 2019-03-01 19:55:30 +0100 |
---|---|---|
committer | Och Noe <och_noe@forksworld.de> | 2019-03-01 19:55:30 +0100 |
commit | 9ec2fed4c0fb4723b8b446a01701544a7b843594 (patch) | |
tree | 4af5b2741569007054dbd4ab82bff1c5a5c02d5d /gen.js | |
parent | c9a5f2931a150e6d2f76a70470646bb915cf2e99 (diff) | |
download | ehlphabet-9ec2fed4c0fb4723b8b446a01701544a7b843594.tar.gz ehlphabet-9ec2fed4c0fb4723b8b446a01701544a7b843594.tar.bz2 ehlphabet-9ec2fed4c0fb4723b8b446a01701544a7b843594.zip |
added greek letters and changed textures to 64 pixels
adapted gen.js for the texture size change
textures for 16px and 32px are also provided
Diffstat (limited to 'gen.js')
-rw-r--r-- | gen.js | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -1,6 +1,6 @@ var page = require('webpage').create(); -var w = 32; -var h = 32; +var w = 16; +var h = 16; var con = console; //viewportSize being the actual size of the headless browser @@ -25,7 +25,12 @@ var chars = [ // cyrillic "А", "Б", "В", "Г", "Д", "Е", "Ё", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь", - "Э", "Ю", "Я" + "Э", "Ю", "Я", + // greek + "Α", "Β", "Γ", "Δ", "Ε", "Ζ", "Η", "Θ", "Ι", "Κ", "Λ", "Μ", "Ν", "Ξ", "Ο", + "Π", "Ρ", "Σ", "Τ", "Υ", "Φ", "Χ", "Ψ", "Ω", + // + "猫" , // neko ]; function encode_utf8(s) { @@ -47,9 +52,13 @@ page.evaluate(function () { document.body.style.backgroundColor = 'white'; document.body.style.margin = '0px'; - chEl.style.fontSize = '24px'; + chEl.style.fontSize = '12px'; // 16 +// chEl.style.fontSize = '24px'; // 32 +// chEl.style.fontSize = '48px'; // 64 chEl.style.fontWeight = 'bold'; - chEl.style.marginTop = '2px'; + chEl.style.marginTop = '1px'; // 16 +// chEl.style.marginTop = '2px'; // 32 +// chEl.style.marginTop = '4px'; // 64 chEl.style.textAlign = 'center'; }); |