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
Love this project! Been using code abstracted from it for my own project but I noticed a few things while working on it. For one, the glyphs don't render properly. If you call [super setAttributedText:attributedText]; when setting the attributed text you can see how off it is. Also multi-line text doesn't render. I'm investigating but it looks like you need CGRect lineFragmentRect = [self.layoutManager lineFragmentRectForGlyphAtIndex:glyphIndex effectiveRange:nil]; to get the correct y-position of the line fragment. I'll post any updates I make that seem to help resolve the issue.
many thanks!
The text was updated successfully, but these errors were encountered:
Not sure what CGPoint location = [self.layoutManager locationForGlyphAtIndex:glyphIndex]; is returning, but it seems to throw things off vertically. Also, adjusting the line height multiplier on the attributes causes all sorts of rendering issues.
Hey,
Love this project! Been using code abstracted from it for my own project but I noticed a few things while working on it. For one, the glyphs don't render properly. If you call
[super setAttributedText:attributedText];
when setting the attributed text you can see how off it is. Also multi-line text doesn't render. I'm investigating but it looks like you needCGRect lineFragmentRect = [self.layoutManager lineFragmentRectForGlyphAtIndex:glyphIndex effectiveRange:nil];
to get the correct y-position of the line fragment. I'll post any updates I make that seem to help resolve the issue.many thanks!
The text was updated successfully, but these errors were encountered: