-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add vertical alignment controls #1
Comments
+1 |
Hi! I've an issue related with this. I have a FontLabel instantiated using a system font (not ZFont). Works fine ands display my texts, the is the size for the label. I'm using sizeWithFont:constrainedToSize:lineBreakMode: for calculate the desired FontLabel size but appears that the font size is more bigger than the real size used in FontLabel and all my texts are vertical centered. I didn't found a solution navigating in the code if anybody has an idea please tell me. Example: // Instantiate the font label ant ZFont
// Calculates size for the text
// Creates the rect
The resultant rect is (points area spaces): +-----------------------------------+ |................................................ | |................................................ | |................................................ | | Very very large sfsdfsdfdf | | string bla bla bla bla bla b | |................................................ | |................................................ | |................................................ | +-----------------------------------+ The result size doesn't adjust to the text and appears vertical centered. Thanks! |
Add a property for vertical alignment of the text in the FontLabel.
The text was updated successfully, but these errors were encountered: