Skip to content

Commit

Permalink
Add diacritics to EFG
Browse files Browse the repository at this point in the history
  • Loading branch information
nclslbrn committed May 16, 2024
1 parent d79514a commit b04990c
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 415 deletions.
4 changes: 2 additions & 2 deletions demo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const DEBUG = false;
const rotateGlyph = (g: Glyph) =>
g.map((l: Line) => l.map((p: Vec) => [1 - p[0], 1 - p[1]]));
const upscaleGlyph = (g: Glyph) =>
g.map((l: Line) => l.map((p: Vec) => [p[0] * 1.1 - 0.05, p[1] * 1.1 - 0.05]));
g.map((l: Line) => l.map((p: Vec) => [p[0] * 1.33 - 0.166, p[1] * 1.33 - 0.33]));

const scaleGlyph = (g: Glyph) =>
g.map((l: Line) =>
Expand All @@ -19,7 +19,7 @@ const mirrorYGlyph = (g: Glyph) =>
g.map((l: Line) => l.map((p: Vec) => [1 - p[0], p[1]]));

// font["ɜ"] = mirrorYGlyph(font["ɛ"])
// alert(`ʖ: ${JSON.stringify(rotateGlyph(font["ʕ"]))},`);
// alert(`Ɣ: ${JSON.stringify(upscaleGlyph(font["ɣ"]))},`);

for (let l = 0; l < letters.length; l++) {
if (font[letters[l]] === undefined) {
Expand Down
Loading

0 comments on commit b04990c

Please sign in to comment.