Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS setting a custom font
    primarykey
    data
    text
    <pre><code>a, h1, h2, h3, div, span td[style] {font-family:'Tahoma2';} !important @font-face { font-family: 'Tahoma2'; src: url('http://***.com/font.otf') format('otf'), !important src: url('http://***.com/font.ttf') format('truetype'); !important } </code></pre> <p>I am appending CSS to my profile page on a website, using the provided custom CSS tool, however, as I was customising various things, I discovered this problem. When I put in the above code, all the text that SHOULD be Tahoma2, ends up as Times New Roman, which I am assuming means it is having trouble finding the font from the url (I hid the URL for privacy reasons), especially as when I change the top line to say 'Tahoma' it sets the whole page to tahoma. Would someone please tell me where the GLARING error in my code is, as I can't find it. (BTW, I know important shouldn't be used, but I had to override the source page's CSS in a few places.)</p> <p>Any help is greatly appreciated,</p> <p>Sleumas</p> <p>EDIT</p> <p>After some more editing, I used the solution provided by Damien Overeem, but then, in the console, I got this message (firefox)</p> <p>downloadable font: download not allowed (font-family: "tahoma2" style:normal weight:normal stretch:normal src index:2): content blocked source: www.mysite.com/fonts/celestia.ttf</p> <p>and the same for the woff</p> <p>does anyone know why? is this sanitisation, or a problem with my hosting, it is on my own private apache server, just as a file in the /var/www/fonts directory</p> <p>Please help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload