Add-on Add/Remove fonts and more.

Barbossa

Active member
Licensed customer
Hi there, I need to get those done,
  1. This.
  2. Tweaking this.
  3. On/off option from admin panel including little tweak for this.
For further details/Questions, please PM with your quotation. :)
 
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.
 
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?
 
Yeah, You just need to make sure that you import the font in HTML or CSS. Otherwise the site wouldn't appear correctly for people not having the correct Bengali font.
And how to import the font in HTML or CSS?
 
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).
 
Back
Top Bottom