From e7c27aff9407e183735f757cd06cc4fde257c22d Mon Sep 17 00:00:00 2001 From: Raul Menezes Date: Thu, 24 Oct 2024 09:39:12 +0100 Subject: [PATCH] Set usesFontLeading to false as it impacts in the text calculations of fonts with big leading --- HyperLabel/TextLayoutInfoProvider.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/HyperLabel/TextLayoutInfoProvider.swift b/HyperLabel/TextLayoutInfoProvider.swift index 956adb8..8a65d99 100644 --- a/HyperLabel/TextLayoutInfoProvider.swift +++ b/HyperLabel/TextLayoutInfoProvider.swift @@ -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) }