On Wed, 2006-09-06 at 21:12 +0200, Alan Yaniger wrote:
> Hi list-members,
> 
> I'm trying to find where the OOo WW8 filter import code determines the 
> font of a character. I see that a font table is built in the WW8Fonts 
> constructor, so I'm guessing that somewhere there's a text attribute 
> which contains a value pointing to entry in this table. But I can't find 
> it. Can anyone help?

Yeah, see sw/source/filter/ww8/ww8par6.cxx
"SwWW8ImplReader::Read_FontCode" which eventually calls
SwWW8ImplReader::GetFontParams with the font id, and that font id is
looked up in the the list that WW8Fonts knows about.

There will be different font ids for "western" font, CTL font and CJK
font. And as always if none is explicitly set for a range of text, then
that of the currently applied character style is used, and if no
character style (which is the normal case) then of the paragraph style
in operation will be used.

C.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to