Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to Change Font Style
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedHow to Change Font Style

 Post Reply Post Reply
Author
plus View Drop Down
Newbie
Newbie


Joined: 21 July 2008
Location: Turkey
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote plus Quote  Post ReplyReply Direct Link To This Post Topic: How to Change Font Style
    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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
plus View Drop Down
Newbie
Newbie


Joined: 21 July 2008
Location: Turkey
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote plus Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
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.