Current time: 03-18-2010, 08:01 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Preview Fonts
05-22-2009, 11:21 AM
Post: #1
[Tutorial] Preview Fonts
[Image: attachment.php?aid=8]
This tutorials shows you how to preview fonts in the drop-down menu while posting, so you know what they look like.

Open jscripts/editor.js

Find:

Code:
        this.fonts["Arial"] = "Arial";
        this.fonts["Courier"] = "Courier";
        this.fonts["Impact"] = "Impact";
        this.fonts["Tahoma"] = "Tahoma";
        this.fonts["Times New Roman"] = "Times New Roman";
        this.fonts["Trebuchet MS"] = "Trebuchet MS";
        this.fonts["Verdana"] = "Verdana";

Replace with:

Code:
        this.fonts["Arial"] = "<span style='font-family: Arial;'>Arial</span>";
        this.fonts["Courier"] = "<span style='font-family: Courier;'>Courier</span>";
        this.fonts["Impact"] = "<span style='font-family: Impact;'>Impact</span>";
        this.fonts["Tahoma"] = "<span style='font-family: Tahoma;'>Tahoma</span>";
        this.fonts["Times New Roman"] = "<span style='font-family: Times New Roman;'>Times New Roman</span>";
        this.fonts["Trebuchet MS"] = "<span style='font-family: Trebuchet MS;'>Trebuchet MS</span>";
        this.fonts["Verdana"] = "<span style='font-family: Verdana;'>Verdana</span>";

And you're done!

AnLib - write and deploy PHP applications with ease.
Find all posts by this user
Quote this message in a reply
05-22-2009, 12:51 PM (This post was last modified: 05-22-2009 12:51 PM by maatty.)
Post: #2
RE: [Tutorial] Preview Fonts
My dear, this is not the right forum for posting this thread. On the other hand, why do you call it a tutorial? Huh
Visit this user's website Find all posts by this user
Quote this message in a reply
05-22-2009, 08:02 PM (This post was last modified: 05-22-2009 08:07 PM by Anman.)
Post: #3
RE: [Tutorial] Preview Fonts
(05-22-2009 12:51 PM)maatty Wrote:  My dear, this is not the right forum for posting this thread.

Err yes, it is. (read the sticky)

(05-22-2009 12:51 PM)maatty Wrote:  On the other hand, why do you call it a tutorial?

It explains how to do something, therefore, by definition, it is a tutorial.

AnLib - write and deploy PHP applications with ease.
Find all posts by this user
Quote this message in a reply
05-23-2009, 06:14 PM
Post: #4
RE: [Tutorial] Preview Fonts
It just shows the fonts like that see in the frontpage or any other html editor,
Good Tutorial Smile

<font size too large, removed. use NORMAL size only, like below>
FIND OUT ABOUT MYBBCODES.COM
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2009, 09:16 AM
Post: #5
RE: [Tutorial] Preview Fonts
Good Tutorial

[Image: 34y1kz5.gif]
Find all posts by this user
Quote this message in a reply
05-24-2009, 09:57 AM
Post: #6
RE: [Tutorial] Preview Fonts
A must feature in 1.6!
Find all posts by this user
Quote this message in a reply
06-03-2009, 10:42 PM
Post: #7
RE: [Tutorial] Preview Fonts
waov its really small one but its useful thx

Constantly talking is not necessarily communicating!

Sürekli konuşmak iletişim kurmak değildir!
Visit this user's website Find all posts by this user
Quote this message in a reply
06-04-2009, 03:32 AM
Post: #8
RE: [Tutorial] Preview Fonts
good tutorial and very useful!!

thanks!!!

[Image: img8_1224706616c.png]
Web Maniacos... Comparte todo lo que quieras
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: