Limited Fonts

6 posts, 1 answers
  1. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 09 Jul 2009 Link to this post

    Hi,
     Great tool, but the fonts are limited in the Editor Lite version. I've checked the product compare list and cannot see if this is limited to the lite version or not. Can you advise?

    Thanks,
    Jason.
  2. Answer
    Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 14 Jul 2009 Link to this post

    Hi Jason Brownhill,


    You can find information on the Fonts DropDown in the following help article http://www.telerik.com/help/aspnet-ajax/fonts.html. In order to set it you need to modify the respective ToolsFile.xml or ListToolsFile.xml (for forms such as list, wiki, blog), which are located in the Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.6.0__1f131a624888eeed\RadControls\Editor folder for the Lite version and \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.5.0.0__1f131a624888eeed\Resources folder for the full version.
    For example add the following code:
    <fontNames> 
        <item name="Arial" /> 
        <item name="Arial Narrow" /> 
        <item name="Trebuchet MS" /> 
    </fontNames> 

    I hope this helps.


    Greetings,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  3. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 14 Jul 2009 Link to this post

    Hi Stanimir,

     Thanks for that response - that's great, and has fixed that issue!!
     
     The only minor thing is that the default font when first opening the editor is Times New Roman, is there any way to adjust this also? I'll have a look on those forum pages to see if it discusses this also.

    Thanks,
    Jason.
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 14 Jul 2009 Link to this post

    Hi Jason Brownhill,

    Please review the following help article Defining custom CSS styles. The difference with the Lite version of the RadEditor is that the configuration files folder is Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.6.0__1f131a624888eeed\RadControls\Editor.
    All you need to do is add the following style in the CssEditor.css file that is mentioned in the article.
    body 
        font-family: define your font here; 

    I hope this helps.

    Best wishes,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 14 Jul 2009 Link to this post

    Hi Stanimir,

     Thanks for the support - appreciate the quick responses.

     Final question is - after editing, which appears in the required font, the page reverts back to another font on viewing. I saw some details in the help pages about this, but having tried to fix this earlier and not being successful, I'm not sure exactly what I need to change. The editing font appears in Trebuchet, but the resulting font when viewed ends up as Verdana - Help?!

    Thanks,
    Jason.
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Jul 2009 Link to this post

    Hello Jason,

    The reason for this behavior is that the CssEditor.css stylesheet is not loaded in the page containing the RadEditor. One way to solve this issue is to load the CssEditor.css file by using the SharePoint designer, or set the body{font-flamily: ...}  in the page without loading the file. You can also set the font-family style attribute for the parent container element of the field.

    All the best,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top