Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom Fonts CSS - Error
    primarykey
    data
    text
    <p>Well I have been attempting to add custom fonts on my page which are not a font you would find on ever computer. I tryed implementing this by following <a href="http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/" rel="nofollow noreferrer">this</a> but it just seems to default to Agency FB. Here is the CSS:</p> <pre><code>@font-face { font-family: "911"; src: url('fonts/911v2.eot'); /* here you go, IE */ } @font-face { font-family: "911"; src: url(//:) format ('no404'), url('fonts/911v2.ttf') format('truetype'); /* tricky! */ } p.myFont { font-family: "911", "Agency FB", verdana, helvetica, sans-serif; font-size: large; color: black; } </code></pre> <p>I used a converter to convert the font from ttf to eot. And here is the relevent HTML: </p> <pre><code>&lt;p class="myFont"&gt;Once upon a midnight dreary, while I pondered weak and weary&lt;/p&gt; </code></pre> <p>Any ideas?</p> <p>Note that the fonts folder is in the root of the webpage (where the index page is located)</p> <p><strong>Edit:</strong></p> <p><img src="https://i.stack.imgur.com/06qkI.png" alt="enter image description here"> in the fonts folder -> <img src="https://i.stack.imgur.com/TWSmZ.png" alt="enter image description here"></p> <p><strong>Edit 2:</strong></p> <p>Still does not work, but here is what I have got at the moment:</p> <pre><code>@font-face { font-family: '911'; src: url('/fonts/911v2.eot'); src: local('☺'), url('/fonts/911v2.ttf') format('truetype'); } p.myFont { font-family: '911', "Agency FB", verdana, helvetica, sans-serif; font-size: large; color: black; } </code></pre>
    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