Closed yaveymao closed 8 years ago
I'm doing an initial investigation on this, but @ms-jihua do you think it might be an issue with the old version of icu we are using. (we saw issues with Chinese character ranges)
It seems likely? You can probably confirm it by breaking on the range function during the repro.
The issue is happening because UIButton is using CGFontFitChars to determine the size of the text, but FreeType isn't recognizing the characters, so it just adds some generic width, which seems to be about half of one of these characters. This will be resolved once we switch over to DWrite
This should be addressed as part of #925
repro steps: step 1) convert source file to UTF8 page code(65001) step 2) add UIButton:
button just shows "简单" instead of "简单按钮"
The same situation occurs in UIAlterView:
the cancel button just shows "取" instead of "取消" the ok button just shows "好" instead of "好的"