BUG?-TRichviewEdit.SaveDocX will lost the header/footer's font name

General TRichView support forum. Please post your questions here
Post Reply
wolf1860
Posts: 55
Joined: Sat Nov 21, 2015 2:04 am

BUG?-TRichviewEdit.SaveDocX will lost the header/footer's font name

Post by wolf1860 » Tue Feb 21, 2017 3:34 am

I set the header/footer font name='隶书'(a chinese local font name),the font name will disappear when I open the saved docx file with microsoft office word.
How to fix it ?

Sergey Tkachenko
Site Admin
Posts: 14332
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: BUG?-TRichviewEdit.SaveDocX will lost the header/footer's font name

Post by Sergey Tkachenko » Tue Feb 21, 2017 6:34 am

Can you attach RVF file having text of this font to your post on this forum (or sent it to richviewgmailcom)? And the resulting DocX file too.
What version of Delphi do you use?

wolf1860
Posts: 55
Joined: Sat Nov 21, 2015 2:04 am

Re: BUG?-TRichviewEdit.SaveDocX will lost the header/footer's font name

Post by wolf1860 » Tue Feb 21, 2017 7:18 am

My delphi version is berlin 10.1,and can u show me the email i should send the files to? I'm registered user.


wolf1860
Posts: 55
Joined: Sat Nov 21, 2015 2:04 am

Re: BUG?-TRichviewEdit.SaveDocX will lost the header/footer's font name

Post by wolf1860 » Tue Feb 21, 2017 10:29 am

I have send the email with rvf file and docx file:) Thanks a lot!

Sergey Tkachenko
Site Admin
Posts: 14332
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: BUG?-TRichviewEdit.SaveDocX will lost the header/footer's font name

Post by Sergey Tkachenko » Wed Feb 22, 2017 11:48 am

Well, I can see 'LiSu' font instead of '隶书'.

However, if I create a new document in Microsoft Word, type some text and apply '隶书' font, Microsoft Word shows 'LiSu' instead. It's interesting, I do not have neither '隶书' nor 'LiSu' font installed.
I tried entering other non-existing font names, both using Chinese and English characters. Neither of them were replaced! Only '隶书' was changed to 'LiSu'.
Probably, this substitution is hard-coded in MS Word.

wolf1860
Posts: 55
Joined: Sat Nov 21, 2015 2:04 am

Re: BUG?-TRichviewEdit.SaveDocX will lost the header/footer's font name

Post by wolf1860 » Thu Feb 23, 2017 5:24 am

Thank you very much!
It looks I can fix it in a special way.

Post Reply