Skip to content

Changing fonts

Irene Vagionakis edited this page May 16, 2021 · 1 revision
  • To select a different font for the inscription text, choosing among the default/pre-installed ones (including the pre-installed New Athena Unicode for Ancient Greek):

    • open the file webapps/ROOT/assets/styles/epidoc/global.cssand specify the desired font as first font in *[lang="la"] { font-family: } (for Latin, at line 14 ca.) or of *[lang="grc"] { font-family: } (for Greek, at line 17 ca.), e.g.:

      *[lang="la"] { font-family: "Palatino Linotype", "GentiumAlt", "Gentium","Palatino", "Times New Roman", serif; }

      *[lang="grc"] { font-family: "New Athena Unicode", "Lucida Grande", "Arial Unicode MS", "Verdana", "Tahoma", serif; }

  • To install and select a custom font for the inscription text:

    • add inside the folder webapps/ROOT/assets/styles/fonts the font files with .woff extension

    • add a @font-face { } for each of them in webapps/ROOT/assets/styles/base.css, for example like this:

      @font-face {

      font-family: "New Athena Unicode";

      src: url('fonts/nau.woff') format('woff');

      font-weight: normal;

      font-style: normal;

      }

    • open the file webapps/ROOT/assets/styles/epidoc/global.cssand specify the desired font as first font in *[lang="la"] { font-family: } (for Latin, at line 14 ca.) or of *[lang="grc"] { font-family: } (for Greek, at line 17 ca.) [see above]

  • To select a different font for the entire edition (ancient text excluded):

    • add a * { font-family: } with the desired font(s) inside webapps/ROOT/assets/styles/base.css, e.g. * { font-family: Helvetica, serif; }