Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if set lineSpacing, sizeThatFits not support chinese characters #22

Open
foxling opened this issue May 15, 2014 · 0 comments
Open

if set lineSpacing, sizeThatFits not support chinese characters #22

foxling opened this issue May 15, 2014 · 0 comments

Comments

@foxling
Copy link

foxling commented May 15, 2014

self.titleLabel = [[FXLabel alloc] initWithFrame:CGRectMake(9, 7, 100, font.lineHeight)];
self.titleLabel.numberOfLines = 0;
self.titleLabel.font = font;
self.titleLabel.backgroundColor = [UIColor clearColor];
self.titleLabel.textColor = [UIColor whiteColor];
self.titleLabel.shadowColor = [[UIColor blackColor] colorWithAlphaComponent:0.2];
self.titleLabel.shadowOffset = CGSizeMake(0, 1);
self.titleLabel.shadowBlur = 1;
self.titleLabel.lineSpacing = 0.27;
self.titleLabel.text = @"如果是中文,就不会换行了";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant