1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-27 14:14:19 +03:00

Add comment

This commit is contained in:
Tae Won Ha 2023-12-24 20:28:16 +01:00
parent 54f95ec4dd
commit 6431c1d603
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -150,6 +150,8 @@ final class AttributesRunDrawer {
}
private func fontGlyphRuns(from attrsRun: AttributesRun, offset: CGPoint) -> [FontGlyphRun] {
// We do the check here despite the fact FontUtils.font(adding:to:) does it
// since empty trait is the most frequent case
let font = if attrsRun.attrs.fontTrait.isEmpty {
self.font
} else {