Note that there are some explanatory texts on larger screens.

plurals
  1. POIntegrating Font Squirrel generated font in Twitter Bootstrap via LESS
    primarykey
    data
    text
    <p>I am attempting to use a font generated from Font Squirrel as the base font for Twitter Bootstrap (compiled from the LESS files). I am using Express.js with Node.js, and have included the font files within the font directory, i.e.</p> <pre><code>myapp |_ public |_ stylesheets |_ font </code></pre> <p>I have "installed" Font Awesome by changing the variables in <code>bootstrap.less</code> and have it working, so I know the directory structure is correct. With the custom font files in the <code>font</code> directory, where do I go next? Do I need to make a <code>my-custom-font.less</code> file that contains the <code>@font-face</code> declarations, or do I need to declare this within one of the bootstrap LESS files? I am aware that the base font is declared in <code>variables.less</code> via the <code>@baseFontFamily</code> attribute, but as I described I am not really sure how to declare this to be my custom font family. Thanks in advance.</p> <p><strong>EDIT</strong></p> <p>Below is the snippet of code I am attempting to use:</p> <pre><code>@ChatypePath: "font"; @font-face { font-family: 'chatypeb2.1regular'; src: url('@{ChatypePathPath}/chatypeb2.1regular-webfont.eot?v=3.0.1'); src: url('@{ChatypePathPath}/chatypeb2.1regular-webfont.eot?#iefix&amp;v=3.0.1') format('embedded-opentype'), url('@{ChatypePathPath}/chatypeb2.1regular-webfont.woff?v=3.0.1') format('woff'), url('@{ChatypePathPath}/chatypeb2.1regular-webfont.ttf?v=3.0.1') format('truetype'); } </code></pre> <p><em>NOTE</em>: There is something erroneous here.</p> <p><strong>UPDATE:</strong></p> <p>Correct declaration:</p> <pre><code>@chatypeFontFamily: "ChatypeB2.1ThinThin", "Courier New", monospace; @font-face { font-family: 'ChatypeB2.1ThinThin'; src: url('font/chatypeb2.1thin-webfont.eot'); src: url('font/chatypeb2.1thin-webfont.eot?#iefix') format('embedded-opentype'), url('font/chatypeb2.1thin-webfont.woff') format('woff'), url('font/chatypeb2.1thin-webfont.ttf') format('truetype'); font-weight: normal; font-style: normal; } </code></pre>
    singulars
    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