Mercurial > tiny-letterpress
changeset 14:c156c147c741
Added ligatures.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Mon, 03 May 2010 11:23:39 -0700 |
parents | e34413f21290 |
children | d7761afdae70 |
files | index.html |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/index.html Sun May 02 19:40:01 2010 -0700 +++ b/index.html Mon May 03 11:23:39 2010 -0700 @@ -336,12 +336,17 @@ function addLetters() { var node = this; + const LIGATURES = "\u0026\u00DF\u00C6\u00E6\u0152\u0153" + + "\u0132\u0133\u1D6B\uFB00\uFB01\uFB02" + + "\uFB03\uFB04\uFB05\uFB06"; const ALPHABET = "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - for (var i = 0; i < ALPHABET.length; i++) { + var letters = ALPHABET + LIGATURES; + + for (var i = 0; i < letters.length; i++) { var div = document.createElement("div"); - div.textContent = ALPHABET[i]; + div.textContent = letters[i]; div.className = "letter-prototype"; node.appendChild(div); }