What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Using Gilbert color font.

fobovox

New member
HI everyone..

I'm currently working on a website and trying to use the Gilbert color font. However, despite converting it to "woff" and "woff2" formats using Transfonter, I can't seem to get the font to display in color. Could someone please assist me in making the color variant of the font work? Any help would be greatly appreciated, and thank you in advance !!

CSS:
@font-face {
    font-family: 'Gilbert Color Bold Preview5';
    src: url('GilbertColorBoldPreview5.woff2') format('woff2'),
        url('GilbertColorBoldPreview5.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
 
My bet would be that the path to the font files is not correct. Figure out the URLs to each font file and then place the full URL into the CSS. This is always a fool proof way to ensure that the path is correct. Just use the full URL to the file.
 
Back
Top