Fix PDF export font embedding and improve sync reliability

- Replace data URL loading with temporary HTML file to avoid URL length limits
- Embed font files as data URLs in print document CSS for offline rendering
- Add font asset registry for Merriweather, Crimson Pro, Roboto Serif, and Average
- Implement font file caching and blob-to-data-URL conversion
- Clean up temporary HTML file after PDF generation
- Fix sync to refresh notes after favorite status sync completes
This commit is contained in:
drelich
2026-04-06 09:46:26 +02:00
parent 6e970f37ea
commit e21e443a59
4 changed files with 127 additions and 4 deletions

View File

@@ -68,7 +68,9 @@ export class SyncManager {
try {
this.notifyStatus('syncing', 0);
const notes = await this.fetchAndCacheNotes();
await this.fetchAndCacheNotes();
await this.syncFavoriteStatus();
const notes = await localDB.getAllNotes();
this.notifyStatus('idle', 0);
return notes;
} catch (error) {