问题
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
- Installed Nepali language pack for windows 7
- Installed several Unicode fonts like arial unicode ms, segoe ui, microsoft neo gothic and others
- 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