#1 2025-02-28 04:11:17

Flashcqxg
Member
Registered: 2018-01-11
Posts: 35

Numbers and English dispaly err where use Chinese Font.

Hi:
After using SetFont('方正小标宋简体', 16, []) to set the font,
the Chinese characters display correctly, but the numbers and English text do not display properly,but the numbers and English letters appear squeezed together.
Thanks.

Offline

#2 2025-02-28 15:10:13

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,929
Website

Re: Numbers and English dispaly err where use Chinese Font.

Which compiler do you use?
Which OS do you use?
Which version of mORMot do you use?
What is you main system Ansi code page?

Did you enable Uniscribe to the PDF engine?

Offline

#3 2025-03-01 03:18:19

Flashcqxg
Member
Registered: 2018-01-11
Posts: 35

Re: Numbers and English dispaly err where use Chinese Font.

1. delphi 12.2
2. Windows 10 and Windows 11
3. mORMot 1 (not mORMot 2)
4. system Ansi Code Page is 936
5. enabled Uniscribe

Offline

#4 2025-03-03 09:00:51

Flashcqxg
Member
Registered: 2018-01-11
Posts: 35

Re: Numbers and English dispaly err where use Chinese Font.

I tested with mORMot 2, and the results were the same. When the string contains Chinese, English, and numbers at the same time, the Chinese characters display correctly, but the English and numbers do not display properly—they appear squeezed together.

Offline

#5 2025-03-03 14:02:34

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,929
Website

Re: Numbers and English dispaly err where use Chinese Font.

Offline

#6 2025-03-04 00:01:36

Flashcqxg
Member
Registered: 2018-01-11
Posts: 35

Re: Numbers and English dispaly err where use Chinese Font.

Thank you. I have tested the code you provided for the url address. Although the text is no longer crammed together, but the font effect is no longer the original.
If it were possible to upload images, it would be even more intuitive.

Offline

Board footer

Powered by FluxBB