Enabling slashed zero for the default font "Inter" through CSS

Inter comes with the slashed zero as a variant, which I would like to enable via custom CSS. However, the following CSS rule seems to have no effect:

.rem-text { 
    font-variant-numeric: slashed-zero;
}
1 Like

Quick fix:

@import url("https://cdnjs.cloudflare.com/ajax/libs/inter-ui/3.19.3/inter.css");
.rem-text { 
    font-variant-numeric: slashed-zero;
}
2 Likes

Thank you for taking the time to answer. I can confirm that this works.

1 Like