mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix(fonts): move fonts to public folder so that its served as static assets via cra & works in export (#2264)
This commit is contained in:
parent
6db5647048
commit
1034ec91b8
9 changed files with 17 additions and 28 deletions
|
@ -81,6 +81,9 @@
|
|||
href="manifest.json"
|
||||
style="--pwacompat-splash-font: 24px Virgil"
|
||||
/>
|
||||
|
||||
<link rel="stylesheet" href="fonts.css" type="text/css" />
|
||||
|
||||
<% if (process.env.REACT_APP_INCLUDE_GTAG === 'true') { %>
|
||||
<script
|
||||
async
|
||||
|
@ -109,20 +112,6 @@
|
|||
height: 100vh;
|
||||
}
|
||||
|
||||
/* http://www.eaglefonts.com/fg-virgil-ttf-131249.htm */
|
||||
@font-face {
|
||||
font-family: "Virgil";
|
||||
src: url("../src/fonts/FG_Virgil.woff2");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* https://github.com/microsoft/cascadia-code */
|
||||
@font-face {
|
||||
font-family: "Cascadia";
|
||||
src: url("../src/fonts/Cascadia.woff2");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute !important;
|
||||
height: 1px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue