Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No options defined for block variation" #38

Open
RobMcDesign opened this issue Apr 27, 2023 · 0 comments
Open

"No options defined for block variation" #38

RobMcDesign opened this issue Apr 27, 2023 · 0 comments

Comments

@RobMcDesign
Copy link

I'm trying to get a variable axis, I've followed the example from
https://underscoretype.github.io/fontsampler-js/variable.html

I've added the axes and instances to the font var
name: "VariableFontName",
files: ["VariableFontFile.woff2"],
  axes: ["wght"],
  instances: [
  "wght 500, | VariableFontName Regular",]

I've added a variation element
order: ["tester", ["fontsize", "variation", "fontfamily"]],

and I've tried to define that element
variation: {
axes: [{
tag: "wght",
init: 400,
min: 250,
max: 900,
step: 10,
label: "Weight"
}]
},

but I'm still getting the error. Am I missing something? I couldn't find any more documentation on variable font support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant