Hi Caolan,

I found that Miriam is included in the font list in the WW8Fonts constructor, with index 3.
I also found that ftcStandardChpCTLStsh has the value 0.
If in my debugger, I change ftcStandardChpCTLStsh's value to 3, Miriam's index - lo and behold, the text is displayed in the Miriam font. So now, given the four possibilities you listed of what went wrong, how do I go about finding out which is correct?

Thanks very much,
Alan

Caolan McNamara wrote:

a) ftcStandardChpCTLStsh gets set to some value when your document is
loaded ?, and if so what the value is. This value is just an index into
the font list.

Where the problem is likely to be that either,
a) this number is not being read, or is read incorrectly
b) the number is correct, but the list of fontnames was read incorrectly
and they don't match
c) word has some ugly hack of some kind which hardcodes the root default
CTL font to Miriam
d) something else

WW8Fonts::WW8Fonts is where we read in this list of fontnames and the
fontid is a simple index into that list. So the other thing to do is
to debug there and see what fonts this document contains, and what their
indexes are. What we're really looking for here is to see if Miriam is
in this fontlist, and what index in the fontlist it is.
Ideally the index in this fontlist in WW8Fonts::WW8Fonts for "Miriam" is
the same as the value for ftcStandardChpCTLStsh. But now we need to know
if Miriam is missing from this list or not, and what value for
ftcStandardChpCTLStsh was set.

One possibility, but it's very speculative, is that in ww8scan.cxx
WW8Style::WW8Style ftcStandardChpCTLStsh is not read from the MSWord
document at all because the particular version of word you have writes a
short header with no default CTL fontid value, and what we should do in
this case is take the Western fontid. But that's purely an idea. More
data is needed as to what fonts WW8Fonts::WW8Fonts sees, and what index
is read for ftcStandardChpStsh and ftcStandardChpCTLStsh

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