![]() |
#1 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#4 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
|
Quote:
I don't know what QT is, could you tell me what the acronym means so I can search it? |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
|
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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 |
|
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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. |
![]() |
![]() |
![]() |
#8 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
|
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.
|
![]() |
![]() |
![]() |
#11 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
|
Quote:
I'm using the light font, not an especified 300 weight font, but the font-weight property:300 usually equals light, right? |
|
![]() |
![]() |
![]() |
#12 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2022
Location: Brazil
Device: none
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#13 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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 |
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |