03-28-2011, 07:43 AM | #1 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2011
Device: none
|
How to change font size and font style?
So, I'm guessing I have to put some codes.
So where do I put it and what code are they? |
03-28-2011, 01:47 PM | #2 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
you can see how t font size is defined from your picture - just add it / amend it for other styles. look at book code to see what styles are being used & where.
I don't use font-types : command but it has similar syntax - google font-type css |
Advert | |
|
03-28-2011, 02:37 PM | #3 |
Wizard
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
You may not want to specify the font or the base size, as then you might not be able to modify it on the ereader or app. If this is for just your own use, then fine, but if potentially for other users, leave it to be adjusted by the user.
|
03-28-2011, 03:25 PM | #4 |
Fanatic
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
You should be able to see font-size on each of several different classes in your css. Different classes may possibly have different size text. chaptertitle may have a size of 1.5 while "normal" text may be 1. Depending on what text it is you're wanting to change, how many classes your epub had, where and how they're used, you may only need to modify one or a very few classes or you may need to modify many. You'll need to look through the epub to determine that.
- Byron |
03-28-2011, 03:59 PM | #5 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
most e reader devices replace all fonts with their own built-in fonts anyway - certainly both Kindle & Sony readers do - so focus mainly on font sizes,
there is in HTML / EPUB an option to use "simple" font sizes of small , large etc rather than precise measurements. also text in header tags will default to being larger than text in paragraphs without you specifying it in detail. |
Advert | |
|
03-28-2011, 04:07 PM | #6 | |
Fanatic
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
Quote:
You can set your own size/weight/color/whatever for your headers. I rarely like how large some of the larger headings get so I set my own size. |
|
03-28-2011, 07:03 PM | #7 | |
Well trained by Cats
Posts: 30,538
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I have specified size for headers. Some of this is to allow nested TOC entries based upon H#, and to keep the size down to fit a 5" device. |
|
03-28-2011, 08:18 PM | #8 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2011
Device: none
|
Thanks for the reply.
------------- there is in HTML / EPUB an option to use "simple" font sizes of small , large etc rather than precise measurements. Where do I get this option? |
03-28-2011, 08:26 PM | #9 | |
Well trained by Cats
Posts: 30,538
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
How well it is supported on your (and other) readers ? |
|
03-28-2011, 08:33 PM | #10 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2011
Device: none
|
Oh thanks.
------------- But editing format in Sigil is a tedious work especially there are many styles. Can I do the formating in a word processing program and still have the same results? |
03-28-2011, 09:09 PM | #11 | |
Well trained by Cats
Posts: 30,538
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Word processors tend to make trashy conversions There is no reason a simple book should have more than 10 styles. Body cover style titlepage style Chapter title block style First Paragraph (optional), dropcap (optional) regular paragraphs (can be default body stle. so redundent scene break style fine-print style (copyright, raves) |
|
03-28-2011, 10:30 PM | #12 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2011
Device: none
|
But which is better in formating Sigil or Word? In terms of ePub and PDF.
|
03-29-2011, 05:11 AM | #13 | |
Well trained by Cats
Posts: 30,538
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
PDF is a PAPER Print format, NOT a re-flowable, 'reader' format, therefor TERRIBLE for ebooks on smaller screens. WORD is also for creating documents that have NO LAYOUT RESTRICTIONS. EPUB is a special set of XHTML. The minute you include a an 'illegal command' in your Word document, your perceived formatting advantage is blown |
|
03-29-2011, 12:33 PM | #14 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
my sony prs650 had in issue with a font name & style arial italic bold font.
I was reading a tweaked book, which looked fine in sigil & in calibre, but on the sony my chapter titles had vanished! I checked the CSS and the chapter titles were explicity set , with a style of arial and also of italic , as well as being tagged as <h2> once I removed the font name from CSS ,and also removed the italic for good measure, & re-sent to sony all was well again. |
03-29-2011, 12:51 PM | #15 | |
Well trained by Cats
Posts: 30,538
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change .article_description font size? | tfeld | Recipes | 0 | 12-30-2010 06:32 PM |
Can't change font or font size in ereaders | jmacg | Sigil | 30 | 10-23-2010 10:21 PM |
Change font size? | Jabby | Sigil | 1 | 10-23-2010 06:59 PM |
Font Size Change | Phonella | Calibre | 10 | 01-28-2009 01:46 PM |
LRF Font Size Change | Brandon202000 | Sony Reader | 5 | 12-04-2007 06:53 PM |