How do I use github to host a webfont?
<p>UPDATE: I used @brclz suggestion, solving my problem like this:</p>

<ol>
<li>Copied the GitHub address of each font file of the family, </li>
</ol>

<p>Example:</p>

<pre><code>https://github.com/h-ibaldo/Raleway_Fixed_Numerals/blob/master/font/rawline-100.woff
</code></pre>

<ol start="2">
<li>Changed <code>github.com</code> in the URL to <code>raw.githubusercontent.com</code>,</li>
</ol>

<p>Example:</p>

<pre><code>https://raw.githubusercontent.com/h-ibaldo/Raleway_Fixed_Numerals/blob/master/font/rawline-100.woff
</code></pre>

<ol start="3">
<li>Created a CSS Stylesheet declaring all font weights and styles of the family, using the URLs as mentioned above,</li>
</ol>

<p>Example:</p>

<pre><code>@font-face {
    font-family: 'rawline';
    src: url('https://cdn.rawgit.com/h-ibaldo/Raleway_Fixed_Numerals/master/font/rawline-100.eot');
    src: url('https://cdn.rawgit.com/h-ibaldo/Raleway_Fixed_Numerals/master/font/rawline-100.eot?#iefix') format('embedded-opentype'),
         url('https://cdn.rawgit.com/h-ibaldo/Raleway_Fixed_Numerals/master/font/rawline-100.woff2') format('woff2'),
         url('https://cdn.rawgit.com/h-ibaldo/Raleway_Fixed_Numerals/master/font/rawline-100.woff') format('woff'),
         url('https://cdn.rawgit.com/h-ibaldo/Raleway_Fixed_Numerals/master/font/rawline-100.ttf') format('truetype'),
         url('https://cdn.rawgit.com/h-ibaldo/Raleway_Fixed_Numerals/master/font/rawline-100.svg') format('svg');
    font-weight: 100;
    font-style: normal;
} 
</code></pre>

<ol start="4">
<li><p>Pulled the stylesheet to the font's GitHub repo,</p></li>
<li><p>Embedded the font into the <code>&lt;head&gt;</code> of my HTML document, linking the stylesheet, also changing "github.com" to "raw.githubusercontent.com" in the URL, like this:</p></li>
</ol>

<p><code>&lt;link href="https://raw.githubusercontent.com/h-ibaldo/Raleway_Fixed_Numerals/master/css/rawline.css" rel="stylesheet"&gt;</code> </p>

<ol start="6">
<li>Then I used CSS rules to specify the font's family, weight and style,</li>
</ol>

<p>Example:</p>

<pre><code>font-family: 'rawline', sans-serif; 
font-weight: 100;
font-style: italic;
</code></pre>

<p><strong>It worked perfectly.</strong></p>

<ol start="7">
<li><p>I also tried to import it into another stylesheet using <code>@import</code> like this:</p>

<p><code>@import 'https://raw.githubusercontent.com/h-ibaldo/Raleway_Fixed_Numerals/master/css/rawline.css';</code></p></li>
</ol>

<p><strong>It also worked.</strong></p>

<p>And here's the final GitHub project, in case you want to check it out:<br>
<a href="https://github.com/h-ibaldo/Raleway_Fixed_Numerals" rel="noreferrer">https://github.com/h-ibaldo/Raleway_Fixed_Numerals</a></p>

<hr>

<p>I just made a webfont version of Raleway family in which all text figures were replaced by the font's lining numerals, in order to solve once and for all the problem of using Raleway's lining numerals. </p>

<p>I also prepared the CSS stylesheet for it, and it solved my problem beautifully. Knowing that this is a problem other people have, I'll make the font files and CSS available via GitHub.</p>

<p>My question is: how can I use GitHub to also host the webfont in such a way that people intended to use don't need to host the font files, but import it, like Google Fonts @import option, for example:</p>

<pre><code>@import 'https://fonts.googleapis.com/css?family=Raleway:400,700,900';
</code></pre>

<p>Or like Fontawesome does with a script:</p>

<pre><code>&lt;script src="https://use.fontawesome.com/28e4d6013b.js"&gt;&lt;/script&gt;
</code></pre>

<p>Any thoughts?</p>