Skip to content

Commit

Permalink
font info now includes filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorp committed Feb 1, 2024
1 parent 224bed9 commit e1f1b3f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/fencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ function onDropFont (e) {
const font = new SamsaFont(new SamsaBuffer(arrayBuffer));
let str = "";

// set name
// filename, font name
str += file.name + "\n";
str += font.names[6] + "\n";
str += "-".repeat(font.names[6].length) + "\n";
//str += "-".repeat(font.names[6].length) + "\n";
str += "---\n";

// file name


// repeat string 6 times

// report axes
str += "AXES: \n";
font.fvar.axes.forEach(axis => {
str += `${axis.axisTag} ${axis.minValue} ${axis.defaultValue} ${axis.maxValue}\n`;
});
Expand Down

0 comments on commit e1f1b3f

Please sign in to comment.