|
|
#31 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 470352
Join Date: Dec 2012
Device: Kindle Fire, IPad
|
I removed the extra stylesheet and added the style to the stylesheet with in the epub and I still get the color but not the font. test epub is in the attached. any help? |
|
|
|
|
|
#32 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,837
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
What do you mean by "when I publish"?
EDIT: also, I see no font-face declarations in your CSS. Custom embedded fonts require @font-face declarations. See the examples provided in some of the earlier posts.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” Last edited by DiapDealer; 02-26-2013 at 11:05 AM. |
|
|
|
|
Enthusiast
|
|
|
|
#33 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,725
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Code:
font-family: "Bradley Hand ITC"; how many font faces are you using? You only embedded ONE. some of the others are probably default supported, but not all
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#34 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,225
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
The reason you see some of the fonts in Sigil is that they are being picked up by being installed in your OS. They won't be picked up in ADE without actually being embedded.
Another thing, the code is a real mess. Cleaning it up would also be a good idea.
__________________
|
|
|
|
|
|
#35 | ||||
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 2178910
Join Date: Dec 2012
Location: Bangkok, Thailand today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
|
Step 1:
Make sure ALL the special fonts you are using are embedded by adding the file in the Fonts folder. Click "add existing files", point at the file and Sigil will put it in the correct place. Step 2: Place a font face declaration in your stylesheet (in your case "stylesheet.css") for EACH different font you wish to embed. It should look like this Quote:
You need to change the bold areas to correspond to your particular font. Notice the full path required in the url "..Fonts/" before the filename...that is important. Quote:
You will need to do this for EACH font you want to embed. Step 4: Define a class to use the font you declared with the Font Face. This also goes in your stylesheet. Quote:
specialfont with a different class name for each font (specfont1, specfont2, etc.) It's better to be descriptive so you can remember which font does what. (no spaces) yourFont with the name you called the font in your font face declaration. cursive with whatever fallback font you want to use if the reader doesn't have or support your embedded font. Make sure you surround the font names with quotes if it has any spaces in it. Step 5: You need to tag the text you wish to use so that the browser knows you want to use a special font on it. You do this by giving it the CLASS that you designated in your stylesheet (step 4). Quote:
Step 6: As JSWolf noted, your code is awfully messy - a lot of extraneous markups and stuff that doesn't need to be in there. That is normal to see when you have automatic conversion (like Calibre) of a document (like Word). It is not REQUIRED to clean it up, but not cleaning it makes it much more difficult to determine exactly what is being done to your text and how to change it. Here is an example of clean code from your first page (step5.html) compare it to what you have and you will see a big difference. Realize that there are many different ways of doing this, this is just a quick example. Spoiler:
I hope that helps you out! [edit:] I put the style definitions in the head of this document so you could see them - all the stuff between the <style></style> tags. Normally you put that in your stylesheet -without the <style></style> tags.
__________________
Dion "Gnihcnip" - the act of "reverse pinching" to expand/zoom. Pronounced "Niknip" (the "g" and "h" are silent). "Live long and prosper." ~ Spock "What's that goat doing up in the clouds? " ~ Pilot
Last edited by Turtle91; 02-26-2013 at 05:32 PM. |
||||
|
|
|
|
|
#36 |
|
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,102
Karma: 6245217
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
|
Hmmmm...and here we are, back at the basic HTML and CSS questions, again. Despite the entertaining discussion about whether or not someone should buy a tablet (both Diap and Wolfie were right, possibly a first), really, this has almost zip to do with Sigil, particularly a question like, how to assign a particular font to a particular paragraph. Y'know what I mean? I know we all get bored around here, but, at that point, I'd have thought it should have moved to the epub or the workshop forum. How to add fonts in Sigil is a Sigil question. How to use them at all isn't. Nothing against the OP.
Just my $.02. Hitch
__________________
I produce eBooks. www.booknook.biz Follow us on Twitter "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair |
|
|
|
|
|
#37 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,725
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
@Hitch
Amen This forum is about how to USE Sigil. Not how to do EPUB (or a EPUB that will convert to something else). Folks: please take basic HTML, CSS and EPUB questions to the appropriat forums. Now! If the HTML and CSS Validate and Sigil has problems with that. Bring it on
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#38 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,837
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#39 |
|
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,102
Karma: 6245217
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
|
__________________
I produce eBooks. www.booknook.biz Follow us on Twitter "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair |
|
|
|
|
|
#40 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 2178910
Join Date: Dec 2012
Location: Bangkok, Thailand today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
|
Hey....I mentioned Sigil in Step 1...doesn't that count??
__________________
Dion "Gnihcnip" - the act of "reverse pinching" to expand/zoom. Pronounced "Niknip" (the "g" and "h" are silent). "Live long and prosper." ~ Spock "What's that goat doing up in the clouds? " ~ Pilot
|
|
|
|
|
|
#41 |
|
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,102
Karma: 6245217
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
|
Turtle, Turtle, Turtle:
Um...on this forum, isn't that a given? ;-) Hitch
__________________
I produce eBooks. www.booknook.biz Follow us on Twitter "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair |
|
|
|
|
|
#42 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,225
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Yes to those in the know. No to those who produce code like was attached in this thread.
__________________
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| K5 Embedding fonts in kf8 | techiemonkey | Kindle Developer's Corner | 4 | 07-19-2012 12:11 PM |
| Fonts embedding | 1drey | Writer2ePub | 3 | 06-17-2011 11:15 PM |
| Embedding fonts | JaneFancher | Calibre | 14 | 04-10-2010 09:28 PM |
| Embedding fonts | AprilHare | ePub | 6 | 01-02-2010 11:42 AM |
| Embedding fonts | jash | Calibre | 2 | 09-09-2008 05:05 PM |