|  06-16-2013, 07:59 PM | #1 | 
| Enthusiast            Posts: 25 Karma: 18490 Join Date: Nov 2010 Location: Irvington, NY Device: Kindle PW11 SE, Kobo Libra 2, iPad Air, Sony PRS-650, Sony PRS-505 |  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. | 
|   |   | 
|  06-16-2013, 08:10 PM | #2 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			The only weight values that work are normal and bold.
		 | 
|   |   | 
|  06-16-2013, 08:15 PM | #3 | 
| 350 Hoarder            Posts: 3,587 Karma: 8281267 Join Date: Dec 2010 Location: Midwest USA Device: Sony PRS-350, Kobo Glo & Glo HD, PW2 | 
			
			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. | 
|   |   | 
|  06-16-2013, 08:30 PM | #4 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  06-16-2013, 08:36 PM | #5 | 
| Enthusiast            Posts: 25 Karma: 18490 Join Date: Nov 2010 Location: Irvington, NY Device: Kindle PW11 SE, Kobo Libra 2, iPad Air, Sony PRS-650, Sony PRS-505 | 
			
			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"! | 
|   |   | 
|  06-16-2013, 08:39 PM | #6 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | |
|   |   | 
|  06-16-2013, 08:41 PM | #7 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 https://www.mobileread.com/forums/sho...d.php?t=184056 Last edited by JSWolf; 07-27-2016 at 05:39 PM. | |
|   |   | 
|  06-16-2013, 08:42 PM | #8 | 
| Enthusiast            Posts: 25 Karma: 18490 Join Date: Nov 2010 Location: Irvington, NY Device: Kindle PW11 SE, Kobo Libra 2, iPad Air, Sony PRS-650, Sony PRS-505 | 
			
			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); } | 
|   |   | 
|  06-16-2013, 09:08 PM | #9 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 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) | |
|   |   | 
|  | 
| Tags | 
| css font-weight | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| iPad ePub, CSS : Bug with 'position:relative' property ? | Ereskelios | Apple Devices | 3 | 09-29-2014 07:53 AM | 
| 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 |