07-09-2013, 01:10 PM | #16 |
Rookie Know-It-All
Posts: 7
Karma: 10
Join Date: Mar 2012
Location: South Florida
Device: I use them all!
|
Oops, I found a quote problem that I fixed and tryed some recommendations from this post post still, no italic...
Any ideas? @font-face { font-family: "Book Antiqua"; font-weight: normal; font-style: normal; src: url("../Fonts/BKANT.TTF"); } @font-face { font-family: "Book Antiqua_bold"; font-weight: bold; font-style: normal; src: url("../Fonts/ANTQUAB.TTF"); } @font-face { font-family: "Book Antiqua_italic"; font-weight: normal; font-style: italic; src: url("../Fonts/ANTQUAI.TTF"); } @font-face { font-family: "Courier New"; font-weight: normal; font-style: normal; src: url("../Fonts/cour.ttf"); } body { font-family: "Book Antiqua", serif; margin: 1em 1em 1em 1em; background: #FFFF99; } .italics { font-family: "Book Antiqua_italic"; font-style: italic; } |
07-09-2013, 01:23 PM | #17 | |
Wizard
Posts: 1,528
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
1. To use: Code:
@font-face {
font-family: "Book Antiqua";
font-weight: normal;
font-style: normal;
src: url("../Fonts/BKANT.TTF");
}
@font-face {
font-family: "Book Antiqua"; /* As you can see, I use the same family name as above */
font-weight: bold;
font-style: normal;
src: url("../Fonts/ANTQUAB.TTF");
}
@font-face {
font-family: "Book Antiqua"; /* the same as above */
font-weight: normal;
font-style: italic;
src: url("../Fonts/ANTQUAI.TTF");
}
@font-face {
font-family: "Courier New";
font-weight: normal;
font-style: normal;
src: url("../Fonts/cour.ttf");
}
body {
font-family: "Book Antiqua", serif;
margin: 1em 1em 1em 1em;
background: #FFFF99;
font-weight: normal; /* new properties */
font-style: normal;
}
.italics {
font-family: "Book Antiqua";
font-style: italic;
}
Code:
@font-face {
font-family: "Book Antiqua";
font-weight: normal;
font-style: normal;
src: url("../Fonts/BKANT.TTF");
}
@font-face {
font-family: "Book Antiqua_bold";
font-weight: bold;
font-style: normal;
src: url("../Fonts/ANTQUAB.TTF");
}
@font-face {
font-family: "Book Antiqua_italic";
font-weight: normal;
font-style: italic;
src: url("../Fonts/ANTQUAI.TTF");
}
@font-face {
font-family: "Courier New";
font-weight: normal;
font-style: normal;
src: url("../Fonts/cour.ttf");
}
body {
font-family: "Book Antiqua", serif;
margin: 1em;
background: #FFFF99;
}
.italics {
font-family: "Book Antiqua_italic";
font-style: italic; /* you must supress this definition when use a different font-family names for different font-styles */
}
Regards Rubén |
|
07-09-2013, 01:37 PM | #18 | |
Grand Sorcerer
Posts: 12,117
Karma: 73448614
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Quote:
http://www.microsoft.com/typography/...butionFAQ.mspx |
|
07-09-2013, 02:30 PM | #19 | |
Well trained by Cats
Posts: 29,688
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
07-09-2013, 02:49 PM | #20 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
From the ascender web site:
Commercial Product License This extended license allows fonts to be embedded into documents that are sold, such as electronic books (EPUB files or PDF files that are sold commercially). Please contact Monotype Imaging for more information on a Commercial Product license. It points to a contact form with no price information. http://www.fonts.com/web-fonts/plans-and-pricing cover their pricing for web fonts. |
07-09-2013, 06:34 PM | #21 | |
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
07-09-2013, 06:42 PM | #22 |
Rookie Know-It-All
Posts: 7
Karma: 10
Join Date: Mar 2012
Location: South Florida
Device: I use them all!
|
Regarding the font license, the author already has rights to his print copy on.pdf. I'm not in the business of buying fonts so if there is a licensing issue I'll refer that to him.
I'm just trying to get the dern thing working. I tried all the options suggested to no avail. Still no italics. I noticed there were no italics in another ebook with embedded fonts. Let me see if this is a Sigil issue. |
07-09-2013, 07:24 PM | #23 |
Rookie Know-It-All
Posts: 7
Karma: 10
Join Date: Mar 2012
Location: South Florida
Device: I use them all!
|
Ok, on a hunch I remembered that the fonts had the same problem on a known-good book. I opened the file on ADE and they are working.
I'd still like to hear more about font licensing; however, since this is off topic I'll research it myself. Thanks for the quick replies guys. |
07-14-2013, 02:54 AM | #24 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Not needed, since it was already in the <body> style... unless there's something between <body> and <* class="italics"> that alters the font-family. By the way, instead of <span class="italics"> you could use <i>, which is shorter (although the class offers the advantage of being applicable to any element).
Regarding the problem with fonts not being used, in my experience good font support is hard to find in any reader or browser, and I believe there are some issues with fonts display in Sigil anyway. Another piece of advice: do not specify a background colour, or, if you really want to, specify a foreground colour too, otherwise the text might be invisible in some configurations. |
07-14-2013, 10:10 AM | #25 | |
Well trained by Cats
Posts: 29,688
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Jelby is correct.. The body (font-family) usage does cover it. And, yes, Sigil does sometimes have problems with fonts which is why we say: 'Always try on targeted devices (and software)'. Sometime Sigil works fine and the device does not. 'Always try on targeted devices (and software)'. |
|
07-14-2013, 11:20 PM | #26 | |
Guru
Posts: 688
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Which is why the lesson remains: Check it out in ADE and other appropriate readers before you panic. And before you are satisfied. Albert |
|
07-19-2013, 09:23 AM | #27 |
Rookie Know-It-All
Posts: 7
Karma: 10
Join Date: Mar 2012
Location: South Florida
Device: I use them all!
|
Jellby, you are correct about the background color. I only used it in this case to see what the pictures will look like when the end-user selects sepia, etc. I had converted some pix to transparent .gifs and wanted to see it stand off the background. I remove it before publishing. Good advice!
The other point made is in fact a Sigil thing. While working in Sigil, the italicized embedded font wouldn't show but does when loaded on target devices. Actually, author was turned off by embedded fonts entirely and has opted to go with standard default fonts. I will use free fonts in the future though. I understand now that embedding fonts requires an annual licensing fee in many cases. However, many free fonts are available and so close to the paid fonts that it isn't distinguishable. Thanks to all who contributed to this post. Last edited by AIR-WIZZ; 07-19-2013 at 02:43 PM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedding Fonts in EPUB- iPad | matteino10 | Apple Devices | 0 | 03-15-2012 09:32 AM |
Embedding fonts in EPUB? | Acey | Calibre | 19 | 11-06-2011 10:01 AM |
Sigil 0.2.0 Embedding Fonts - Adding all the bits | ghostyjack | Sigil | 30 | 05-14-2011 03:30 AM |
Embedding fonts with Sigil? | MacEachaidh | Sigil | 4 | 08-20-2010 07:16 AM |
Embedding fonts with Sigil and Calibre | JaneFancher | Calibre | 1 | 04-09-2010 12:35 AM |