Trich demo not using correct font

General TRichView support forum. Please post your questions here
Post Reply
JG
Posts: 11
Joined: Tue Nov 30, 2010 11:48 am

Trich demo not using correct font

Post by JG »

Hi Sergey,
Just to mention I work along with Jonathan Koehn (jgkoehn).

We are checking how well .docx is doing for import into the program.
So far it has not been 100%.
Here is another instance.
This file should use the font Segoe UI for the main text, but instead is using the Asian font setting. MS Word displays it correctly. Please see the attached file.
Wrong font used should be Segoe UI.7z
(252.42 KiB) Downloaded 761 times
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Trich demo not using correct font

Post by Sergey Tkachenko »

Well, I see. Font name reading from DocX must be rewritten. It will be in the next update, ASAP.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Trich demo not using correct font

Post by Sergey Tkachenko »

Fixed in version 19.1.1. It is uploaded for registered users.

The solution is still not ideal. MS Word allows defining 4 fonts: for ASCII, East Asian, complex scripts (including Arabic) and the rest of characters. For complex scripts, it also allows to define "bold" and "italic" attributes and font size specially.
In TRichView, each text item can have only a single font name and a single set of font styles.

The new update (v19.1.1):
- solves the problem when only some of font names were overridden in DocX (in your file, only East Asian font name was overridden in the document)
- applies complex script (font name, size, bold and italic) attributes to text items that are marked as complex script text in DocX.
Post Reply