Hi Caolan,

Thanks for your help. If I may ask for more help:

I've noticed that when a certain Hebrew font is defined in Word as the font of the "Header 1" style, Read_FontCode is not called with the font's id passed as an argument. Instead of displaying the text with the "Header 1"-defined font , OOo uses the default CTL font. If in Word I change "Header 1" to use a different Hebrew font, Read_FontCode *is* called with the font's id passed as an argument, and the text looks fine.

The calls to Read_FontCode apparently are determined by the sprm, as defined in GetWW2SprmDispatcher()

I would like to debug this by making a copy of the Word document, changing the Header 1 font in one of them, importing the two files into OOo, and dumping the sprm's of the two files and their contents, and then comparing the dumps.

a) Do you think this is the proper way to debug this?
b) If so, how would I create such a dump?

Thanks,
Alan

Caolan McNamara wrote:

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]


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

Reply via email to