PDF Export Font Style Always Glitches

Steps to reproduce

  1. Use Default Theme
  2. Open any note in sandbox or any other vault
  3. Export as Pdf
  4. Any Export Settings

Expected result

Exported PDF has matching font style, bolding and italics

Actual result

A. The inline title is bolded

or

B. The headings, the inline title, italics and th have completely different font

*It may switch between the two outcomes whenever i restart obsidian

Environment

  • Operating system: MacOS Ventura 13.2.1

SYSTEM INFO:
Obsidian version: v1.1.15
Installer version: v1.0.3
Operating system: Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 22.2.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information


Screenshot 2023-02-23 at 4.49.49
Screenshot 2023-02-23 at 4.52.05

1 Like

The latest version of Obsidian (1.1.15) has bug fixes for ‘Export to PDF’. Not sure if it will fix this particular issue, but 


Your installer also needs updating. The app needs to complete a full install, not an incremental in-app one.

1 Like

Download and reinstall Obsidian, post a screen recording of this happening in the sandbox vault.

https://streamable.com/9zspb1

I used the latest installer.

My installer version is 1.1.9, I had the same problem after I updated to 1.1.15 within the app and it wasn’t fixed after a reinstall.
And I didn’t update to another version before updating to 1.1.15.

The font change for printing was introduced in 1.1.14, because PDF with default font did not work properly on MacOS apps.

what happens in you open the pdf in Adobe Reader?

Hi, can you try opening the Sanbox vault from the Help menu instead? If you open the sandbox from the vault switcher like you did in the recording, the sandbox doesn’t clear out it’s old state. It only resets the state when you open it by going to Help â€ș Open Help then pressing “Sandbox Vault.”

Let me know if you’re able to reproduce the issue still, since that will mean it’s happening from a clean slate.

It’s still reproduced even when i launched sandbox from help

It appears the same in adobe reader

Something funky is going on.

  • Opened Sandbox from question mark / help > Sandbox vault > Open
  • Pasted in
# h1 things

## h2 things

**bold things**

_italic things_

That's not on the roadmap take five, punch the tree....
  • Export PDF (no export settings changed) and I see this →

Notice the “h1 things” and “italics things” are serif.

  • Do nothing but export again (different file name) and see this →

Everything looks like sans-serif (as it should be).

SYSTEM INFO:
	Obsidian version: v1.1.15
	Installer version: v1.1.9
	Operating system: Windows 10 Pro 10.0.22621
	Login status: logged in
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none
2 Likes

Yeah it’s exactly what I have and reproduced above.

Strange because I thought it’s since I’m on Mac but you’re in Windows

1 Like

Same on macOS 13.2.1, Obsidian 1.1.15 (Installer 1.1.15), Sandbox

Have you found a solution?

I experience the exact same results after one export and then another export.

If you haven’t changed your text/editor font, the second export of notes seems to be fine. Remember to do it twice? :disappointed_relieved:

If you have changed your editor font and are comfortable with making a css snippet, this is a workaround for now →

2 Likes

I found a workaround fix for it! I performed clean uninstall which includes deleting the folder located here ~/Library/Application
Support/obsidian.

Then I used installer for obsidian 1.1.9 and disabled automatic updates. The glitch doesn’t occur at all in this version.

@windwalker, I’m glad you were able to get it working again.

For anyone reading in the future:

There are certain times when you may want to move certain files out of ~/Library/Application Support/obsidian/ (%appdata% on Windows) when troubleshooting, but it’s inadvisable to delete the entire folder.

I have updated to V1.1.16 but the problem still persists
I can’t find the lower version installer :smiling_face_with_tear:

1 Like

Here?

Can this css snippet help?