[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
RISC: Simple HTML editor should respect the body's font family  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn,

In the demo workplace, the example for Simple HTML editor sets on server side "Hello world" with <body style='font-family:Trebuchet MS'>. Now press "Load text" button.

In case of Swing, "Hello world" is displayed with Trebuchet MS font.
But in case of RISC, "Hello world" is displayed with Times Roman.

Is it possible for you to solve this bug?

Regards, Daniel

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Daniel,

the HTML editor we use for the RISC client (NicEdit) has - as nearly any wysiwyg-HTML-editor - it's special behaviour...

After updating our lines into...
Code:
     public void onLoadText(ActionEvent event) 
     {
 //        m_htmlText = "<html><head></head><body style='font-family:Trebuchet MS'><p>Hello world!</p></body></html>";
         m_htmlText = "<html><body><p><font face=\"Trebuchet MS\">Hello world! asdgfdasdastd</font></p></body></html>";
     }
 

... the editor shows the correct font.

The editor is quite agnostic when it comes to interpreting style="" but prefers real HTML texts... Because it is a third party tool there is only limited chance to change this behavior.

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team