Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ckeditor 在CK编辑器中添加印地语字体_Ckeditor - Fatal编程技术网

Ckeditor 在CK编辑器中添加印地语字体

Ckeditor 在CK编辑器中添加印地语字体,ckeditor,Ckeditor,我想在ck编辑器中添加印地语字体。我在ckeditor的content.css中添加了以下css font-family: 'kruti_dev_010regular'; src: url('fonts/kruti_dev_010-webfont.eot'); src: url('fonts/kruti_dev_010-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/kruti_dev_010-webfont.w

我想在ck编辑器中添加印地语字体。我在ckeditor的content.css中添加了以下css

font-family: 'kruti_dev_010regular';
src: url('fonts/kruti_dev_010-webfont.eot');
src: url('fonts/kruti_dev_010-webfont.eot?#iefix') format('embedded-opentype'),
     url('fonts/kruti_dev_010-webfont.woff2') format('woff2'),
     url('fonts/kruti_dev_010-webfont.woff') format('woff'),
     url('fonts/kruti_dev_010-webfont.ttf') format('truetype'),
     url('fonts/kruti_dev_010-webfont.svg#kruti_dev_010regular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
    font-family: 'Kruti';
    src: url('lang/Kruti/k010.eot');
    src: local("Hindi"), url("lang/Kruti/k010.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    }
我在ck编辑器的config.js中添加了以下行:

config.font_names = 'Kruti Dev 010/"krutidev_010";' + config.font_names;
我使用以下链接生成字体和css:

我将所有生成的字体添加到我的ckeditor应用程序的字体/文件夹中

现在kurti dev字体出现在字体样式下拉列表中,但印地语字体不适用于此。我的代码中的问题在哪里

  • 下载印地语字体Kruti010字体

    将此添加到CkEditor的Config.js中

    config.font_names = 'Hindi/Kruti;' + config.font_names;
    
    在ck编辑器的langs文件夹中添加印地语字体

    ckeditor/lang/Kruti/k010.ttf
    
    在ckeditor的content.css中添加css

    font-family: 'kruti_dev_010regular';
    src: url('fonts/kruti_dev_010-webfont.eot');
    src: url('fonts/kruti_dev_010-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/kruti_dev_010-webfont.woff2') format('woff2'),
         url('fonts/kruti_dev_010-webfont.woff') format('woff'),
         url('fonts/kruti_dev_010-webfont.ttf') format('truetype'),
         url('fonts/kruti_dev_010-webfont.svg#kruti_dev_010regular') format('svg');
    font-weight: normal;
    font-style: normal;
    }
    
    @font-face {
        font-family: 'Kruti';
        src: url('lang/Kruti/k010.eot');
        src: local("Hindi"), url("lang/Kruti/k010.ttf") format("truetype");
        font-weight: normal;
        font-style: normal;
        }
    
    正确检查您的路径

  • 可能重复的