/* TH Sarabun New — the face every sale document is designed in.
 *
 * Until this file existed the templates only named the font and hoped the reader had
 * it installed: present on a Windows machine with MS Office, absent on macOS, where the
 * document fell back to Tahoma. Different glyph widths, different line counts, different
 * page counts — the same contract printed as five pages on one desk and six on another.
 * Serving the font ourselves is what makes the page count a property of the document
 * instead of a property of whoever opened it.
 *
 * Loaded from index.html for the app, and by <link> inside the editor's preview iframe,
 * which does not inherit the parent document's @font-face rules. A headless Chromium
 * rendering these pages picks it up the same way, with no font installed in the image.
 *
 * font-display: block, not swap — a document that flashes in Tahoma and reflows is worse
 * than one that appears a moment later, and print may capture whatever is on screen.
 *
 * Licence: one of the 13 Thai national fonts published by SIPA / the Department of
 * Intellectual Property, free to use and redistribute, commercial use included.
 */

@font-face {
  font-family: 'TH Sarabun New';
  src: url('/fonts/THSarabunNew-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'TH Sarabun New';
  src: url('/fonts/THSarabunNew-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'TH Sarabun New';
  src: url('/fonts/THSarabunNew-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: 'TH Sarabun New';
  src: url('/fonts/THSarabunNew-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: block;
}
