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 03-08-2012, 03:02 AM   #1
banhgau
Junior Member
banhgau began at the beginning.
 
banhgau's Avatar
 
Posts: 7
Karma: 10
Join Date: Mar 2012
Device: Pc
How to embed fonts in epub file ?

Hi, everyone.
Now, I'm researching Sigil but I don't use HTML code.
I need embed fonts in epub file and I did as follow:

-I click right mouse on Fonts folder then choose Add existing file



-But when I click "Validate epub", I received the notice from Sigil as image blow:



Plz point out if I have made any mistakes.
Thank you very very much.
banhgau is offline   Reply With Quote
Advert
Old 03-08-2012, 03:56 AM   #2
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
Well, nobody is using this font. You have to declare this font in the CSS stylesheet and then you need to assign the declared font to special rules.

Just by adding files the only effect you will get that the epub will will be larger.
huebi is offline   Reply With Quote
Old 03-08-2012, 04:11 AM   #3
banhgau
Junior Member
banhgau began at the beginning.
 
banhgau's Avatar
 
Posts: 7
Karma: 10
Join Date: Mar 2012
Device: Pc
Quote:
Originally Posted by huebi View Post
Well, nobody is using this font. You have to declare this font in the CSS stylesheet and then you need to assign the declared font to special rules.

Just by adding files the only effect you will get that the epub will will be larger.
Oh, I only used that font as samples.

Can you show me how to declare that font in the CSS stylesheet ?

And I don't understand this sentences "you need to assign the declared font to special rules." Can you show me more details or give me a example ?



My English is not good
banhgau is offline   Reply With Quote
Old 03-08-2012, 04:21 AM   #4
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
As this has nothing to do with Sigil i would prefer to ask this in the epub forum. And there are some sticky threads, its a good idea to read them first before asking questions already answered.
huebi is offline   Reply With Quote
Old 03-08-2012, 04:57 AM   #5
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,779
Karma: 9825094
Join Date: Dec 2010
Device: Kindle PW2
Some time ago I created a simple ePub template with an embedded free font. Have a look at the style definitions, add you own font and simply change the font name references.

BTW, if your native language happens to be French, there's also a French subforum.
Doitsu is offline   Reply With Quote
Advert
Old 03-08-2012, 10:47 AM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,369
Karma: 117701645
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
To be more specific, it is not possible in BookView. You must do it in CodeView.
Toxaris is offline   Reply With Quote
Old 03-08-2012, 12:03 PM   #7
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 80,028
Karma: 71473401
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by banhgau View Post
Hi, everyone.
Now, I'm researching Sigil but I don't use HTML code.
You need to learn. You can't create ePub without a reasonable knowledge of HTML. ePub books are HTML.

It's not hard to learn.
HarryT is online now   Reply With Quote
Old 03-08-2012, 02:47 PM   #8
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,171
Karma: 4313976
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by banhgau View Post
Can you show me how to declare that font in the CSS stylesheet ?
There's a book here in MR: "Howard: Savage Stories", which gives you a good example, how to embed fonts.
Quote:
My English is not good
For me it's next to perfection

Last edited by mmat1; 03-08-2012 at 02:51 PM.
mmat1 is offline   Reply With Quote
Old 03-08-2012, 10:18 PM   #9
banhgau
Junior Member
banhgau began at the beginning.
 
banhgau's Avatar
 
Posts: 7
Karma: 10
Join Date: Mar 2012
Device: Pc
Quote:
Originally Posted by Doitsu View Post
Some time ago I created a simple ePub template with an embedded free font. Have a look at the style definitions, add you own font and simply change the font name references.

BTW, if your native language happens to be French, there's also a French subforum.
Quote:
Originally Posted by HarryT View Post
You need to learn. You can't create ePub without a reasonable knowledge of HTML. ePub books are HTML.

It's not hard to learn.
Quote:
Originally Posted by mmat1 View Post
There's a book here in MR: "Howard: Savage Stories", which gives you a good example, how to embed fonts.

For me it's next to perfection
Thank you all so much. I will keep researching Sigil and HTML code, if I have another question, I will ask you later
banhgau is offline   Reply With Quote
Old 03-11-2012, 07:55 PM   #10
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,102
Karma: 2150557
Join Date: Jan 2009
Device: Kobo Glo - Kindle PW3 (wifi)
Hi,

I certainly will not deny the need to understand and practice html and css, if only because it's the stuff ebooks are made of.

You can however produce standard EPUBs and embed fonts using LibreOffice in a graphical way only.

You have to know how to use styles with this word-processor.
You will also need to be able to attach (still within LibreOffice) a very basic css style-sheet containing a @font-face declaration like this one, which even can be written for you by dedicated sites like FontSquirrel:

@font-face {
font-family: 'LinuxLibertineOCRegular';
src: url('linlibertine_c-4.0.4ro-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

Here is an exemple of one ebook of this kind, embedding the true smallcaps font quoted above. It has been realized using exclusively LibreOffice (and its W2X extension)

I would like this post not to be deemed as offensive on this particular forum, so I must add that Sigil is invaluable to check and edit your EPUB for whatever may go wrong and that I have been making use of it for a long time and still do.

Last edited by roger64; 03-11-2012 at 09:55 PM.
roger64 is online now   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
Can it embed fonts? chalimac Kobo Reader 1 06-27-2017 05:46 PM
How to embed fonts in ePub after Calibre fiery ePub 79 12-05-2016 02:18 AM
Is it possible to really embed fonts yet? LaurelRusswurm ePub 25 11-17-2011 10:25 PM
Possible to embed fonts in CSS of .lit file? tanzer21 Calibre 9 06-30-2010 07:26 PM
Any free software can embed fonts in epub droople ePub 4 03-06-2010 05:40 PM


All times are GMT -4. The time now is 09:04 AM.


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