Skip to content

Commit

Permalink
[#64564] load Lato font in MystEditor.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin committed Nov 25, 2024
1 parent e799a3e commit 50ba834
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<html lang="en">
<head>
<title>MyST editor Demo</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./styles/MystEditor.css" />
<style>
body {
Expand Down
23 changes: 23 additions & 0 deletions src/styles/MystEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,26 @@
#myst-css-namespace .todo {
background-color: yellow;
}

/* Lato font */
/* latin-ext */
@font-face {
font-family: "Lato";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjxAwXjeu.woff2) format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
font-family: "Lato";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjx4wXg.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

0 comments on commit 50ba834

Please sign in to comment.