Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Embedding Fonts

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-21-2015, 09:34 AM
 
hartwellj hartwellj is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 137
 

Default 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.
__________________
Version 5.2.10 - Live
Reply With Quote
  #2  
Old 08-21-2015, 10:04 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Embedding Fonts

See this https://css-tricks.com/snippets/css/using-font-face/
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-21-2015, 02:51 PM
 
hartwellj hartwellj is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 137
 

Default Re: Embedding Fonts

This is great info cflsystems. Thanks
__________________
Version 5.2.10 - Live
Reply With Quote
  #4  
Old 08-21-2015, 08:31 PM
 
hartwellj hartwellj is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 137
 

Default 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');
}
__________________
Version 5.2.10 - Live
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020