Skip to content

Commit

Permalink
s t u
Browse files Browse the repository at this point in the history
  • Loading branch information
nclslbrn committed May 8, 2024
1 parent 5362d44 commit 1a07f28
Show file tree
Hide file tree
Showing 4 changed files with 356 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const mirrorXGlyph = (g: Glyph) =>
g.map((l: Line) => l.map((p: Vec) => [1 - p[0], p[1]]));

// font["ɜ"] = mirrorYGlyph(font["ɛ"])
//alert(`ʁ: ${JSON.stringify(scaleGlyph(mirrorXGlyph(rotateGlyph(font["R"]))))},`);
//alert(`ɯ: ${JSON.stringify(mirrorXGlyph(font["w"]))},`);

for (let l = 0; l < lowercase.length; l++) {
if (font[lowercase[l]] === undefined) {
Expand Down
27 changes: 24 additions & 3 deletions src/glyphs/diacritics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ const diacritics = {
[0.6, 0.125],
],
],
// diaeresis below
drb: [
[
[0.4, 0.75],
[0.4, 0.775],
],
[
[0.6, 0.75],
[0.6, 0.755],
],
],

// tild
tl: [
[
Expand Down Expand Up @@ -184,7 +196,16 @@ const diacritics = {
[0.85, 0.7],
[0.85, 0.85],
[0.83, 0.88],
[0.75, 0.9]
[0.7, 0.9]
]
],
// hook bottom left
hbl: [
[
[0.15, 0.7],
[0.15, 0.85],
[0.17, 0.88],
[0.2, 0.9]
]
],
// line below
Expand Down Expand Up @@ -242,7 +263,7 @@ const diacritics = {
[0.49, 0.79],
[0.45, 0.8],
],
]
} as Font;
],
} as Font;

export default diacritics;
289 changes: 289 additions & 0 deletions src/glyphs/lowercase/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,79 @@ const base = {
[0.35, 0.7],
],
],
ȿ: [
[
[0.85, 0.3],
[0.15, 0.3],
[0.15, 0.5],
[0.85, 0.5],
[0.85, 0.7],
[0.15, 0.7],
],
[
[0.15, 0.7],
[0.25, 0.8],
[0.35, 0.8],
],
],
: [
[
[0.85, 0.3],
[0.35, 0.3],
[0.35, 0.9],
],
[
[0.15, 0.6],
[0.55, 0.4],
],
],
: [
[
[0.85, 0.3],
[0.35, 0.3],
[0.35, 0.9],
],
[
[0.15, 0.55],
[0.55, 0.55],
],
],
ʃ: [
[
[0.85, 0.3],
[0.5, 0.3],
[0.5, 0.9],
[0.15, 0.9],
],
],
ƪ: [
[
[0.45, 0.45],
[0.3, 0.45],
[0.3, 0.3],
[0.45, 0.3],
[0.45, 0.9],
[0.75, 0.9],
],
],
ʅ: [
[
[0.25, 0.3],
[0.5, 0.3],
[0.5, 0.9],
[0.75, 0.9],
],
],
ʆ: [
[
[0.85, 0.3],
[0.45, 0.3],
[0.45, 0.9],
[0.25, 0.9],
[0.25, 0.75],
[0.5, 0.75],
],
],

t: [
[
Expand All @@ -1641,6 +1714,129 @@ const base = {
[0.85, 0.7],
],
],
ʨ: [
[
[0.15, 0.3],
[0.5, 0.3],
],
[
[0.25, 0.2],
[0.25, 0.7],
[0.85, 0.6],
[0.85, 0.7],
[0.6, 0.7],
[0.6, 0.3],
[0.85, 0.3],
],
],
ƾ: [
[
[0.15, 0.3],
[0.85, 0.3],
],
[
[0.35, 0.2],
[0.35, 0.5],
[0.65, 0.5],
[0.65, 0.7],
[0.15, 0.7],
],
],
ʦ: [
[
[0.15, 0.3],
[0.5, 0.3],
],
[
[0.25, 0.2],
[0.25, 0.7],
[0.85, 0.7],
[0.85, 0.5],
[0.6, 0.5],
[0.6, 0.3],
[0.85, 0.3],
],
],
ʧ: [
[
[0.15, 0.3],
[0.5, 0.3],
],
[
[0.25, 0.2],
[0.25, 0.7],
[0.5, 0.7],
],
[
[0.75, 0.15],
[0.5, 0.15],
[0.5, 0.9],
[0.4, 0.9],
],
],
ŧ: [
[
[0.15, 0.3],
[0.85, 0.3],
],
[
[0.15, 0.5],
[0.85, 0.5],
],
[
[0.35, 0.2],
[0.35, 0.7],
[0.85, 0.7],
],
],
ƭ: [
[
[0.15, 0.3],
[0.85, 0.3],
],
[
[0.5, 0.2],
[0.35, 0.2],
[0.35, 0.7],
[0.85, 0.7],
],
],
ʈ: [
[
[0.15, 0.3],
[0.85, 0.3],
],
[
[0.35, 0.2],
[0.35, 0.9],
[0.65, 0.9],
],
],
ȶ: [
[
[0.25, 0.3],
[0.85, 0.3],
],
[
[0.5, 0.2],
[0.5, 0.7],
[0.85, 0.7],
[0.85, 0.5],
[0.25, 0.7],
],
],
ʇ: [
[
[0.85, 0.7],
[0.15, 0.7],
],
[
[0.65, 0.8],
[0.65, 0.3],
[0.15, 0.3],
],
],

u: [
[
[0.15, 0.3],
Expand All @@ -1652,6 +1848,99 @@ const base = {
[0.85, 0.3],
],
],
ʉ: [
[
[0.25, 0.3],
[0.25, 0.7],
[0.75, 0.7],
],
[
[0.75, 0.75],
[0.75, 0.3],
],
[
[0.15, 0.45],
[0.85, 0.45],
],
],
ɥ: [
[
[0.25, 0.3],
[0.25, 0.7],
[0.8, 0.7],
],
[
[0.75, 0.9],
[0.75, 0.3],
],
],
ʮ: [
[
[0.25, 0.3],
[0.35, 0.3],
[0.35, 0.7],
[0.8, 0.7],
],
[
[0.75, 0.9],
[0.75, 0.3],
],
],
ʯ: [
[
[0.25, 0.3],
[0.35, 0.3],
[0.35, 0.7],
[0.8, 0.7],
],
[
[0.85, 0.9],
[0.75, 0.9],
[0.75, 0.3],
],
],
ɯ: [
[
[0.85, 0.3],
[0.85, 0.725],
],
[
[0.85, 0.7],
[0.15, 0.7],
[0.15, 0.3],
],
[
[0.5, 0.3],
[0.5, 0.7],
],
],
ɰ: [
[
[0.75, 0.3],
[0.75, 0.9],
],
[
[0.75, 0.7],
[0.25, 0.7],
[0.25, 0.3],
],
[
[0.5, 0.3],
[0.5, 0.7],
],
],
ʊ: [
[
[0.15, 0.3],
[0.45, 0.3],
[0.25, 0.7],
[0.75, 0.7],
[0.55, 0.3],
[0.85, 0.3]
]
],


v: [
[
[0.15, 0.3],
Expand Down
Loading

0 comments on commit 1a07f28

Please sign in to comment.