Hi Caolan,

Word shows the hexpoxed new name, "Niriam", though the font that is displayed is no longer "Miriam", but "Arial". I thought that this might be because "Arial" was the previous entry in the font table (font[2]) , but that seems to be false: I tried hexpoking "Arial" to "Brial", and the text was still displayed in "Arial". Maybe "Arial" is a fallback font.

When I hexpoxed the file again, and instead of "Miriam", substituted "Tahoma", I saw the text in the Tahoma font.

Maybe the following is happening:

Word hardcodes ftcStandardChpCTLStsh to always be "3".

It looks in the table to find the name of font[3].
If a font with that name exists, Word uses it.
If a font with that name doesn't exist, Word goes to the next entry in a list of fallback fonts, like OOo has in VCL.xcu.

(BTW, I thought that maybe 3 wasn't the magic number, and Word might always uses the last font in the font table, which may be a number other than 3. To test this, I changed the Latin font of "Header 1" to be "Lucida Sans Unicode", thus adding another font to the table. When I imported it into OOo, I found that Miriam was still 3, and Lucida Sans Unicode was 4. So it seems that the CTL font is not always the last one.)

Alan

Caolan McNamara wrote:
Another (vague) possibility is that word hardcodes ftcStandardChpCTLStsh
to always be "3", if you hexpoke the text of the 4th font which should
be "Miriam" (in unicode) to be e.g. "Niriam" or "foobar" and reload in
word, does the default CTL font remain at "Miriam", showing that word is
totally disregarding this fonttable for the default CTL font when unset
in any style, or does it show the hexpokeed new name, showing that word
may be not reading the ftcStandardChpCTLStsh value from the file and
somehow hardcoded as 3, to get the fourth entry from the fonttable.

We also will need to figure out whether the CJK font follow the western
case of the busted-looking CTL case.
C.

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


--
Alan Yaniger
Tk Open Systems

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

Reply via email to