Skip to content

Commit

Permalink
Set usesFontLeading to false as it impacts in the text calculations o…
Browse files Browse the repository at this point in the history
…f fonts with big leading
  • Loading branch information
rmenezes committed Oct 24, 2024
1 parent ae22da0 commit e7c27af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HyperLabel/TextLayoutInfoProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ final class TextLayoutInfoProvider {
self.textContainer = NSTextContainer()
self.textStorage = NSTextStorage()

self.layoutManager.usesFontLeading = false
self.layoutManager.addTextContainer(self.textContainer)
self.textStorage.addLayoutManager(self.layoutManager)
}
Expand Down

0 comments on commit e7c27af

Please sign in to comment.