View Single Post
Old 05-13-2025, 04:52 AM   #1
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 455
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Font embedding path irregularities

Historically, I've used the following font-face styling in the css file:

Code:
@font-face {
	font-family: "Courier";
	font-style: normal;
	font-weight: normal;
	src: url(../Fonts/cour.ttf);
	}
But in Sigil 2.4.2. it seems that it sometime won't render correctly unless I change it to:

Code:
@font-face {
	font-family: "Courier";
	font-style: normal;
	font-weight: normal;
	src: url(Fonts/cour.ttf);
	}
... but other times it only works with the leading "../"!

Does anyone know what's going on here? I also haven't been able to discern any pattern when one path is needed over the other.
ElMiko is offline   Reply With Quote