Install fonts

  • This may help you: https://github.com/WoltLab/WCF…es/style/icon.less#L1-L11


    To make use of this, place all font files in the font directory and add the code in your CSS. For custom fonts, you'll have to add &font=FILENAME-WITHOUT-EXTENSION to the URLs.


    Example:


    You have a font FooBar and the font files foobar.woff and foobar.eot. In this case, you would place this in your CSS:


    CSS
    @font-face {
    	font-family: 'FooBar';
    	src: url('../font/getFont.php?type=eot&font=foobar');
    	src: url('../font/getFont.php?type=eot&font=foobar#iefix') format('embedded-opentype'),
    		url('../font/getFont.php?type=woff&font=foobar') format('woff');
    	font-weight: normal;
    	font-style: normal;
    }

    Then, load the font files into the font directory. That's it.

  • I'll try. Thank you @SoftCreatR

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!