Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2013, 02:10 PM   #16
AIR-WIZZ
Rookie Know-It-All
AIR-WIZZ began at the beginning.
 
AIR-WIZZ's Avatar
 
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;
}
AIR-WIZZ is offline   Reply With Quote
Old 07-09-2013, 02:23 PM   #17
RbnJrg
Evangelist
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 499
Karma: 318998
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by AIR-WIZZ View Post
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;
background: #FFFF99;
}
.italics {
font-family: "Book Antiqua_italic";
font-style: italic;
}
You have two choices:

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;
}
2. Or 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_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 */
}
Both method should work.

Regards
Rubén
RbnJrg is offline   Reply With Quote
 
Advertisement
Old 07-09-2013, 02:37 PM   #18
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 7,423
Karma: 46459035
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Quote:
Originally Posted by AIR-WIZZ View Post
I've already made 4 successful ePubs for clients.
src: url('../Fonts/BKANT.TTF');
src: url('../Fonts/ANTQUAB.TTF');
src: url('../Fonts/ANTQUAI.TTF');
src: url('../Fonts/cour.ttf');
I do hope you are actually licensing these fonts, and not just copying them from Windows>?

http://www.microsoft.com/typography/...butionFAQ.mspx
PeterT is online now   Reply With Quote
Old 07-09-2013, 03:30 PM   #19
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,301
Karma: 6022735
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by AIR-WIZZ View Post
My first time working with embedding fonts but I've already made 4 successful ePubs for clients.
@font-face {
font-family: "Book Antiqua";
font-weight: normal;
font-style: normal;
src: url('../Fonts/BKANT.TTF');
}
@font-face {
font-family: "Book Antiqua";
font-weight: bold;
font-style: normal;
src: url('../Fonts/ANTQUAB.TTF');
}
@font-face {
font-family: "Book Antiqua";
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";
font-style: italic;
}
My problem is italics, bold, etc don't respond. I use classes in spans to implement italics, bold, etc. but <i></i> doesn't allow italics either.
E.G: ...<span class="italics">The Seth Material</span>...
All the text is standard.
Any ideas?
You forgot to assign the font-family to the class italics
theducks is online now   Reply With Quote
Old 07-09-2013, 03:49 PM   #20
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
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.
mrmikel is offline   Reply With Quote
Old 07-09-2013, 07:34 PM   #21
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,731
Karma: 15513561
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by mrmikel View Post
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.
Suffice it to say (from someone who uses Book Antigua) that it's not cheap. I highly recommend that the original poster consider (assuming arguendo that he's not already licensed the font--each time, mind you, for each face for each book) using suitable OS alternatives. You may wish to try FontSquirrel, Googlefont, etc., for suitable options.

Hitch
Hitch is offline   Reply With Quote
Old 07-09-2013, 07:42 PM   #22
AIR-WIZZ
Rookie Know-It-All
AIR-WIZZ began at the beginning.
 
AIR-WIZZ's Avatar
 
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.
AIR-WIZZ is offline   Reply With Quote
Old 07-09-2013, 08:24 PM   #23
AIR-WIZZ
Rookie Know-It-All
AIR-WIZZ began at the beginning.
 
AIR-WIZZ's Avatar
 
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.
AIR-WIZZ is offline   Reply With Quote
Old 07-14-2013, 03:54 AM   #24
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,325
Karma: 4964183
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by theducks View Post
You forgot to assign the font-family to the class italics
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.
Jellby is offline   Reply With Quote
Old 07-14-2013, 11:10 AM   #25
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,301
Karma: 6022735
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Jellby View Post
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.
As usual,
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)'.
theducks is online now   Reply With Quote
Old 07-15-2013, 12:20 AM   #26
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 552
Karma: 94420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by theducks View Post
As usual,
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)'.
And as a loyal Sigil minion, I'll add that it's not usually a fault with Sigil per se, but with the Qt webkit engine that Sigil uses to display content in "book view" (and maybe also "Preview" view?).

Which is why the lesson remains: Check it out in ADE and other appropriate readers before you panic. And before you are satisfied.

Albert
st_albert is offline   Reply With Quote
Old 07-19-2013, 10:23 AM   #27
AIR-WIZZ
Rookie Know-It-All
AIR-WIZZ began at the beginning.
 
AIR-WIZZ's Avatar
 
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 03:43 PM.
AIR-WIZZ is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding Fonts in EPUB- iPad matteino10 Apple Devices 0 03-15-2012 10:32 AM
Embedding fonts in EPUB? Acey Calibre 19 11-06-2011 11:01 AM
Sigil 0.2.0 Embedding Fonts - Adding all the bits ghostyjack Sigil 30 05-14-2011 04:30 AM
Embedding fonts with Sigil? MacEachaidh Sigil 4 08-20-2010 08:16 AM
Embedding fonts with Sigil and Calibre JaneFancher Calibre 1 04-09-2010 01:35 AM


All times are GMT -4. The time now is 07:40 PM.


MobileRead.com is a privately owned, operated and funded community.