@font-palette-value css

Is font-palette-value only used to change the color of a custom font, Can't font-palette-value be used to set other values ​​such as setting the size of a custom font. I've tried it and it doesn't work, but on the other hand there are those who say it can I don't understand.
3 Replies
Jochem
Jochem9mo ago
it's usually best to refer back to MDN or the spec if you're wondering if something is possible The css w3c spec seems to indicate this is for colors only: https://drafts.csswg.org/css-fonts/#at-ruledef-font-palette-values
MarkBoots
MarkBoots9mo ago
Never used it myself, but i think this has to do with the options within the fontfile itself. With colored fonts there are 1 or more colors defined inside the file. you can override these with font-pallete-value
Abrar(watching bleach 🗿)
Thank you for the explanation sir