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

Interface builder font #36

Closed
emrsn-SebastianVancea opened this issue Apr 23, 2015 · 4 comments
Closed

Interface builder font #36

emrsn-SebastianVancea opened this issue Apr 23, 2015 · 4 comments

Comments

@emrsn-SebastianVancea
Copy link

I've added the files manually to my project (just drag&drop, no framework created) since I have some issues with CocoaPods/Carthage.
I have also set the Interface Builder class object of the label to LTMorphingLabel. Did not add module since it's the current one.

Issue is the label is displayed with some default font instead of the one set in the storyboard. The text also has a big top offset and only the top half is displayed. The label does not have a height constraint in the storyboard, it just has top/bottom/trailing/leading spaces to superview set.

Thank you for the library, I really appreciate it. Job well done!

Edit: The text position is almost fixed if I call layoutSubviews() on the label. The baseline is still a few pixels lower than the text using UILabel.

@emrsn-SebastianVancea emrsn-SebastianVancea changed the title Interface builder properties Interface builder font Apr 23, 2015
@lexrus
Copy link
Owner

lexrus commented Apr 24, 2015

Frankly, I knew this issue. But I need more time to think over it.

@emrsn-SebastianVancea
Copy link
Author

It works fine in the example project. Any idea what causes it? Does it have something to do with the label updating after views are finished loading and layouting?

@lexrus lexrus closed this as completed in 0abe2b5 Apr 24, 2015
@lexrus
Copy link
Owner

lexrus commented Apr 24, 2015

screen shot 2015-04-24 at 12 10 40 pm

Please check out the latest source.

@emrsn-SebastianVancea
Copy link
Author

Thank you, the fix works for the offset. It still ignores the storyboard Font in my app but everything looks ok if I set it programatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants