Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2022, 11:14 AM   #1
taisdls
Junior Member
taisdls began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
Font-weight property not working below 400

Hi, I never posted here and english is not my mother language so sorry for any errors.. I'm trying to solve a mystery here.

My css looks like this:

@font-face {
font-family:"CantoriaMTSTd";
font-style:normal;
font-weight:normal;
src : url("../font/CantoriaMTSTd.otf");
}
@font-face {
font-family:"CantoriaMTSTd";
font-style:normal;
font-weight:300;
src : url("../font/CantoriaMTStd-Light.otf");
}
@font-face {
font-family:"CantoriaMTSTd";
font-style:normal;
font-weight:bold;
src : url("../font/CantoriaMTStd-Bold.otf");
}
p.sum1 {
-epub-hyphens:none;
font-family:"CantoriaMTSTd", serif;
font-size:1em;
font-style:normal;
font-weight:normal;
text-align:left;
}
p.sum2 {
-epub-hyphens:none;
font-family:"CantoriaMTSTd", serif;
font-size:1em;
font-style:normal;
font-weight:bold;
line-height:1.25;
text-align:left;
}
p.sum3 {
-epub-hyphens:none;
font-family:"CantoriaMTSTd", serif;
font-size:1em;
font-style:normal;
font-weight:300;
line-height:1.25;
text-align:left;
}



and my html file looks like this:

<p class="sum1">O pintor das transformações de sua gente —<br/> Gustavo Henrique Tuna</p>
<p class="sum2">CONTOS</p>
<p class="sum2">Urupês</p>
<p class="sum3">O engraçado arrependido</p>


All font files are properly inserted into the epub, and I checked that the filenames are correct in the css. I also checked for overlaps in the css and found none.
All weight and style variables in this font work, except the font-weight:300.
Sigil and all readers I've tried are reading the font as font-weight: normal. The font works normally in indesign and other softwares.
I also tried to change de font file multiple times.

Does somebody please know what's going on?
taisdls is offline   Reply With Quote
Old 09-14-2022, 11:21 AM   #2
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: 80,467
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
It's most likely something to do with QT. Also, in a lot of reading software numeric weights don't work.

If this eBooks is going to be read on an eInk screen, the light font is not going to look good as it's too light.

Last edited by JSWolf; 09-14-2022 at 11:26 AM.
JSWolf is online now   Reply With Quote
Advert
Old 09-14-2022, 11:24 AM   #3
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Have you tried renaming the Light font to something like Light, (e.g., CantoriaMTSTd_lt) to see if that takes, instead of trying to call the 300 weight?

Hitch
Hitch is offline   Reply With Quote
Old 09-14-2022, 11:29 AM   #4
taisdls
Junior Member
taisdls began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
Quote:
Originally Posted by JSWolf View Post
It's most likely something to do with QT. Also, in a lot of reading software numeric weights don't work.
Thank you for answering! In the same file I use numeric weight for the semibold property (600) and it does work on Sigil and the other softwares I tried. I know that it won't work everywhere but I'm curious to why just the 300 property doesn't work.

I don't know what QT is, could you tell me what the acronym means so I can search it?
taisdls is offline   Reply With Quote
Old 09-14-2022, 11:33 AM   #5
taisdls
Junior Member
taisdls began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
Quote:
Originally Posted by Hitch View Post
Have you tried renaming the Light font to something like Light, (e.g., CantoriaMTSTd_lt) to see if that takes, instead of trying to call the 300 weight?

Hitch
Yes, I tried that. I even tried to exclude the file and the references to the file of the normal font, but Sigil reads it like normal anyway. Thank you for responding.
taisdls is offline   Reply With Quote
Advert
Old 09-14-2022, 11:38 AM   #6
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by taisdls View Post
Yes, I tried that. I even tried to exclude the file and the references to the file of the normal font, but Sigil reads it like normal anyway. Thank you for responding.
Then my next question would be, have you closely examined the metadata on the font faces? Do all the faces allow embedding? (Yes, I know, it seems daft that one mightn't, but I've seen stranger.)

Is this a free download of a foundry font? When i view Cantoria MT at the typical foundry sites, I don't see any "weights" like 300. I see light, Std. Light, Extra Bold, Bold and the usual. I don't see 400 or 300 weight anywhere. I further don't have this particular font in my foundry, so I can't look at the meta, but...so far, even in searching online, I don't see a Cantoria 300. ???

Hitch
Hitch is offline   Reply With Quote
Old 09-14-2022, 11:38 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: 80,467
Karma: 150249619
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 taisdls View Post
I don't know what QT is, could you tell me what the acronym means so I can search it?
Qt is the underlying software that allows Sigil to work on Windows, Linux, and Mac. It has some gotchas with it and this could be one of them.

