/* The fonts Fontes carries, for the scripts a computer may have no font for.
   fonts/README.txt says what each file is and where it came from.

   Each face is named "Fontes ..." and is reached through the stacks of the
   [data-script] block in app.css, after any better font the computer has.
   Each looks first for the same font installed under its own name (local()),
   so a computer that has it downloads nothing; and each covers only its own
   script and the marks that sit on it (unicode-range), so a browser fetches it
   only when a letter of that script is drawn and no font before it in the
   stack has the letter. The paths are relative, so this works from a folder
   as well as from a web server. */

@font-face {
  font-family: "Fontes Coptic";
  src: local("Noto Sans Coptic Regular"), local("NotoSansCoptic-Regular"),
       url("../fonts/NotoSansCoptic-Regular.ttf") format("truetype");
  unicode-range: U+2C80-2CFF, U+03E2-03EF, U+0300-0302, U+0304-0305, U+0307-0308, U+0311, U+0323,
                 U+033F, U+035E, U+0361, U+1DCD, U+2E17, U+2E33-2E34, U+FE24-FE26;
}

/* Greek and Cyrillic come from Noto Serif, cut down to those two scripts and
   the combining marks (fonts/README.txt). Greek is a fallback only: every
   common system sets polytonic Greek, and this face is fetched for the rare
   sign a system font lacks. */
@font-face {
  font-family: "Fontes Greek";
  src: local("Noto Serif Regular"), local("NotoSerif-Regular"),
       url("../fonts/NotoSerif-Greek.ttf") format("truetype");
  unicode-range: U+0370-03FF, U+1F00-1FFF, U+0300-036F, U+1DC0-1DFF, U+FE20-FE2F;
}
@font-face {
  font-family: "Fontes Slavonic";
  src: local("Noto Serif Regular"), local("NotoSerif-Regular"),
       url("../fonts/NotoSerif-Cyrillic.ttf") format("truetype");
  unicode-range: U+0400-052F, U+1C80-1C8F, U+2DE0-2DFF, U+A640-A69F, U+0300-036F, U+1DC0-1DFF,
                 U+FE20-FE2F, U+02BC, U+2E2F;
}

/* Ezra SIL is carried whole and unaltered, in the WOFF file SIL publishes:
   its licence reserves the names "Ezra" and "SIL", so it may not be cut down. */
@font-face {
  font-family: "Fontes Hebrew";
  src: local("Ezra SIL"), local("EzraSIL"),
       url("../fonts/SILEOT.woff") format("woff");
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+034F, U+200C-200F;
}

@font-face {
  font-family: "Fontes Syriac";
  src: local("Noto Sans Syriac Regular"), local("NotoSansSyriac-Regular"),
       url("../fonts/NotoSansSyriac-Regular.ttf") format("truetype");
  unicode-range: U+0700-074F, U+0860-086F, U+0303-0304, U+0307-0308, U+030A, U+0320, U+0323-0325,
                 U+032D-032E, U+0330-0331, U+060C, U+061B, U+061F, U+0640, U+200C-200F;
}

@font-face {
  font-family: "Fontes Armenian";
  src: local("Noto Serif Armenian Regular"), local("NotoSerifArmenian-Regular"),
       url("../fonts/NotoSerifArmenian-Regular.ttf") format("truetype");
  unicode-range: U+0530-058F, U+FB13-FB17, U+0308;
}

@font-face {
  font-family: "Fontes Georgian";
  src: local("Noto Serif Georgian Regular"), local("NotoSerifGeorgian-Regular"),
       url("../fonts/NotoSerifGeorgian-Regular.ttf") format("truetype");
  unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}

@font-face {
  font-family: "Fontes Gothic";
  src: local("Noto Sans Gothic Regular"), local("NotoSansGothic-Regular"),
       url("../fonts/NotoSansGothic-Regular.ttf") format("truetype");
  unicode-range: U+10330-1034F, U+0304-0305, U+0308, U+0331;
}

@font-face {
  font-family: "Fontes Glagolitic";
  src: local("Noto Sans Glagolitic Regular"), local("NotoSansGlagolitic-Regular"),
       url("../fonts/NotoSansGlagolitic-Regular.ttf") format("truetype");
  unicode-range: U+2C00-2C5F, U+1E000-1E02F, U+0303, U+0305, U+0483-0484, U+0487, U+A66F;
}

@font-face {
  font-family: "Fontes Ugaritic";
  src: local("Noto Sans Ugaritic Regular"), local("NotoSansUgaritic-Regular"),
       url("../fonts/NotoSansUgaritic-Regular.ttf") format("truetype");
  unicode-range: U+10380-1039F;
}

/* The largest of them, at 820 KB, and carried whole: a cut-down copy would
   have to be cut again whenever a text brings a sign it lacks. */
@font-face {
  font-family: "Fontes Cuneiform";
  src: local("Noto Sans Cuneiform Regular"), local("NotoSansCuneiform-Regular"),
       url("../fonts/NotoSansCuneiform-Regular.ttf") format("truetype");
  unicode-range: U+12000-1254F;
}
