Print Page | Close Window

Is it possible to use other fonts ?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=13869
Printed Date: 28 March 2026 at 8:59pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Is it possible to use other fonts ?
Posted By: ericl
Subject: Is it possible to use other fonts ?
Date Posted: 17 February 2005 at 6:40pm
Hello,
 
I will need to "insert code" from a language which uses special characters (namely APL) in my posts.
 
Is this possible with RTE?
 
Thanks.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 18 February 2005 at 5:20am
With version 3, you there is a sepporate file called browser_encoding_inc.asp that allows you to set the page encoding acorss the whole RTE so that you can use different characters sets.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ericl
Date Posted: 22 February 2005 at 5:56pm

Hello,

THanks you for your answer.
 
Coming back on my original question, but formulating it a bit differently, is it possible to add a font to the RTE Font Combo Box? with version 2? with version 3?
 
Thanks.
Eric


Posted By: dpyers
Date Posted: 22 February 2005 at 7:40pm
You can add a font, but unless it's on your viewers machines, they won't see anything except perhaps a default font which may/may not contain the special characters you need to represent APL.
 
I have over a thousand fonts on my machine, but can only use 5 or 6 for web text as I'm pretty sure 99% of my viewers will have them. Even then I need to specify a default font - like generic san-serif.
 
The other fonts are just for greating web graphics.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: ericl
Date Posted: 22 February 2005 at 8:18pm
Thank you.

Fine.  I know about what you said, but people are not forced to use this additional APL font: only those of my customers who have it will use it if necessary.  All the other people will be happy with Arial, Times New Roman, etc.

So please, could you tell me how to add a font in the RTE Font Combo Box?
 
Eric


Posted By: WebWiz-Bruce
Date Posted: 23 February 2005 at 4:22am
Edit the file 'RTE_iframe_select_font.asp'

It's pretty much straight HTML in a table, so just change one of the options in the list to the font you want to use.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ericl
Date Posted: 23 February 2005 at 5:44am
Thank you for the info.
 
I think I would have found this file by myself... if I had it in my installation of your Forum, but I don't.
 
Here are the files I have which names start with RTE:
 
 
Please advise.
Note:  I think I run WWF v7.9 since I downloaded and installed it recently and I have RTE v1.2c

Thanks.


Posted By: WebWiz-Bruce
Date Posted: 23 February 2005 at 6:22am
OK I see now.

So this isn't anything to do with the Web Wiz RTE, this is a modification you want to make to the editor in web wiz forums.

Have a look in the web wiz forums mods and add-ons forum for any mods to do what you require.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ericl
Date Posted: 23 February 2005 at 6:54am
Hi,
 
Your solution of editing the 'RTE_iframe_select_font.asp' file looked perfect to me.  It looked simple anc would definitely solve my problem, I think:  I just need to add a new font in the RTE Font Combo Box, that's all.

The only problem is that I do not have the RTE_iframe_select_font.asp in my install of WWF.

What should I do to get it, please?
Should I upgrade to another version of WWF?
Or can I upgrade to another version of RTE without upgrading WWF?
If yes, which version: 2.0, 3.0Beta?

Please help.

Thanks.
 
Eric

 


Posted By: dpyers
Date Posted: 23 February 2005 at 7:22am
Sorry, I thought you were talking about the stand-alone rte, not the rte in the forum.
 
For the rte in the forum, you need to either change and existing font or add a new one in two types of places - where the font is presented as an option, and where the option is expanded into code.
 
Files You'll need to change are...
 
forum_codes.asp
admin/functions/functions_format_post.asp
functions/functions_format_post.asp
functions/functions_edit_post.asp
includes/message_form_inc.asp
includes/RTE_toolbar_1.asp
 
That's for the rte in forum version 7.9


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: ericl
Date Posted: 23 February 2005 at 7:31am
Hi,
 
I have found how to do it.  Don't take more of your time to answer these questions.

One needs to simply edit the RTE_toolbar_1.asp file.

I made the following change (added the bolded line):
 
If blnFontType Then
 Response.Write(vbCrLf & "             <select id=""selectFont"" name=""selectFont"" onChange=""FormatText('fontname', selectFont.options[selectFont.selectedIndex].value); document.frmAddMessage.selectFont.options[0].selected = true;"">" & _
 vbCrLf & "              <option value=""0"" selected>-- " & strTxtFontTypes & " --</option>" & _
 vbCrLf & "              <option value=""Arial, Helvetica, sans-serif"">Arial</option>" & _
 vbCrLf & "              <option value=""Times New Roman, Times, serif"">Times</option>" & _
 vbCrLf & "              <option value=""Courier New, Courier, mono"">Courier New</option>" & _
 vbCrLf & "              <option value=""Verdana, Arial, Helvetica, sans-serif"">Verdana</option>" & _
 vbCrLf & "              <option value=""APLPLUS, Verdana, Arial, sans-serif"">APLPLUS</option>" & _  
 vbCrLf & "             </select>")
End If
 
Thanks for all your answers.
Eric



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