# Why does the font change after I paste an image in an RTF file?

**URL:** <https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445>\
**Category:** DEVONthink\
**Tags:** devonthink3\
**Created:** [February 1, 2020, 3:47pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445 "2020-02-01T15:47:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhucka](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/mhucka/32/28691_2.png) [@mhucka](https://discourse.devontechnologies.com/u/mhucka)\
**Post date:** [February 1, 2020, 3:47pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/1 "2020-02-01T15:47:36Z")

</div>

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.

1. Create a new RTF document (Data ➜ New ➜ Rich Text).
2. 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).
3. 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.)
4. Paste the image in the RTF document.
5. 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.)

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/3/39962f66a6f5f1682ef00fbf9df7f72aa8898c4d.png)

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [February 1, 2020, 3:56pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/2 "2020-02-01T15:56:12Z")

</div>

This is **not** a DEVONthink issue. It’s how the macOS text engine works.

Here is an example in TextEdit showing the same behavior…

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/1/126252bbcdf16090dba3d3c5ed1bf06986ab9dc7.jpeg)

---

<div class="post-metadata">

**Author:** ![mhucka](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/mhucka/32/28691_2.png) [@mhucka](https://discourse.devontechnologies.com/u/mhucka)\
**Post date:** [February 1, 2020, 3:58pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/3 "2020-02-01T15:58:41Z")

</div>

First, thanks for the ultra fast reply (frighteningly fast, actually). Second, arggh :-). Third, sorry for putting the blame on the wrong software!. Fourth, is there a way to control it?

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [February 1, 2020, 4:00pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/4 "2020-02-01T16:00:58Z")

</div>

1. You’re welcome 🙂
2. Yeah. Longstanding issue too.
3. No worries. It’s useful to check TextEdit and Preview for similar behaviors as we use the macOS frameworks for much of this functionality.
4. Not outside setting up a style and choosing it after the paste.

---

<div class="post-metadata">

**Author:** ![mhucka](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/mhucka/32/28691_2.png) [@mhucka](https://discourse.devontechnologies.com/u/mhucka)\
**Post date:** [February 1, 2020, 4:05pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/5 "2020-02-01T16:05:33Z")

</div>

I just tried setting the preference in TextEdit for the default font, but it didn’t seem to influence what happens after pasting an image **even in TextEdit itself** , which is bonkers if you ask me.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [February 1, 2020, 4:10pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/6 "2020-02-01T16:10:28Z")

</div>

Yep. No surprise there.

You can’t **Paste and Match Style** either since there’s image data on the clipboard.  
Here you can clearly see the font change after I paste…

 ![fontchangeInRTF](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/4/4e41470067e142d5ed7928fc2eb7dc8cd304da11.gif)

But again, I added a Favorite style… and this can be used to get back to a selected font.

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/7/72a1d2809352cb544e21cd6335a2892bf5ca9b8f.jpeg)

---

<div class="post-metadata">

