DHTMLEdit - Registered Users - Helpdesk
Problem with font
Thread Starter: Christian Dubois Started: 2/16/2007 1:30 PM UTC
Replies: 1
Problem with font
I have a strange problem with font size.  Please see the attached Word document.
Thank you for your help


I am using ProfDHTMLEdit v1.7.4.9 for Delphi 7.



Christian Dubois

Logilys Inc.


This message includes the following attachments:

Re: Problem with font
Hello Christian,

3 is the default font size and therefore a <font size="3"> tag is not
generated by MSHTML. (But this will work if you change the font size from
something else to 3).

I would recommend you the following approach:

procedure TForm1.EditorCreate(Sender: TObject);
begin
 Editor.ObjectStyle := 'FONT-SIZE: 12pt';
end;


-Nicholas