         return textView
     }
 
-    func replace(attachmentImage: SocialIcon, in attributedString: NSMutableAttributedString, font: UIFont, textColor: UIColor) {
+    func replace(attachmentImage: SocialIcon, in attributedString: NSMutableAttributedString, textColor: UIColor) {
         let attachment = NSTextAttachment()
         let size = attachmentImage.image(bundle: sharedAssetBundle) != nil ? attachmentImage.image(bundle: sharedAssetBundle)!.size : .zero
-        attachment.bounds = CGRect(origin: .zero, size: CGSize(width: font.capHeight * size.width / size.height, height: font.capHeight))
+        let capHeight = environment.fonts.text.capHeight
+        attachment.bounds = CGRect(origin: .zero, size: CGSize(width: capHeight * size.width / size.height, height: capHeight))
         attachment.image = attachmentImage.image(bundle: sharedAssetBundle)
         let attachmentString = NSAttributedString(attachment: attachment)
 

        }
    }

    func setUpUI(thirdPartyKits: [String]?, acknowledgements: String?, titleFont: UIFont, textFont: UIFont, textColor: UIColor) {
        let textView = configureTextView(thirdPartyKits: thirdPartyKits, acknowledgements: acknowledgements, titleFont: titleFont, textFont: textFont, textColor: textColor)
        let socialLinks = configureSocialLinks(textColor: textColor)
        let copyright = configureCopyright(textFont: textFont, textColor: textColor)

        view.addSubview(textView)
        view.addSubview(socialLinks)

        fatalError("init(coder:) not implemented")
    }

    public required init(thirdPartyKits: [String]?, acknowledgements: String?, textColor: UIColor, environment: Environment, sharedAssetBundle: Bundle) {
        self.sharedAssetBundle = sharedAssetBundle
        self.environment = environment
        super.init(nibName: nil, bundle: nil)
        setUpUI(thirdPartyKits: thirdPartyKits, acknowledgements: acknowledgements, textColor: textColor)
        setUpSecretCrash()
    }