**Author:** ![Blanc](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/blanc/32/8008_2.png) [@Blanc](https://discourse.devontechnologies.com/u/Blanc)\
**Post date:** [February 1, 2020, 5:05pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/7 "2020-02-01T17:05:54Z")

</div>

I’m a long-time user of word. I thought all that was normal behaviour 😃

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [February 1, 2020, 5:28pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/8 "2020-02-01T17:28:52Z")

</div>

Haha! It’s funny how we get used to broken behaviors and forget they’re broken.

---

<div class="post-metadata">

**Author:** ![weitzjb](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/w/977dab/32.png) [@weitzjb](https://discourse.devontechnologies.com/u/weitzjb)\
**Post date:** [December 11, 2021, 9:46am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/9 "2021-12-11T09:46:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mhucka](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/mhucka/32/28691_2.png) [@mhucka](https://discourse.devontechnologies.com/u/mhucka)\
**Post date:** [December 11, 2021, 4:46pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/10 "2021-12-11T16:46:42Z")

</div>

After I posted my question here last year, I asked about this issue on the Apple Stack Exchange site because it’s a general Apple issue and not something due to DEVONthink: [https://apple.stackexchange.com/questions/381090/why-does-the-font-change-after-i-paste-an-image-in-textedit](https://apple.stackexchange.com/questions/381090/why-does-the-font-change-after-i-paste-an-image-in-textedit)

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.

---

<div class="post-metadata">

**Author:** ![weitzjb](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/w/977dab/32.png) [@weitzjb](https://discourse.devontechnologies.com/u/weitzjb)\
**Post date:** [December 11, 2021, 7:25pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/11 "2021-12-11T19:25:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [December 13, 2021, 3:05pm UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/12 "2021-12-13T15:05:31Z")

</div>

> [@mhucka](#):
>
> After I posted my question here last year, I asked about this issue on the Apple Stack Exchange site because it’s a general Apple issue and not something due to DEVONthink:

The next release will work around this issue of macOS.

---

<div class="post-metadata">

**Author:** ![iApple](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/i/f08c70/32.png) [@iApple](https://discourse.devontechnologies.com/u/iApple)\
**Post date:** [October 14, 2022, 5:50am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/13 "2022-10-14T05:50:11Z")

</div>

> [@cgrunenberg](#):
>
> The next release will work around this issue of macOS.

Hi Christian. Was this addressed? Pasting image still causing fonts to change.

Also noticed that copy and paste image directly into DEVONthink resulted in much bigger file size versus insert/picture - same image but massive difference in RTFD file size.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 14, 2022, 8:54am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/14 "2022-10-14T08:54:53Z")

</div>

> [@iApple](#):
>
> Hi Christian. Was this addressed? Pasting image still causing fonts to change.

Which version of DEVONthink & macOS do you use? And did you paste into rich text documents or formatted notes?

---

<div class="post-metadata">

**Author:** ![iApple](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/i/f08c70/32.png) [@iApple](https://discourse.devontechnologies.com/u/iApple)\
**Post date:** [October 14, 2022, 9:20am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/15 "2022-10-14T09:20:31Z")

</div>

> [@cgrunenberg](#):
>
> Which version of DEVONthink & macOS do you use? And did you paste into rich text documents or formatted notes?

DEVONthink v3.8.6

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

---

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [October 14, 2022, 10:00am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/16 "2022-10-14T10:00:37Z")

</div>

> [@iApple](#):
>
> it’s a RTFD file in DEVONthink

That is rich text. A formatted note is HTML.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 14, 2022, 10:30am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/17 "2022-10-14T10:30:31Z")

</div>

The next release will fix this.

---

<div class="post-metadata">

**Author:** ![iApple](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/i/f08c70/32.png) [@iApple](https://discourse.devontechnologies.com/u/iApple)\
**Post date:** [October 15, 2022, 2:26am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/18 "2022-10-15T02:26:47Z")

</div>

> [@chrillek](#):
>
> That is rich text. A formatted note is HTML

Thanks for the education.

> [@cgrunenberg](#):
>
> The next release will fix this.

Thanks. Look forward to it.

> [@iApple](#):
>
> noticed that copy and paste image directly into DEVONthink resulted in much bigger file size versus insert/picture - same image but massive difference in RTFD file size

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

---

<div class="post-metadata">

**Author:** ![rmschne](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/8baadc/32.png) [@rmschne](https://discourse.devontechnologies.com/u/rmschne)\
**Post date:** [October 15, 2022, 7:11am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/19 "2022-10-15T07:11:13Z")

</div>

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.

**Might** be a workaround for you avoiding Preview.

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 15, 2022, 8:10am UTC](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445/20 "2022-10-15T08:10:03Z")

</div>

> [@iApple](#):
>
> 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

Copy & paste and the rich text engine use TIFF internally, the same should happen e.g. in TextEdit. Dropping files is more efficient and retains the original format.

[Next page](https://discourse.devontechnologies.com/t/why-does-the-font-change-after-i-paste-an-image-in-an-rtf-file/53445.md?page=2)
