Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2024, 06:37 PM   #16
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
Unfortunately, fonts and font foundries are idiosyncratic that way. One may draw a font and give it a font weight of 650 or 750 and call it "bold" while others call weights with 700 normal. The font engine and browser determine the mappings from numeric weights to descriptive terms and not everyone agrees. Qt has its own. Most times the definitions are similar and things work but sometimes not. It was worse in the old days when font metric info was stored in a second file.

If in doubt on Linux, fire up FontForge to get a full readout of what the font metadata and metrics actually say.
KevinH is offline   Reply With Quote
Old 04-14-2024, 07:55 PM   #17
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by st_albert View Post
Seems like one thing for me to try would be to build Sigil-2,1,0 on the older machine with Qt-5.15.10, and see how it behaves.

Not tonight though

Albert
Aww, what the heck. So I went and built Sigil-2.1.0 on the older machine per the instructions in Building_on Linux_older.md.
in the end, I have Sigil 2.1.0 with Qt 5.15.30 and as for the preview problem it behaves just like Sigil 1.9.30

So I guess this confirms it's nothing wrong with Sigil itself; but I'm not sure I have exactly the same fonts installed on both machines. BTW if a font substitution is made, is there any way to tell what font it decided to use? I always code a fall-bac font of, say, "serif" in any font specifications, and that has always worked before now ( and still does on other epub readers AFAIK).

again, using the same file on both machines, I get the following:

Albert
Attached Thumbnails
Click image for larger version

Name:	Sigil-2.1.0_Qt-5.15.10-crop.jpg
Views:	39
Size:	352.9 KB
ID:	207590  
st_albert is offline   Reply With Quote
Advert
Old 04-16-2024, 12:00 PM   #18
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
SOLVED!
In my first post, I wrote:
Quote:
Originally Posted by st_albert View Post
I don't think this is a bug, but more likely ignorance on my part.
After absorbing all the advice presented above, especially Kevin's pointing me to font issues, it turns out my suspicion was correct. It was a PEBKAC problem.
After closely examining the inspector's "computed styles" column, I noticed that the rendered font was "aakar," which I think was a leftover from an over-zealous installation of foreign-language fonts by LibreOffice.
In contrast, on the machine that WAS displaying correctly, the rendered font was Times New Roman.
So on the problem machine, I deleted the "aakar" font. Now the rendered font became "Noto Serif" which behaves as expected with no modifications to the epub's CSS (e.g. changing font-weight: to 900 instead of "bold")

Many thanks to all the commentators for giving me the clues I needed!

Albert
st_albert is offline   Reply With Quote
Old 04-16-2024, 02:57 PM   #19
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
Glad to hear you got it working! And thanks for showing how to fix it!
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Note preview disabled? franklekens Kobo Reader 7 11-15-2019 08:54 AM
Preview/Book View and Stylesheet Errors ChrisI Sigil 10 08-08-2018 12:39 AM
User agent stylesheet: a proposal roger64 Editor 4 12-27-2014 02:00 AM
uninvited "user agent stylesheet" roger64 ePub 2 12-26-2014 07:50 PM
User agent DigitalDuke enTourage Archive 3 06-04-2010 03:20 PM


All times are GMT -4. The time now is 04:41 AM.


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