Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2013, 07:59 PM   #1
soloist66
Enthusiast
soloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texan
 
soloist66's Avatar
 
Posts: 25
Karma: 18490
Join Date: Nov 2010
Location: New York City
Device: Sony PRS-650, PRS-T2, iPhone 5, iPad 4
Question CSS Font-Weight Property Values???

Hi. I have already been using Calibre to modify the fonts on non-DRM'd eBooks that I read on my Sony PRS-650 for quite some time. Now, I would like to do a bit more tweaking to make the fonts appear darker.

My first question is: what are the allowable CSS font-weight property values? I know of "normal" and "bold" but what are the other valid values?

My second question is: In Googling the web, I've seen numerical font-weight valid values being listed but I am not able to get these to work for some reason (e.g., "400", "600", "700", "800", "900"). Is there something I need to specify when using numeric weights instead?

Last edited by soloist66; 06-16-2013 at 08:01 PM. Reason: Wanted to add an icon.
soloist66 is offline   Reply With Quote
Old 06-16-2013, 08:10 PM   #2
JSWolf
Suspended
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.
 
Posts: 35,392
Karma: 16147088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
The only weight values that work are normal and bold.
JSWolf is offline   Reply With Quote
 
Enthusiast
Old 06-16-2013, 08:15 PM   #3
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 2,022
Karma: 2233955
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350: 3 Silver, 2 Blue!; Kobo Glo
One thing that I've done to increase the contrast so I can keep reading much later outside than I would normally (without needing added light that is), is when I add extra fonts to my Sonys, I only use the bold versions. I make copy of the bold and bold italics, rename them to regular and italic, and you've got darker text everywhere.

What I read seldom has bold highlights, 99% of the time it's italics. And if there is bold text, it's usually in chapter titles or other headers where the font size is a bit larger as well. So I don't miss seeing a difference between regular and bold at all for myself.

Sucky eyesight makes you use lots of tricks.
Ripplinger is offline   Reply With Quote
Old 06-16-2013, 08:30 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 13,596
Karma: 5126946
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by JSWolf View Post
The only weight values that work are normal and bold.
That seems odd, Numeric values are acceptable: 400 not '400'
theducks is offline   Reply With Quote
Old 06-16-2013, 08:36 PM   #5
soloist66
Enthusiast
soloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texan
 
soloist66's Avatar
 
Posts: 25
Karma: 18490
Join Date: Nov 2010
Location: New York City
Device: Sony PRS-650, PRS-T2, iPhone 5, iPad 4
Many thanks for the speedy response, JSWolf. "Bold" gets the job done -- just wanted to see if I had any other options!

And yes, Ripplinger, I too am afflicted with "sucky eyesight"!
soloist66 is offline   Reply With Quote
Old 06-16-2013, 08:39 PM   #6
JSWolf
Suspended
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.
 
Posts: 35,392
Karma: 16147088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by theducks View Post
That seems odd, Numeric values are acceptable: 400 not '400'
With ADE, you just use normal or bold. You don't use numbers. If the numbers work, you'd get bold and only one level of bold.
JSWolf is offline   Reply With Quote
Old 06-16-2013, 08:41 PM   #7
JSWolf
Suspended
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.
 
Posts: 35,392
Karma: 16147088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by soloist66 View Post
Many thanks for the speedy response, JSWolf. "Bold" gets the job done -- just wanted to see if I had any other options!

And yes, Ripplinger, I too am afflicted with "sucky eyesight"!
Give my modified Charis SIL a try. you may like it.

http://www.mediafire.com/download/64...ctModified.rar
JSWolf is offline   Reply With Quote
Old 06-16-2013, 08:42 PM   #8
soloist66
Enthusiast
soloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texansoloist66 might easily be mistaken for a Texan
 
soloist66's Avatar
 
Posts: 25
Karma: 18490
Join Date: Nov 2010
Location: New York City
Device: Sony PRS-650, PRS-T2, iPhone 5, iPad 4
Quote:
Originally Posted by theducks View Post
That seems odd, Numeric values are acceptable: 400 not '400'
Hmmm. I only included the quotes for the post. When I tried using the numeric weight values in Calibre to define Extra CSS, I did not use quotes, e.g.,
@font-face {
font-family: "LexiaDaMa";
font-weight: 600;
font-style: normal;
src: url(res:///Data/fonts/LexiaDaMa.otf);
}
soloist66 is offline   Reply With Quote
Old 06-16-2013, 09:08 PM   #9
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 13,596
Karma: 5126946
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by soloist66 View Post
Hmmm. I only included the quotes for the post. When I tried using the numeric weight values in Calibre to define Extra CSS, I did not use quotes, e.g.,
@font-face {
font-family: "LexiaDaMa";
font-weight: 600;
font-style: normal;
src: url(res:///Data/fonts/LexiaDaMa.otf);
}
AH!
font-weight in the @font

I think this needs to match the actual usage font-weight: in the selector (the reason there can be 4 @fonts. 1 for each combination of Style and Weight)
theducks is offline   Reply With Quote
Reply

Tags
css font-weight

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Incorrect line-height property in calibre CSS ? Bertrand Calibre 2 06-24-2011 04:15 PM
Wrong property in the css file Bertrand Writer2ePub 1 12-21-2010 05:05 AM
iPad ePub, CSS : Bug with 'position:relative' property ? Ereskelios Apple Devices 0 05-31-2010 01:08 AM


All times are GMT -4. The time now is 02:40 PM.


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