Browse Source

Add Latin characters

pull/27/head
Jongmin Kim 5 years ago committed by GitHub
parent
commit
f025cd2b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      examples/all.html

5
examples/all.html

@ -54,7 +54,7 @@
}; };
leon = new LeonSans({ leon = new LeonSans({
text: 'abcdefghijklmn\nopqrstuvwxyz\nABCDEFGHIJK\nLMNOPQRST\nUVWXYZ\n0123456789\n?!$^&*(){}[]<>~\n:;,.\'"+=-_@#%', text: 'abcdefghijklmn\nopqrstuvwxyz\nABCDEFGHIJK\nLMNOPQRST\nUVWXYZ\n0123456789\n?!$^&*(){}[]<>~\n:;,.\'"+=-_@#%\nÀÁÂÃÄÅàáâãäå\nÈÉÊËèéêëÑñÝýÿ\nÌÍÎÏìíîïÙÚÛÜùúûü\nÒÓÔÕÖØòóôõöø\nĈĜĤĴŜŬâĉĝĥĵŝŭ',
color: ['#342f2e'], color: ['#342f2e'],
size: getSize(90), size: getSize(90),
weight: 200, weight: 200,
@ -83,7 +83,8 @@
ctx.clearRect(0, 0, sw, sh); ctx.clearRect(0, 0, sw, sh);
const x = (sw - leon.rect.w) / 2; const x = (sw - leon.rect.w) / 2;
const y = (sh - leon.rect.h) / 2; let y = (sh - leon.rect.h) / 2;
if (y < 0) y = 0;
leon.position(x + moveX, y + moveY); leon.position(x + moveX, y + moveY);
ctx.save(); ctx.save();

Loading…
Cancel
Save