View Single Post
Old 03-31-2021, 01:57 PM   #6
GranitStateColin
Member
GranitStateColin began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2017
Device: none
Hmm, reposting (as memory permits) because I've posted other comments since which have appeared, but this one from about 7-8 hours ago with the screen captures did not. Trying again in the hope it becomes visible this time with apologies if this ends up appearing twice:

Quote:
Originally Posted by DNSB View Post
What I've done when I've had issues with fonts is to rename the font files replacing spaces with underlines and then used FontForge to change the internal font name to match. This has to be repeated for all four variants (Regular, Bold, BoldItalic and Italic).
@DNSB, I had tried that specifically, but with FontLab and TransType, before posting here, but it had no effect. Based on your post, installed and also tried FontForge, which did exactly the same thing: nothing. :-)

Here are screen shots showing the spaces removed from the font's name in FontForge, and yet added back in by Calibre (or Word) after embedding in the Word document and using Calibre to convert the DOCX -> EPUB.

Note in the FontForge page, the I've reduced the TTF name from "Avrile Serif - Regular" to "AvrileSerifRegular", but in Calibre, following the corversion, it shows as "AvrileSerif - Regular.ttf" So it keeps the space removal in the Family name, but adds spaces to separate the Style name.
Attached Thumbnails
Click image for larger version

Name:	FontForge View.png
Views:	340
Size:	52.6 KB
ID:	186275   Click image for larger version

Name:	Calibre added spaces to the font name.png
Views:	403
Size:	18.6 KB
ID:	186276  
GranitStateColin is offline   Reply With Quote