Opened 12 years ago
Closed 12 years ago
#10259 closed Bug (invalid)
Not able to add new font to ckeditor
Reported by: | ranveer | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | custom font, new font to ckeditor | Cc: |
Description
Hello,
I am trying to add new custom font to ckeditor. But I am not able to add new font to ckeditor. Fonts are not default system font, I have .otf, .ttf, .woff font files.
Please suggest me how I can add new font to editor.
I tried below method but didn't get any result.
config.contentsCss = 'fonts.css'; the next line add the new font to the combobox in CKEditor config.font_names = 'fontnametodisplay/yourfontname;' + config.font_names;
where fonts.css has the @font-face attribute:
@font-face {
font-family: "yourfontname"; src: url( ../fonts/font.eot ); /* IE */ src: local("realfontname"), url("../fonts/font.TTF") format("truetype"); /*non-IE*/
}
Use contents.css file for framed editor or your stylesheet files for inline editor. In case of any questions, please ask them on our forum - http://ckeditor.com/forum