0

我有一个 NSPopUpButton,它包含根据系统语言从 plist 文件中读取的英语或日语字符串。现在,当语言是英语时,我可以使用以下代码更改字体大小 -

 [auxStatePopup setFont: [NSFont fontWithName:@"Helvetica-BoldOblique" size:10.0]];

但是使用这种技术,即使我尝试设置一些我在谷歌上搜索并发现的日文字体名称,我也无法更改日文字体大小。我想这样做是因为日文字符在使用时会略微向上移动。我打算通过减小字体大小来操纵这种向上运动。谢谢你的帮助..

日本对齐问题

或者

有什么方法可以向下移动 NSPopupButton 中的文本?

4

1 回答 1

1

My impression is that the two samples are not using the same font. Please try to put a text with characters from both sets and see what happens.

Also try not to customize the font size and even the font face.

I also suspect that the text rendering engine may had overridden some of your changes due to the text length. iOS text rendering may try to change the font size of letter spacing if the text does not fit the control. So make some tests with shorter texts.

BTW, I think that you were mean to say that you want bigger font size for Japanese not smaller. In the screenshots the Japanese text is already too small to be properly read by anyone.

于 2011-06-02T06:07:52.953 回答