Here is a simple sequence of actions that produces an unexpected side-effect, and I don’t understand why, and would like to know how to prevent it.
Create a new RTF document (Data ➜ New ➜ Rich Text).
Type some text in the document. The font DEVONthink uses at this point is what I set in my DEVONthink preferences “Editing” tag for “Rich Text & Note Font” (which, in my case, is Roboto).
Capture an image to the clipboard, e.g., using the standard macOS facility for “copy a picture of the selected area to the clipboard”. (Any image will do.)
Paste the image in the RTF document.
Press return to start a new line, and type more text.
The font and font size in the RTF document after step #4 is changed. (In my case, it changes to Helvetica; I don’t know if it’s the same font for everyone or there is some setting somewhere that sets Helvetica for me.) In both lines of text, the menu Format ➜ Style has a checkmark next to “Plain”.
Why does the font changes? What controls this behavior? Can I make it stop changing, so that text typed after step #4 is the font set in my “Rich Text & Note Font” preference instead of Helvetica?
Here is a screenshot showing the document, where I’ve pasted captured images of the Styles panel (Format ➜ Styles ➜ Styles…) panel as it appears for each line of text. (To be clear: this shows a single RTF document in DEVONthink in which I followed exactly the steps above. I copied and pasted the image of the Styles… panel as the image described in step #3.)
I have only managed to deal with this by pasting image in between 2 seperate bits of text so the font persists. V annoying! Is the font it defaults to after pasting some system default? Could this be changed?
The short answer is that the behavior appears to be due to a bug in the implementation of one of Apple’s software subsystems. Changing defaults doesn’t seem to make a difference; it always reverts specifically to the Helvetica 12 pt font no matter what you do. The only solution is to do some kind of workaround, such as typing a space first, then backspacing, then pasting the image. (This could be automated using Keyboard Maestro or some other way.)
I’ve stopped using RTF files because of issues like this, so I’m afraid I don’t have any other suggestions about what to do.
Many thanks for your speedy response. Had almost reached critical threshold to move to MD and this will do it I think, even if it is a bit more fiddly with images! Its also much quicker when using scripts etc than RTF.
I’m not technical enough to know difference between rich text or formatted notes - it’s a RTFD file in DEVONthink. Typically I copy and paste image from screenshots or from Preview and font changed when RETURN is entered after pasting image
Christian: advice on overcoming this? Copy and paste images directly cause RTFD file to dramatically increase in size - have to do extra steps by copying image - paste in Preview - save image - paste to DEVONthink via insert picture to avoid bloating RTFD
From where do you typically get these images? From a web page in a browser (Safari)? If yes, then perhaps right-mouse on the image, copy image, then in DEVONthink RTFD file put cursor where you want, then pick Menu: Edit → Paste with Source Link. Delete the source link if you don’t want. From my limited testing it does not change font in target file.
I was going to say Menu: Edit → Paste and Match Style … which is the normal way to retain formatting, it pastes only the URL … which makes sense since that Edit command really is for text.