![]() |
#1 |
Enthusiast
![]() Posts: 41
Karma: 10
Join Date: Mar 2008
Device: Sony PRS-T1
|
Different font for headings
Hi, I'd appreciate some help. I'm trying to use one font (georgia.tff) for the body and a different font (DroidSans-Bold.ttf) for the headings.
Here's my CSS: p {margin-left:5%; margin-right:5%; margin-top:0;margin-bottom:0; padding:0;text-indent:1.1em;font-size:120%} p.space{margin-left:5%; margin-right:5%; margin-top:2%;margin-bottom:0; padding:0;font-size:120%} p.space1{margin-left:5%; margin-right:5%; margin-top:4%;margin-bottom:0; padding:0;font-size:120%} div.ignore {margin-left:5%; margin-right:5%; margin-top:0;margin-bottom:0; padding:0;font-size:120%} @font-face { font-family: "Georgia"; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/georgia.ttf); } @font-face { font-family: "Georgia"; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/georgiai.ttf); } @font-face { font-family: "Heading"; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/DroidSans-Bold.ttf); } body { font-family: "Georgia", serif; } h2 {font-family: "Heading", serif; margin-left:5%; text-align: left; margin-bottom: 2cm; font-weight:bold} div.sgc-1 {text-align: center} div.sgc-3 {text-align: center;} h1.sgc-2 {text-align: center;} p.sgc-4 {font-style: italic} p.sgc-1 {font-style: italic} span.sgc-5 {letter-spacing:2px} I save it to my Sony 505 and the Droid font overrides the Georgia, so that everything, heading and body included, comes out in Droid. Would love some help, thanks ![]() Last edited by bremler; 03-09-2010 at 09:04 PM. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 41
Karma: 10
Join Date: Mar 2008
Device: Sony PRS-T1
|
Thanks charleski, I solved it. Sigil had added some extra tags to my headings, so they looked something like this: <h2 heading_id>Chapter 1</h2>.
So I went through and deleted the heading_id to make it just <h2> and now both fonts show up where they should be :-) |
![]() |
![]() |
![]() |
#4 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
And removing the ID should not have solved your CSS issue with the CSS code you posted. It was probably something else. Last edited by Valloric; 03-11-2010 at 09:26 AM. Reason: typo |
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 41
Karma: 10
Join Date: Mar 2008
Device: Sony PRS-T1
|
Hi Valloric, no, TOC works ok. I edited the tags within Sigil, knowing that Sigil would recreate them. And it did, but fonts remain intact.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to separate paragraphs and headings in Book View | amoroso | Sigil | 2 | 07-12-2010 08:27 AM |
Repeated Chapter Headings in Kobo Table of Contents | capsolo | Sigil | 5 | 06-20-2010 03:09 AM |
Detect chapter headings with capitalized words | fiendmish | Calibre | 6 | 05-31-2010 10:45 AM |
Managing HTML Link Behavior, From TOC to Chapter Headings | FlooseMan Dave | Calibre | 1 | 03-31-2010 11:55 PM |
Image maps as Chapter Headings? | kjk | Sigil | 6 | 10-17-2009 06:27 PM |