augnustin / google-docs-publisher

Publish good looking Google Docs
https://gdoc.pub
273 stars 39 forks source link

G.Doc version changing original font #61

Open mganthomas opened 2 years ago

mganthomas commented 2 years ago

Hi There,

Thank you for your incredibly useful tool. Can I ask please, is there a fix for the gdoc version, so that it will publish with the same font as original doc?

https://gdoc.pub/doc/e/2PACX-1vRUpQCPKVrF-YxQdfZj7PVRs7puThH19A6aALBAnI_vq0TB9lt_HHXNraWNGgIMljR_hJBi87-MCTuG

You can see with the above, the gdoc has changed font to Times New Roman, when the original is in Calibri. I've tried using different fonts and the same occurs. Usually this happens 'overnight' and not when the G.doc is immediately published.

Any advice would be really helpful as of course the look of an online CV is somewhat important.

Many thanks

Mganthomas

augnustin commented 2 years ago

Hello Thomas,

Sorry for late answer. Been quite busy lately!

I looked at your issue, and unfortunately I cannot see any solution to it.

The calibri font from your document is loaded from an other domain name, which returns an error if the referer is https://gdoc.pub

Each user could disable sending the referer info, but that wouldn't be a solution for a random new comer, hence it is pretty useless.

I feel like gdoc has different treatment of fonts between the default ones and the "extra" ones, which come from another domain, hence I can only suggest to change back to default fonts.

Hopefully this restriction goes away in a near future!