Hello
I am upgrading aspose.word for java to the latest version.
I get a problem about font.
I have a lot of existing word template. And after the templates are merged, doc files are generated, I find that the first symble of a lot of words looks smaller than the symber behind it.
For example, for '06/01/2011’ which is a merged value, font size of ‘06’ looks smaller than ‘06/01/2011’. Font size of ‘06’ is 8, font style is ‘Arial’, but font size of ‘06/01/2011’ is bigger and font style is ‘Times New Roman’.
I search this problem in internet. An articl in support center of Microsoft describes this problem. This is the link: https://support.microsoft.com/en-us/topic/wd2000-merged-text-prints-in-different-font-during-mail-merge-0b8f02d8-76bd-26a9-54dd-95de2be50b8a
This article gives three workarounds.
Method 1: Add the Charformat Switch. Edit the merge field and add the Charformat switch.
Method 2: Change the Normal Style. You can modify the built-in Normal style to match the font that you want.
Method 3: Merge to a New Document and Make Formatting Changes
These workarounds only for word. I have a lot of templates to handle. It’s impossible for me to do this mannually. Could you please tell me to change the normal style in runtime? I prefer method 2. Or you have other way to solve this problems?
Maybe you can read this article in support center of Microsoft.
Thank you very much