Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Fonts for Rad editorFonts for Rad editor
Previous
 
Next
New Post
9/12/2011 6:29 AM
 
Hi Guys,

We have dnn 6.0.1 and the rad editor setup but we want to know is it possible to add in additional fonts. And if so how do we do this.

Looked at this http://www.telerik.com/help/aspnet-aj...

but that does not tell us how to embed the fonts.

We also looked at http://www.dotnetnuke.com/Resources/W...

But still no look any help greatly appreciated.

Thanks
Paul
 
New Post
9/12/2011 7:02 PM
 
Most new web browsers support the use of the .woff or less common microsoft .eot font file extension as part of a css file
 - woff = web open font format - eot = embedded open type 

//  this is a sample injection of the google Tangerine font into a css file.
@media screen {
@font-face {
font-family: 'Tangerine';
font-style: normal;
font-weight: normal;
src: local('Tangerine'), url('http://themes.googleusercontent.com/static/fonts/tangerine/v1/HGfsyCL5WASpHOFnouG-RD8E0i7KZn-EPnyo3HZu7kw.woff') format('woff');
}
}

Once injected you can use the font like any other css style 

{ font-family: 'Tangerine', serif; font-size: 48px; }


One of the best sources of pre-built woff fonts is the google web fonts library - http://www.google.com/webfonts/  

This is a collection of resources developed by google that hosts about 250 open source fonts online that can be accessed by incorporating a either a <link rel=  tag into your <head> block - or adding the css directly into your skin.css file.
 <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">

NOTE - technically it is NOT directly possible to embed just any old font into a web page - only public domain TrueTypeOpenType, or Open Font Format can be used since distribution of licensed fonts is a breach of copyright.

I would strongly recommend using the google library of fonts - since they are both hosted and cached by google - however there are some tools around that do let you create your own woff files based on truetype / open type fonts.  

http://orionevent.comxa.com/otf2woff....  is one we have used in the past for a client.
http://people.mozilla.com/~jkew/woff/ also has a command line tool for converting truetype/opentype fonts.

I would however, make on additional comment - font files are NOT small downloads - so think carefully about the number and size of any fonts you want to include as part of your site.

Finally, this format is NOT supported by a number of older browsers so make sure you css font-family definitions include fallback fonts.

Westa





Westa
 
New Post
9/13/2011 4:55 AM
 
Thanks Westa,

We thought it would not be easy. We just wondered as our designer designed a site with loads of fancy fonts and showed a client. Now the client wants that exact thing delivering. Thanks for your in depth answer most helpful.

Thanks
Paul
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Fonts for Rad editorFonts for Rad editor


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out