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

[TIMOB-25161] iOS: Add thin, light, ultra-light & semi-bold font-sizes #9308

Merged
merged 4 commits into from Aug 16, 2017

Conversation

hansemannn
Copy link
Collaborator

@vijaysingh-axway
Copy link
Contributor

@hansemannn Can you resolve conflict here. Thanks.

if (self.isSemiboldWeight) {
font = [[UIFont systemFontOfSize:self.size weight:UIFontWeightSemibold] retain];
} else if (self.isItalicStyle) {
font = [[UIFont italicSystemFontOfSize:self.size] retain];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why put this api inside block of iOS 8.2 and greater ?

didChange |= (self.isBoldWeight)||(self.isSemiboldWeight)||!(self.isNormalWeight);
if ([fontWeightObject isEqualToString:@"semibold"]) {
didChange |= !(self.isSemiboldWeight)||(self.isBoldWeight)||(self.isNormalWeight)||(self.isThinWeight)||(self.isLightWeight)||(self.isUltraLightWeight);
self.isSemiboldWeight = YES;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix indentation.

@hansemannn
Copy link
Collaborator Author

@vijaysingh-axway We linted the iOS source yesterday night, so in case you are wondering why the line numbers differ: That's why. For your PR's (which will also all have merge conflicts), you can just pull from master, use your local version for resolving the conflicts and call clang-format -i -style=file Classes/YourFile.m. The clang-format library can be installed using brew install clang-format.

Copy link
Contributor

@vijaysingh-axway vijaysingh-axway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR passed.

Copy link
Contributor

@ewieberappc ewieberappc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR Passed.
New font weights are available and usable without issue.

@ewieberappc ewieberappc merged commit d165b12 into tidev:master Aug 16, 2017
@hansemannn hansemannn deleted the TIMOB-25161 branch August 16, 2017 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants