After migrating to Vaadin 25 the MaterialSymbols are no longer working:
That’s how I included it in my styles.css
@font-face {
font-family: "Material Symbols";
font-weight: 400;
src: url("./fonts/MaterialSymbols.woff2") format("woff2");
}
.material-symbols {
display: inline-block;
direction: ltr;
font-family: "Material Symbols";
font-feature-settings: "liga";
font-size: var(--lumo-icon-size-m);
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-height: 1;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
text-transform: none;
white-space: nowrap;
word-wrap: normal;
}
As long as a was using the @Theme annotation everything worked.
Now I move the styles.css and the fonts direcotry to /src/main/resources/META-INF/resources and the font no longer works.
Any ideas?