• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add-on Add/Remove fonts and more.

Aayush

Well-known member
#2
In js/bb_code_edit.js
Code:
d.each({
                Arial: "arial,helvetica,sans-serif",
                "Book Antiqua": "'book antiqua',palatino,serif",
                "Courier New": "'courier new',courier,monospace",
                Georgia: "georgia,palatino,serif",
                Tahoma: "tahoma,arial,helvetica,sans-serif",
                "Times New Roman": "'times new roman',times,serif",
                "Trebuchet MS": "'trebuchet ms',geneva,sans-serif",
                Verdana: "verdana,geneva,sans-serif",
                Helvetica: "Helvetica,Arial,sans-serif"
            }, function (a, b) {
                h[a] = {
                    title: a,
                    callback: g,
                    style: "font-family: " + b
                }
            });
I added Helvetica Font. See the syntax and change it as per your needs. This is the easiest way for adding custom fonts.

Note: This is the uncompressed version.
 

Barbossa

Active member
#3
In js/bb_code_edit.js
Code:
d.each({
                Arial: "arial,helvetica,sans-serif",
                "Book Antiqua": "'book antiqua',palatino,serif",
                "Courier New": "'courier new',courier,monospace",
                Georgia: "georgia,palatino,serif",
                Tahoma: "tahoma,arial,helvetica,sans-serif",
                "Times New Roman": "'times new roman',times,serif",
                "Trebuchet MS": "'trebuchet ms',geneva,sans-serif",
                Verdana: "verdana,geneva,sans-serif",
                Helvetica: "Helvetica,Arial,sans-serif"
            }, function (a, b) {
                h[a] = {
                    title: a,
                    callback: g,
                    style: "font-family: " + b
                }
            });
I added Helvetica Font. See the syntax and change it as per your needs. This is the easiest way for adding custom fonts.

Note: This is the uncompressed version.
You mean, I can use our own Bengali fonts there?
 

Tracy Perry

Well-known member
#7
Or if you are running a VPS you could peruse this resource. It even has an update on editing the JS for the editor to allow additional fonts (and has info on a problem by doing that that presents itself).