View Single Post
Old 03-31-2021, 12:18 PM   #14
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,255
Karma: 105299897
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Editing out the spaces manually doesn't work.

This works:
Delete all the embedded font files.
Delete the URLs in page.csss
Use Embed Fonts in Editor, which imports them with no spaces in the file names, unlike the GUI option on Look & Feel.
Subset them
A fonts.css is now added, so go to page.css and delete the now duplicated font entries. The html files will now automatically have fonts.css

Works on Kobo Libra.

Calibre is finding the required fonts when using Embed Fonts in the Editor apparently based on name in the CSS classes using them and sourcing them both in the normal system wide font directory and my local extra fonts in ~/.fonts (where ~ means home directory). Obviously the GUI option to Embed fonts is doing something odd as many of the font file names have spaces, they don't when added in the Editor.

Last edited by Quoth; 03-31-2021 at 12:28 PM. Reason: Source
Quoth is offline   Reply With Quote