Quote:
Originally Posted by Liudprand
Thanks for this. I'm not familiar enough with CCS to know what I'm doing, but I'll look into it...
|
As
hobnail pointed out, using the "
font-variant: oldstyle-nums;" is what controls this. I'm working with Minion in Calibre ebook-edit at this moment, and removing "
oldstlyle-nums", and placing it back, turns the numeral style back-and-forth like a switch.
This just just solved my issue as I want the lining numbers for legibility, so I'm removing "
oldstyle-nums" in the CSS at the individual class level by adding "
font-variant: common-ligatures proportional-nums;" and leaving it at the "body" level as "
font-variant: common-ligatures oldstle-nums proportional-nums;." I quite honestly forgot I had this declared at the body level.
You can open your book file with Claibre's ebook-edit.exe and edit the CSS directly. It's fairly simple to follow the constructs, and toward the top you will see the "body" section where hobnail's "
font-variant:" example can be added. Just beware that each individual class can have its own font-variant and if there is a "
font-variant: normal" property at the class level, this will override anything declared at the body level.
Any property declared below a previous declaration takes precedence. The "body" properties are for the entire layout, but if a body property is changed in a following "class", the class property takes precedence. That's not the whole of CSS rules, but it may be enough to fix your problem.