In other words, this seems to be a peculiarity of Apple's implementation of NSTextView. \fs24 īased on this, I can quite conclusively determine that this pasting behaviour is related to in-memory handling of formatted text. In particular, \fs12 never appears in the file. The same image directive occurs in repeat without any text formatting directives. Then I inspected a file where I had appended the same image multiple times. Interestingly, the file contents were identical! This suggests that there is no intentional change of text format settings, and that reverting to Helvetica 12 pt is directly connected to the presence of the image. rtfd ( RTF Directory) bundles here.Īt first I compared two files, one where no image had yet been pasted, and another where the image was pasted and then removed. Actually the original RTF file format doesn't support images, so we're really talking about. We're looking for a font-size directive like \fs12 or \fs24. #Font viewer of my text then copy and paste how toI'm not sure how to peek at the in-memory state of NSTextView but if we save the file to disk then we can inspect the content of the RTF file. Although I haven't yet tried using TinkerTool to change system-wide font settings. This seems to be a hardcoded, unchangeable system default. The font always reverts to Helvetica 12 pt after pasting an image, regardless of any settings I tried. I'll go into more detail below about what else I learned. One thing that worked well for me is typing a space, then tapping the left arrow ◀️ key once before pasting an image. I don't know how to prevent it from happening when you're appending an image to text, but maybe you'll get what you want by inserting an image into the middle of formatted text then the before/after text preserves original formatting. This happens with any kind of image insertion (eg. I can consistently reproduce this behaviour in TextEdit.app and Notes.app on macOS Catalina 10.15.3 (19D76). In case it is relevant, here is an image of my TextEdit Preferences panel: Why does the font change? What controls this behavior? And how can I make it stop changing, so that text typed after step #4 continues to be the font set in my “Rich Text
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |