Why do AttributedStrings render slightly different on SwiftUI?

Hi,

I have a strange problem when drawing NSAttributedStrings in SwiftUI. Compared to render it in AppKit the SwiftUI characters are 1pt smaller.
To display the string in SwiftUI I have to use NSViewRepresentable but it does not matter if I render the view in draw() of NSView or use a NSTextField to display it. I have to use NSViewRepresentable as I also have to use CMYK-Colors.
The font used is "The Sans Mono-W8 ExtraBold".

Can anyone point my for a hint? Or is this a bug?
Why do AttributedStrings render slightly different on SwiftUI?
 
 
Q