How to Change Font Style
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=25980
Printed Date: 28 March 2026 at 4:07am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: How to Change Font Style
Posted By: plus
Subject: How to Change Font Style
Date Posted: 21 July 2008 at 11:47am
Hi,
As you all know we can change the font style ( format, font and size ) of the text in the editor area.
The text size is fixed to size=1, size=2 .... size=7 (specified in the file: RTE_iframe_select_size.asp )
Now my question: How can I set the font size=1 to 8pt, 9pt or 10pt
I want the text in the style Verdana, 8pt.
But when I select the font size 1, the text is smaller than 8pt
Thanks for all help
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 21 July 2008 at 4:05pm
This sends a command fontFormat to the browsers own RTE API. Depending on the browser used will depend on how this is then executed. IE will usually set the old HTML fontsize tag while other browsers like Firefox will use CSS to set the fontsize.
------------- 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: plus
Date Posted: 21 July 2008 at 8:09pm
Hi WebWiz-Bruce,
Sorry but I don't understand anything.
Can I replace the font size=1 in the editor with 8pt or not ?
I mean size=1 should be 8pt; size=2 should be 9pt and so on...
I thought it would work when I change the line:
<tr onMouseover="overItem(this)" onMouseout="outItem(this)" OnClick="mouseClick('1')" style="cursor: default;">
to
<tr onMouseover="overItem(this)" onMouseout="outItem(this)" OnClick="mouseClick('8pt')" style="cursor: default;">
but that doesn't work.
It would be great if you could tell where I have to make the change
Thanks,
plus
|
Posted By: WebWiz-Bruce
Date Posted: 22 July 2008 at 8:02am
It can not be changed as it is the browsers own RTE API that handles this. Some browsers like IE will use fontsize=1 were as Firefox would do this as CSS creating the size it thinks is nearest fontsize=1 but with a pixel set size.
You could try using another browser, Opera's RTE API may interprete the command different and set the fontsize as a point size rather than a pixel size.
------------- 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
|
|