PDF Export Font Style Always Glitches

will be fixed 1.2. No ETAs.

1 Like

Thank you for the new version 1.2. But the problem with the fonts is still there on Windows and on macOS.

@Hermann Please, Post a screen recording of this happening in the sandbox vault and attach debug info obtained in the sandbox vault.

Yes, here is my test.



In the exported PDF the font is NOT Times New Roman.

SYSTEM INFO:
Obsidian version: v1.2.0
Installer version: v1.1.16
Operating system: Darwin Kernel Version 21.6.0: Mon Dec 19 20:44:01 PST 2022; root:xnu-8020.240.18~2/RELEASE_X86_64 21.6.0
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: on

RECOMMENDATIONS:
none

Ok, let me clarify. Starting in v1.2.1

  • if user is using the default theme + default font = print will use Arial
  • if the user is using a custom theme and the theme specifies a font = print will use the theme font
  • if the user configures a custom font via settings = print will use that custom font
  • user can also configure their own custom print font via css by overriding the “–font-print” CSS var

Hi there, Is there a fix for v1.1.6 users ? my export font has changed and whatever I try it stays the same, from changing in the settings menu to changing in the CSS. I am using obsidian to write in Hebrew maybe it is related to that but I would appreciate a solution that will let me go back to the old font of the export.

You can use this CSS snippet to set your PDF export font:

@media print {
  body {
  --font-text: 'Inter' !important;
  }
}

Another version including h1:

1 Like

I appreciate your help, unfortunately this does not work, on export I still get an unknown font and It does not change, I tried both of the snippets and also from the settings menu.

I’m sorry to hear that. Others seem to have had luck with them. Can you try with ‘Times New Roman’ just to check if the snippet is working?

Note that the font name needs to be exact. For example, I use SF Mono for my Live Preview font, but it has to be written exactly as 'SFMono-Regular' or it won’t work. If you let us know the font name, we can have a look :+1:

Hi Thanks for your reply, I tried to use a font that is installed on my Windows and write it exactly it apears in the “fonts” section in the control panel and it did work as you said thank you very much ! I guess I just need to find out what is the name of the default Hebrew font they used before in export. Thank you very much !

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.