Skip to content

Commit

Permalink
fixed issue with adding Custom instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorp committed May 23, 2024
1 parent 6db3ede commit a2f8f30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function loadFontFromArrayBuffer (arrayBuffer, options={}) {
GLOBAL.axisTouched = 0;

// add render for the current location
addRender();
addRender(undefined, GLOBAL.current[0], "Current");

// add renders for each named instance
GLOBAL.font.fvar.instances.forEach(instance => addRender(null, instance.coordinates, instance.name));
Expand Down Expand Up @@ -556,7 +556,7 @@ function getDefaultAxisCoords() {
return GLOBAL.font.fvar.axes.map((axis, a) => axis.defaultValue );
}

function addRender(e, coords = GLOBAL.current[0], name="Current", color) {
function addRender(e, coords = GLOBAL.current[0], name="Custom", color) {


// the render item
Expand Down

0 comments on commit a2f8f30

Please sign in to comment.