         guard let context = NSGraphicsContext.current?.cgContext else { return assertionFailure() }
         
         let line = CTLineCreateWithAttributedString(self.attributedStringValue as CFAttributedString)
-        let bounds = self.attributedStringValue.bounds.integral
+        let bounds = self.attributedStringValue.pathBounds.integral
         
         context.saveGState()
         


private extension NSAttributedString {
    
    var bounds: NSRect {
        
        let line = CTLineCreateWithAttributedString(self as CFAttributedString)
        

    /// required size
    override var intrinsicContentSize: NSSize {
        
        return self.attributedStringValue.pathBounds.integral.size
    }
    
    
