Silex icon indicating copy to clipboard operation
Silex copied to clipboard

Bug when adding a font without a URL

Open lexoyo opened this issue 2 years ago • 0 comments

When I embed a font without giving it a URL, the website tries to load it anyway, whereas it should only display it in the style editor but not add a <link href="http://localhost:8080/css/" rel="stylesheet" class="silex-custom-font"> without a file name

I want to be able to add fonts with no URL in these cases:

  1. When I want the font to be displayed only when the user has it installed locally
  2. When I import several fonts with 1 URL, then the other imports have no fonts, e.g. google font https://fonts.googleapis.com/css2?family=Noto+Sans&family=Noto+Serif:ital,wght@1,700&display=swap

lexoyo avatar Jun 24 '22 10:06 lexoyo