mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-13 16:17:55 +00:00
Chore: add CC0 license metadata
This commit is contained in:
@@ -51,15 +51,19 @@ const mkGlyph=(name,unicode,adv,pathFn)=>
|
|||||||
});
|
});
|
||||||
|
|
||||||
const glyphSpace=mkGlyph("space"," ".codePointAt(0),260,p=>p);
|
const glyphSpace=mkGlyph("space"," ".codePointAt(0),260,p=>p);
|
||||||
const glyphPeriod=mkGlyph("period","."
|
const glyphPeriod=mkGlyph(
|
||||||
.codePointAt(0),260,p=>{
|
"period",
|
||||||
p.moveTo(80,0);
|
".".codePointAt(0),
|
||||||
p.lineTo(80,120);
|
260,
|
||||||
p.lineTo(180,120);
|
p=>{
|
||||||
p.lineTo(180,0);
|
p.moveTo(80,0);
|
||||||
p.close();
|
p.lineTo(80,120);
|
||||||
return p;
|
p.lineTo(180,120);
|
||||||
});
|
p.lineTo(180,0);
|
||||||
|
p.close();
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const glyphList=[
|
const glyphList=[
|
||||||
glyphSpace,
|
glyphSpace,
|
||||||
@@ -125,7 +129,7 @@ const font=new opentype.Font({
|
|||||||
ascender,
|
ascender,
|
||||||
descender,
|
descender,
|
||||||
glyphs:glyphList,
|
glyphs:glyphList,
|
||||||
copyright:"Author: Anon"
|
copyright:"Author: Anon. License: CC0 1.0 Universal."
|
||||||
});
|
});
|
||||||
|
|
||||||
const buf=Buffer.from(font.toArrayBuffer());
|
const buf=Buffer.from(font.toArrayBuffer());
|
||||||
|
|||||||
Reference in New Issue
Block a user