Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Font Support - Comic Sans MS
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Font Support - Comic Sans MS

 Post Reply Post Reply
Author
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Topic: Font Support - Comic Sans MS
    Posted: 30 July 2007 at 5:16pm
Anyway to modify the RTE within the forum to add the 'Comic Sans MS' Font face with the rest of fonts currently available?
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2007 at 9:02pm
I assume (but am not certain) that the font choices included in the RTE are those that would work on all browsers on all systems.
Adding Comic Sans MS would only work on modern windows systems and those with the font installed.
Handyman man?
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2007 at 6:42pm
Thanks Mikey but comic sans ms is widely supported... starting from Windows 2000. Now adays there is only a small percentage of people using less than windows 2000. On my forum I rarely see someone with windows 98 or an old version of Macintosh.
 
Anyways I have got it... and here is how to do it:
 
Files to edit:
  1. functions/functions_format_post.asp
  2. includes/RTE_iframe_select_font.asp

In the first file above, around line 208, you will see the fonts that are currently present. The first one is:

Quote  strMessage = Replace(strMessage, "", "<font face=""Arial, Helvetica, sans-serif"">", 1, -1, 1)
 
Add this code after the above:
Quote 'Mod to add support for font comic sans ms
 strMessage = Replace(strMessage, "[FONT=Comic Sans MS]", "<font face=""Comic Sans MS, Helvetica, sans-serif"">", 1, -1, 1)
'Mod ended
 
In the second file above (includes/RTE_iframe_select_font.asp), around line 70 you will see a table that has cells/rows for the fonts, the first one is:
Quote <tr onMouseover="overItem(this)" onMouseout="outItem(this)" OnClick="mouseClick('Arial, Helvetica, sans-serif')" style="cursor: default;">
    <td width="100%" class="pStyle" style="font-family: Arial, Helvetica, sans-serif;">Arial</td>
  </tr>
 
Add the following code after the above:
Quote   <tr onMouseover="overItem(this)" onMouseout="outItem(this)" OnClick="mouseClick('Comic Sans MS, Helvetica, sans-serif')" style="cursor: default;">
    <td width="100%" class="pStyle" style="font-family: Comic Sans MS, Helvetica, sans-serif;">Comic Sans MS</td>
  </tr>
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2007 at 7:00pm
Hehe fair enough Big%20smile
I actually had a look after i posted that to see if could find the way to do it and i couldn't so i'm glad you did Wink
Handyman man?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.