Skip to content

Font configuration

Samples

typescript
new AiEditor({
    element: "#aiEditor",
    fontFamily:{
        values:[
            {name: "SimSun", value: "SimSun"},
            {name: "FangSong", value: "FangSong"},
            {name: "SimHei", value: "SimHei"},
            {name: "KaiTi", value: "KaiTi"},
            {name: "Microsoft YaHei", value: "Microsoft YaHei"},
            {name: "FangSong_GB2312", value: "FangSong_GB2312"},
            {name: "Arial", value: "Arial"},
        ]
    },
})

In the above code, name represents the font name and value represents the font style used by CSS.

Released under the LGPL-v2.1 License.