Print Page | Close Window

Font Support - Comic Sans MS

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24001
Printed Date: 07 April 2026 at 12:42am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Font Support - Comic Sans MS
Posted By: iSec
Subject: Font Support - Comic Sans MS
Date 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



Replies:
Posted By: Mikey
Date 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?


Posted By: iSec
Date 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


Posted By: Mikey
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net