search
HomeCMS TutorialDEDECMSdedecms how to modify the font

dedecms how to modify the font

Feb 22, 2023 am 09:33 AM
dedecms

dedecms How to modify the font: 1. Open the "include/ckeditor/ckeditor.js" file; 2. Search for "font_names" and then find the font list; 3. Add the required Chinese font and then clear it System cache is enough.

dedecms how to modify the font

The operating environment of this tutorial: Windows 10 system, DedeCMS version 5.7, DELL G3 computer

dedecms How to modify the font?

dedecms Editor custom font

dedecms how to modify the font

Figure 1. dedecms default font

dedecms does not have Song Dynasty or the like font, but users can add other fonts themselves. The implementation method is as follows:

(1). Open include/ckeditor/ckeditor.js,

(2) Search for font_names and find the font list.

Add the required Chinese fonts, after adding: i.font_names='Song style/Song style;Hei body/Hei body;Imitation Song Dynasty/Imitation Song Dynasty_GB2312;Kaizi/Kaiti_GB2312;Lishu/Lishu;Youyuan/Young Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/ Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva , sans-serif';

(3). Due to caching issues, it may not be displayed immediately after adding it. It is recommended to clear the system cache. The effect after adding the font is as follows

dedecms how to modify the font

Figure 2. The effect after adding fonts to dedecms

Note: The added fonts should be written in the form of "Songti/Songti" instead of "Songti". That is, the format of "displayed "font name/actual font name".

Recommended learning: dedecms tutorial

The above is the detailed content of dedecms how to modify the font. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment