From 804164740e16c8ca48a578e069a986a03950f399 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 25 Sep 2023 17:04:47 +0800 Subject: [PATCH] TDKCandidates // Patch `.kern` for macOS 14. --- .../Sources/CandidateWindow/CandidateCellData_Core.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_Core.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_Core.swift index 8b7f5bfc..53d59b6f 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_Core.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidateCellData_Core.swift @@ -147,8 +147,8 @@ public class CandidateCellData: Hashable { noSpacePadding: Bool = true, withHighlight: Bool = false, isMatrix: Bool = false ) -> NSAttributedString { let attrSpace: [NSAttributedString.Key: Any] = [ - .font: phraseFont(size: size), .kern: 0, + .font: phraseFont(size: size), .paragraphStyle: Self.sharedParagraphStyle, ] let result: NSMutableAttributedString = { @@ -185,6 +185,7 @@ public class CandidateCellData: Hashable { public func attributedStringPhrase(isMatrix: Bool = false) -> NSAttributedString { var attrCandidate: [NSAttributedString.Key: Any] = [ + .kern: 0, .font: phraseFont(size: size), .paragraphStyle: Self.sharedParagraphStyle, .foregroundColor: fontColorCandidate,