Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated @font-face declaration

...

In a CSS, an @font-face declaration must be added. The following example shows the syntax as it would be used on the RIBO platform (SemanticoHighwire):

@font-face

...

{

 
     font-family: 'Aegean';

    src: url('../fonts/Aegean.eotwoff2') format('embedded-opentypewoff2'); /* IE8, IE9 */ src: local('☺'), url('../fonts/,
         url('Aegean.woff') format('woff'), /* Modern browsers */ ;
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

In the same CSS, a :lang() pseudo-class must be added as well:

...