Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2022, 06:23 AM   #1
xrm0
Member
xrm0 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
Exclamation Preview only shows text in sans-serif!

"Suddenly" a computer using sigil 1.9.10 with macos (12.5) started showing all the text in the preview window as sans-serif.

The epub file doesn't have any style with sans-serif all the text is in serif.
Opening the file with ADE 4.5 and Books latest version shows the text as serif.

The same epub file, opened in another computer (macos 10.15.7) and with the same sigil version shows in the preview window the text as serif.

Any ideas on what could cause this?
xrm0 is offline   Reply With Quote
Old 07-26-2022, 06:51 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,550
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Well, the Preview font preference in Sigil's preferences would take priority when no css in the epub dictates what the font size/family should be. Have you checked to see if those preferences are set differently on the two machines?
DiapDealer is offline   Reply With Quote
Advert
Old 07-26-2022, 06:54 AM   #3
xrm0
Member
xrm0 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
The css sets the font-family for the text as serif and the epub passes epubcheck validation. I've also check that the preferences for Preview are the same in both machines.
xrm0 is offline   Reply With Quote
Old 07-26-2022, 07:09 AM   #4
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
Maybe you have the custom_preview_style.css file in your Sigil settings folder?
Attached Thumbnails
Click image for larger version

Name:	custom.png
Views:	101
Size:	64.3 KB
ID:	195297  
BeckyEbook is offline   Reply With Quote
Old 07-26-2022, 07:34 AM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,550
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't think it's the problem here (since the same epub displays as expected on a different machine with the same version of Sigil), but remember that Epubcheck doesn't validate css. It wouldn't pick up any potential problems or errors in your css. But as I said, I don't think the epub's css is the problem here. @BeckyEbook's suggestion does fit the symptoms, though. The Inspector would go a long way toward showing what (if any) css is being applied.

Last edited by DiapDealer; 07-26-2022 at 07:37 AM.
DiapDealer is offline   Reply With Quote
Advert
Old 07-26-2022, 07:42 AM   #6
xrm0
Member
xrm0 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
Thanks @DiapDealer and @BeckyEbook for your help!
@DiapDealer Forgot to say I validated the css with w3 validator.

The problem is now solved... and I didn't change anything! After some time, preview started showing the text in serif, without changing anything in the epub file. Maybe the machine with the problem auto-updated something? I don't know.
xrm0 is offline   Reply With Quote
Old 07-26-2022, 08:59 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,681
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
I don't think it's the problem here (since the same epub displays as expected on a different machine with the same version of Sigil), but remember that Epubcheck doesn't validate css. It wouldn't pick up any potential problems or errors in your css. But as I said, I don't think the epub's css is the problem here. @BeckyEbook's suggestion does fit the symptoms, though. The Inspector would go a long way toward showing what (if any) css is being applied.
I've had this problem with Calibre's editor where the preview showed as sans-serif when it was set to use a serif font. The solution was to switch to a different serif font as the one I was trying to use was not working. So if this happens to anyone else, this may be the solution.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I manually specify the fallback fonts for sans-serif, serif, monospace, etc.? rtiangha KOReader 4 12-19-2019 05:54 AM
Which typeface should use for ebook, Serif or Sans-serif droople Workshop 8 06-13-2010 07:20 AM
Serif or Sans Serif for readability? kilofox Amazon Kindle 19 02-20-2009 02:22 PM
Serif and Sans-Serif fonts in Libprs500 benong Calibre 1 02-06-2008 04:43 AM
Do you prefer the Reader's serif or its sans serif font? (poll) Alexander Turcic Sony Reader 9 11-25-2006 12:15 PM


All times are GMT -4. The time now is 11:50 PM.


MobileRead.com is a privately owned, operated and funded community.