X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Embedding Fonts (https://forum.x-cart.com/showthread.php?t=72641)

hartwellj 08-21-2015 09:34 AM

Embedding Fonts
 
Does anyone know how to embed a True-type Font into the website to be able to serve it to different browsers? I've read there is a way to embed a font to be served from your server, but don't know how to do it.

PS: I do understand the legal copyright ramifications, as the fonts I am choosing are open source.

cflsystems 08-21-2015 10:04 AM

Re: Embedding Fonts
 
See this https://css-tricks.com/snippets/css/using-font-face/

hartwellj 08-21-2015 02:51 PM

Re: Embedding Fonts
 
This is great info cflsystems. Thanks

hartwellj 08-21-2015 08:31 PM

Re: Embedding Fonts
 
Where should I apply my Font Face. I tried adding it to the Custom CSS, but it wouldn't work. I'm guessing I have to add it to the Styles Sheet?

My code looks like this:

@font-face {
font-family: 'HelveticaNeueLT-Light';
src: url('http://gospelkeyboard.com/fonts/2EFCBE_0_0.eot') format('eot');
url('http://gospelkeyboard.com/fonts/2EFCBE_0_0.eot?#iefix') format('embedded-opentype'),
url('http://gospelkeyboard.com/fonts/2EFCBE_0_0.woff2') format('woff2'),
url('http://gospelkeyboard.com/fonts/2EFCBE_0_0.woff') format('woff'),
url('http://gospelkeyboard.com/fonts/2EFCBE_0_0.ttf') format('truetype');
}


All times are GMT -8. The time now is 03:03 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.