[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Problem building KHTML...
From:       Jeroen Wijnhout <Jeroen.Wijnhout () kdemail ! net>
Date:       2003-07-21 11:48:38
[Download RAW message or body]

On Monday 21 July 2003 13:15, Jehad wrote:
> Ok! Here is what I want.
> I want to make my own browser such that it uses my own font. There is a
> function name,
> "setStandardFont" to KHTMLPart class. I can use this function to sets the
> standard font style. But again, there is a problem, if webpage contains
> code like,
> <font face="sans-serif, Arial, Helvetica" size="-1" >
> The quick brown fox jumps over the lazy dog.
> THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.
> </font>
> it won't use my font, I set through "setStandardFont". :-(
> Can you please tell me how can I solve this problem?
> Thanks,
> -Jehad.

Using the khtml_part you do have access to the DOM via htmlDocument(). With 
this you can access the DOM::HTMLFontElement  and use setSize(), setColor(), 
setFace() methods to change them. Never tried such a thing, but it I guess 
this should work.

best,
Jeroen

-- 
Kile - a LaTeX editor for KDE
http://kile.sourceforge.net
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic