Thanks Boris for your reply.

I couldn't find a way to access CSS computed font using embedding APIs
through nsIDOMElement or nsIDOMHTMLParagraphElement.

Can you help me with the APIs?

- Anup

Boris Zbarsky wrote:
> Anup . wrote:
> > I'm using Mozilla embedding, and am looking for a way to find out font
> > associated with a range of text or a DOM Node like <p> or <div> which
> > has a class associated with it.
>
> What do you mean by "font"?
>
> If you mean the CSS computed font-family, you can use computed style for that.
>
> If you mean the actual font used to render it, that can be different for every
> single Unicode character involved; the exact list of character-to-font 
> mappings
> that ended up being used is not exposed to script (or even to C++, really).
> 
> -Boris

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to