Skip to content

Commit 33ae373

Browse files
committed
Fix order of values
1 parent bd70f58 commit 33ae373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type/p5.Font.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ export class Font {
684684
let axs;
685685
if ((this.data?.fvar?.length ?? 0) > 0) {
686686
const fontAxes = this.data.fvar[0];
687-
axs = fontAxes.map(([tag, minVal, maxVal, defaultVal, flags, name]) => {
687+
axs = fontAxes.map(([tag, minVal, defaultVal, maxVal, flags, name]) => {
688688
if (!renderer) return defaultVal;
689689
if (tag === 'wght') {
690690
return renderer.states.fontWeight;
@@ -973,7 +973,7 @@ function createFontFace(name, path, descriptors, rawFont) {
973973

974974
if ((rawFont?.fvar?.length ?? 0) > 0) {
975975
descriptors = descriptors || {};
976-
for (const [tag, minVal, maxVal, defaultVal, flags, name] of rawFont.fvar[0]) {
976+
for (const [tag, minVal, defaultVal, maxVal, flags, name] of rawFont.fvar[0]) {
977977
if (tag === 'wght') {
978978
descriptors.weight = `${minVal} ${maxVal}`;
979979
} else if (tag === 'wdth') {

0 commit comments

Comments
 (0)