Last edited by JSWolf; 09-15-2022 at 06:12 AM.
JSWolf is online now   Reply With Quote
Old 09-14-2022, 11:39 AM   #8
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,384
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
QT stands for 'QT' it is a programming development environment. I would say a large percentage of apps and programs use it... but... it does have some bugs. Wolfie was just saying it might be a QT bug.
Turtle91 is offline   Reply With Quote
Old 09-14-2022, 11:41 AM   #9
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,818
Karma: 206879174
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sigil's WebEngine rendering system is not entirely definitive for how things will look on various devices and reading apps. Have you tried previewing it on actual reading devices and in Epub apps to make sure it's not working?

EDIT: whoops. I missed the "and all readers I've tried" part.

Last edited by DiapDealer; 09-14-2022 at 11:43 AM.
DiapDealer is offline   Reply With Quote
Old 09-14-2022, 11:49 AM   #10
taisdls
Junior Member
taisdls began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
Quote:
Originally Posted by JSWolf View Post
QT is QuickTime which is the underlying software that allows Sigil to work on Windows, Linux, and Mac. It has some gotchas with it and this could be one of them.
Thank you for explaining. I will just use the normal font. I actually would prefer to do that from the start, but my employer does not understand well the differences between print and epub material, and asks that the exact same specifications be kept. I asked because I'm curious and also to be able to explain to him why I didn't keep the weight of the fonts as he wanted. Anyway, thank you.
taisdls is offline   Reply With Quote
Old 09-14-2022, 11:54 AM   #11
taisdls
Junior Member
taisdls began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
Quote:
Originally Posted by Hitch View Post
Then my next question would be, have you closely examined the metadata on the font faces? Do all the faces allow embedding? (Yes, I know, it seems daft that one mightn't, but I've seen stranger.)

Is this a free download of a foundry font? When i view Cantoria MT at the typical foundry sites, I don't see any "weights" like 300. I see light, Std. Light, Extra Bold, Bold and the usual. I don't see 400 or 300 weight anywhere. I further don't have this particular font in my foundry, so I can't look at the meta, but...so far, even in searching online, I don't see a Cantoria 300. ???

Hitch
I'm not an expert on this particular area, unfortunately, so I wouldn't know how to examine the metadata on the font faces. And I'm using the fonts my workplace provides, so I don't know the license status either..
I'm using the light font, not an especified 300 weight font, but the font-weight property:300 usually equals light, right?
taisdls is offline   Reply With Quote
Old 09-14-2022, 12:02 PM   #12
taisdls
Junior Member
taisdls began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
Quote:
Originally Posted by Turtle91 View Post
QT stands for 'QT' it is a programming development environment. I would say a large percentage of apps and programs use it... but... it does have some bugs. Wolfie was just saying it might be a QT bug.
Oh, I see. I'm really not a programmer, just an editorial designer with excessive curiosity, lol. So that was another level for me. Thanks
taisdls is offline   Reply With Quote
Old 09-14-2022, 12:20 PM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by taisdls View Post
I'm not an expert on this particular area, unfortunately, so I wouldn't know how to examine the metadata on the font faces. And I'm using the fonts my workplace provides, so I don't know the license status either..
I'm using the light font, not an especified 300 weight font, but the font-weight property:300 usually equals light, right?
So, you're calling it a weight that it, itself, does not designate itself? You're just assigning "300" to mean light? What if the actual weight is (say) 350 or 400 or...whatever? You could be giving it conflicting instructions, which is why the font is crashing.

Although, then you say that you've removed the "300" designation, probably named it Light (or whatever) and it still doesn't work?

Without seeing the fonts, which appear to not exist in the wild, (those faces for that font, I mean), I'm not sure if we can solve that from here.

Nothing you have done has made the Light face work? In any environment, or only this one?

Hitch
Hitch is offline   Reply With Quote
Old 09-14-2022, 01:01 PM   #14
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,818
Karma: 206879174
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
My question would be whether the correct font is rendering at all (never mind the weight) when the light font is requested. If not, it could be a case where the font itself won't embed.
DiapDealer is offline   Reply With Quote
Old 09-14-2022, 01:11 PM   #15
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: 80,467
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
A light font may work in print, but it doesn't work in an eBook as it's too light (not enough weight).

When you do make this eBook, test it on eInk devices such as Kobo and Kindle. That way you can see for yourself how bad a light font is for an eBook.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Forge and adding font weight for Kobo? Alanon Kobo Reader 7 12-12-2019 04:35 PM
Aura font weight urbie Kobo Reader 8 08-12-2014 08:07 AM
CSS Font-Weight Property Values??? soloist66 Conversion 8 06-16-2013 09:08 PM
Glo Font Weight and Sharpness bethany7 Kobo Reader 3 03-31-2013 11:22 PM
Font Weight Issue: Rowebo Conversion 2 01-09-2013 12:33 PM


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


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