Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6575569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:24:10+00:00 2026-05-25T15:24:10+00:00

I am trying to add a custom font but can’t. I am getting error

  • 0

I am trying to add a custom font but can’t. I am getting error with below code, The font name is adding in the drop down but it’s not changing…

my code is

config.js:

CKEDITOR.editorConfig = function( config )
{
config.contentsCss = 'fonts.css';
config.font_names = 'Dekers/dekers_true' + config.font_names;
}

fonts.css:

@font-face {  
font-family: "dekers_true", serif;
src: url(fonts/Dekers_light.eot ); /* IE */  
src: local("Dekers"), url("fonts/Dekers_light.ttf") format("truetype"); /*non-IE*/  
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:24:11+00:00Added an answer on May 25, 2026 at 3:24 pm

    Your custom CSS file must contain the basic styling for CKEditor body. CKEditor loads in the iframe with this CSS file only.

    @font-face {  
        font-family: "dekers_true"; /* font name for the feature use*/
        src: url(fonts/Dekers_light.eot ); /* IE */  
        src: local("Dekers"), url("fonts/Dekers_light.ttf") format("truetype"); /*non-IE*/  
    }
    body {
        font: normal 13px/1.2em dekers_true, serif;
        color: #333;
    }
    p {
        font: normal 13px/1.2em dekers_true, serif;
        margin-top: 0;
        margin-bottom: 0.5em
    }
    ...
    

    And than add font declaration into your main site’s CSS file too.

    Upd: Alternative variant.
    You can declare your custom styles, e.g.

    config.stylesSet = [
        { name : 'Pretty font face', element : 'span', attributes : { 'class' : 'pretty_face' } },
        ... 
    ];
    

    So will be applied class .pretty_face and than you can style it as you wish. If you want immediate preview in rte, you need to style this class in contentsCSS file too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add a custom font to my project in Xcode 4.2, but
I am trying to set custom font to Paragraph, but I can't make it
I'm trying to add custom fields to an InlineFormset using the following code, but
I'm trying to add a custom font to my iPhone app. The font's name
I'm trying to add a custom font as a resource in my application. I
I'm trying to add a custom property which is a guid, but it gives
I am trying to add a custom property to a base form that can
I'm trying to add custom validation to a dynamically created control. Can I use
I am trying to add custom error pages to my web application. So far
I'm trying to add a custom ImageView to my main.xml , but if I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.