Non-english text size too small in windows 7

て烟熏妆下的殇ゞ 提交于 2020-01-06 04:01:09

问题


I am trying to display the current date in Nepali language. I have declared constant string for the caption. It renders the text pretty fine on windows 8.1 but the same text is displayed too small in windows 7. Adjusting the font size also doesn't help much as it should.

Things I tried

  1. Installed Nepali language pack for windows 7
  2. Installed several Unicode fonts like arial unicode ms, segoe ui, microsoft neo gothic and others
  3. The source code has been saved as UTF-8 encoding

But the problem remains same.

Windows 8.1 output:

Windows 7 output:

There are two labels on the form. One is used to display the current temperature("segoe ui" font) which renders pretty fine on both the windows versions while the other one is used for displaying the date that has the actual problem.

Edit

How to create issue?

  • create a new vcl form application project
  • Drop a label and a button
  • On button click change the caption of the label

sample code

procedure TForm1.Button1Click(Sender: TObject);
const text = 'आइतबार कार्तिक २७ गते २०७२';
begin
  Label1.Caption := text;
end;

The font property for label has been set to: @Microsoft NeoGothic,11,[B],ANSI_CHARSET,clWindowText

By the way, this font doesn't exist in windows 7, I installed it and other ones as well but this couldn't help.

SO the question is, "How to display the caption in similar fashion in windows 7"

来源:https://stackoverflow.com/questions/33789279/non-english-text-size-too-small-in-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!