You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
FontLabel text = [[FontLabel alloc] initWithFrame:CGRectNull];
ZFont *zFont = [ZFont fontWithUIFont:[UIFont systemFontOfSize:15.0]];
NSDictionary *attributes = [NSDictionary
dictionaryWithObjectsAndKeys:
zFont, ZFontAttributeName, nil];
ZMutableAttributedString *str = [[[ZMutableAttributedString alloc]
initWithString:@"A very very large string......."
attributes:attributes]
autorelease];
text.zAttributedText = str;
Add a property for vertical alignment of the text in the FontLabel.
The text was updated successfully, but these errors were encountered: