Chore: add CC0 license metadata

This commit is contained in:
2025-11-09 13:08:53 -08:00
parent fefad16607
commit 8f6bd42d4e

View File

@@ -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());