|
|
#1 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Mar 2011
Device: none
|
I am not a Sigil expert. I have an ePub book that has Mangal fonts to show Hindi. It shows correctly on some devices and ???? on other. I read that if I embed those fonts in my ePub file, it will show correctly on ALL devices. If I am right, all I want to do is add Mangal fonts to my fonts folder (or am I totally wrong?), save my ePub file. Is this possible? Can anyone give me a step-by-step without sending me to a link? Please.
|
|
|
|
|
|
#2 |
|
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,262
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Try the Sigil User Guide section for embedding fonts. But not all devices support all fonts.
__________________
See the Sigil User Guide and its tutorials for details about Sigil. |
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
KT Ads, NO THANKS!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 390
Karma: 1018357
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo
|
Note this is a simplified step by step. Once you have mastered this, then some other things are possible but you will need to make sure the basics are working first. Substitute your font for the one listed in this example.
Quote:
The p { ... } can be changed to a class if need be, I prefer to keep my epubs very bare bones and use classes to override my base <p> where only required. Bold / Italics can be added by: i, em { font-family: "Hindi_italics"; } b { font-family: "Hindi_bold"; } @font-face { font-family: "Hindi_bold"; font-weight: bold; font-style: normal; src: url(../Fonts/Hindi-Bold.ttf); } @font-face { font-family: "Hindi_italics"; font-weight: normal; font-style: italic; src: url(../Fonts/Hindi-Italic.ttf); } |
|
|
|
|
|
|
#4 |
|
Book Twiddler
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 982
Karma: 1118807
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
BTW, just make sure in your experimenting that you use public domain fonts. Some fonts are OK on your computer, but can not be embedded. This can cause mysterious not working when you have done everything fine otherwise, I understand.
|
|
|
|
|
|
#5 |
|
Very Slow Learner
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 788
Join Date: Jul 2012
Location: UK
Device: none
|
Many thanks, Danger, that worked fine for what I've been looking for.
|
|
|
|
|
|
#6 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,116
Karma: 958803
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
Be aware that the @font-face must be the first lines in the CSS.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#7 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 1085478
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-600, Acer 1825PT, Galaxy Tab, PRS-T1, HTC One X, TF700T
|
Quote:
That's odd, as for all the epubs I've made the @font-face entries are put at the bottom and some far they have worked.
__________________
Get 5GB of online storage for free from SugarSync. Click here for an additional 500MB to give you 5.5GB for free. Always have your stuff when you need it with @Dropbox. 2GB account is free! Click here Currently working on updating some of my Lovecraft work after receiving some corrections |
|
|
|
|
|
|
#8 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,116
Karma: 958803
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
I will have too look it up, but I definitely remember that. Can't remember why though.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#9 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,150
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Maybe you are confusing it with @import, which must be the first thing if I remember correctly.
Or maybe there's a bug of some reader... |
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,116
Karma: 958803
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
That might very well be true Jellby. That sounds like something I might confuse in my head. In the beginning I used an additional stylesheets for the @font-face and used @import for that. It might very well be that this merged in my head.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#11 |
|
Member
![]() Posts: 21
Karma: 10
Join Date: Sep 2012
Location: Rio de Janeiro - Brasil
Device: Genesis GT-1230
|
Hi, Toxaris!
I'm trying to change the default font too, but it's not working. I want to use two different fonts for titles and text. The text font is working fine, but the title font isn't... although it works in Sigil. The only thing I could do was to change its color with "color:#FFC800". What could be wrong in my CSS? @font-face { font-family: Book Antiqua; font-style: normal; font-weight: normal; src:url("../Fonts/BKANT.TTF"); } @font-face { font-family: Aphrodite Pro; font-style: normal; font-weight: bold; src:url("../Fonts/Aphrodite Pro.otf"); } p+p { font-family: Book Antiqua; text-indent:1.5em; text-align: justify; font-size: 1.10em; } .title { font-family: Aphrodite Pro; color:#FFC800; margin-top:0em; margin-bottom:.65em; page-break-after:avoid; font-size: 3.8em; text-align: center; text-indent:0em; } |
|
|
|
|
|
#12 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,116
Karma: 958803
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
Ditch the spaces in the names.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#13 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,150
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Or wrap them in quotes.
|
|
|
|
|
|
#14 |
|
Member
![]() Posts: 21
Karma: 10
Join Date: Sep 2012
Location: Rio de Janeiro - Brasil
Device: Genesis GT-1230
|
Thank you, guys!
Wrapping them in quotes did the trick. |
|
|
|
![]() |
| 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 |