Opened 7 years ago

Closed 7 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*/

}

Change History (1)

comment:1 Changed 7 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy