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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-12-2010, 06:06 PM   #31
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by frabjous View Post
I don't really understand putting multiple family names in the @font-face declaration. This makes sense when you're using the fonts: you want a stack so that it moves down to a fallback if need be, but in the font-face, all this can do is screw up the fallbacks, right?
It can presumably screw up the fallback if there is something wrong with the font. The reason for doing it is that the fallback (the default serif font) isn't very good. By redefining serif you always get Liberation when no font is specified in the body of the ebook. This should not be necessary if the ePub was designed from the start to use an embedded font, but if it is added later it can be hard to get Liberation to to applied uniformly to all the CSS.
wallcraft is offline   Reply With Quote
Old 12-13-2010, 11:14 AM   #32
elanamig
Junior Member
elanamig began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2010
Device: iPad
Hello,

I'm a newbie on this forum.

I am trying to get cyrillic to display in epub. I used Calibre to create an epub file. The file displays Cyrillic in Calibre without problems.

Now I am trying to use Sigil to embed the fonts. I've added the liberation fonts to the epub file and modified the css. Saved epub.

Now, when I try to open it in Adobe Digital Editions, the ToC on the left displays in Cyrillic, but the text itself is ????????????....

I suspect I need to add or change something else, but what?

Thank you!
elanamig is offline   Reply With Quote
Advert
Old 12-13-2010, 11:27 AM   #33
elanamig
Junior Member
elanamig began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Dec 2010
Device: iPad
Quote:
Originally Posted by elanamig View Post
Hello,

I'm a newbie on this forum.

I am trying to get cyrillic to display in epub. I used Calibre to create an epub file. The file displays Cyrillic in Calibre without problems.

Now I am trying to use Sigil to embed the fonts. I've added the liberation fonts to the epub file and modified the css. Saved epub.

Now, when I try to open it in Adobe Digital Editions, the ToC on the left displays in Cyrillic, but the text itself is ????????????....

I suspect I need to add or change something else, but what?

Thank you!
After spending days trying to figure it out, I got it 10 mins after I made the post. I had to go back to the css file and change every reference in the .calibreX block from Times New Roman serif to Liberation sans-serif...

Works, PHEW
elanamig is offline   Reply With Quote
Old 12-17-2010, 01:23 AM   #34
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Well I've been through this again and again. I cannot get embedded Italicized fonts to work no matter what I try. Figured at first something must be screwed with the Charis font files I was working with so I tried the Liberation fonts instead... same result. The regular font works when embedded but I cannot bold or italicize any words. If I remove the embedded font names from the CSS everything shows up as it should. If it matters I have been using Sigil to go the editting.
Danger is offline   Reply With Quote
Old 12-17-2010, 05:48 AM   #35
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,381
Karma: 113956855
Join Date: Sep 2010
Location: NSW - Australia
Device: iOS
Quote:
Originally Posted by Valloric View Post
If the mimetype file is not the first file and/or is not uncompressed, your epub might not work in all epub-supporting software. Calibre, ADE and Sigil can still handle this, but your epub is still non-conformant and may not work elsewhere.
I usually work from a mac but had to start a new job using a pc in a new job. I am so glad i did. My new books were all ok with epub check and crew flight.

All were unzipped for editing and zipped back up in windows 7 with a right mouse click. The original epubs were generated from indesign epubs. I have never had a problem. No scripts. I knew that the mimetype file was not to be compressed but they just worked.
wannabee is offline   Reply With Quote
Advert
Old 12-24-2010, 05:16 PM   #36
JaneFancher
Zealot
JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.
 
JaneFancher's Avatar
 
Posts: 123
Karma: 496
Join Date: Feb 2009
Location: Spokane, Washington
Device: Kindle2
Sigil ital code may be conflicting

Quote:
Originally Posted by Danger View Post
Well I've been through this again and again. I cannot get embedded Italicized fonts to work no matter what I try. Figured at first something must be screwed with the Charis font files I was working with so I tried the Liberation fonts instead... same result. The regular font works when embedded but I cannot bold or italicize any words. If I remove the embedded font names from the CSS everything shows up as it should. If it matters I have been using Sigil to go the editting.
Total sympathy!

I'm no expert and I don't know that this will fix your problem, but if you're going from a Calibre created epub file and editing it in Sigil, you might have an extraneous code that looks like this

p.sgc-1 {font-style: italic}

in your Sigil html. This will be at the head of every file that contains italics and be reflected in a style call around the italicized words themselves.

This actually duplicates the ital CSS code put in by Calibre and seems to screw up the embeded font when viewed in some readers. I found I had to take out all references to this sgc code and then my font ital worked fine.

good luck!
JaneFancher is offline   Reply With Quote
Old 12-26-2010, 09:17 AM   #37
lavomat
Junior Member
lavomat began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2010
Device: iMac and iPhone 4
http://dl.dropbox.com/u/11045564/VEGESIGNES%20INCL.zip
This is my own built Font. I made an ePub eBook last week and I was questioning myself if I could embed these characters into it afterwards. VEGESIGNES English is the Title.[pirate site]

Last edited by pdurrant; 10-25-2011 at 03:13 PM. Reason: Deleted link to a pirate ebook site. Sorry, though it hosts good material, it hosts unauthorised material as well.
lavomat is offline   Reply With Quote
Old 12-27-2010, 06:42 PM   #38
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,167
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Danger View Post
Well I've been through this again and again. I cannot get embedded Italicized fonts to work no matter what I try. Figured at first something must be screwed with the Charis font files I was working with so I tried the Liberation fonts instead... same result. The regular font works when embedded but I cannot bold or italicize any words. If I remove the embedded font names from the CSS everything shows up as it should. If it matters I have been using Sigil to go the editting.
How were you viewing the EPUB when you decided it wasn't working? I'm not sure about Sigil, but if you try to view an EPUB with embedded fonts in the Calibre Viewer then bold & italic do not display correctly. The same EPUB viewed on my Sony readers displays just fine. I raised a Calibre bug ticket about it and was told it is a known fault. The exact response was:
Code:
This is caused by a bug in QtWebKit, see https://bugs.webkit.org/show_bug.cgi?id=29433
I believe that QtWebKit is the cross platform tool kit by Nokia that Calibre uses for various things like the GUI.

In other words fixing it is not possible by the Calibre developers. If Sigil also uses the QtWebKit it will not be fixable by the Sigil developer(s) either. They will be reliant on Nokia fixing it.

Last edited by jackie_w; 12-27-2010 at 07:02 PM.
jackie_w is offline   Reply With Quote
Old 01-04-2011, 09:59 PM   #39
artshim
Junior Member
artshim began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: kobo
Modification? Version 3?

Quote:
Originally Posted by P.T View Post
I created a simple plugin for Calibre that embeds fonts into epub as a part of the conversion process.

Any feedback is welcome.
P.T,

I put some additional code for some more flexibility. Below are usage,

* To use proper font, the resources folder need to be populated with following rule, please take a look the sample.bmp
- Parent folder for the fonts : Under Calibre installation folder, \resources\fonts
- font folder name : All smaller case, the font name like liberation
- font files in the folder : font family name + -Regular, -Italic, -BoldItalic, -Bold (Should have all 4 with proper name)
-As an example, additional Droid fonts can be located under C:\Program Files\Calibre2\resources\fonts\droid. In this case droid(all smaller case) is the font name. The font files in this folder are DroidSerif-Regular.ttf, DroidSerif-Italic.ttf, DroidSerif-BoldItalic.ttf, DroidSerif-Bold.ttf. In this case DroidSerif is font family name(font name + decal). The font file names are case-sensitive. The plugin will not work if there are no font files.
* The ExtraCss will be like this. Please note that the font-family name is the font name from the file name. So far this is what I can do without making big changes(same naming convention, folder location from liberation font)

Code:
body {
	font-family: "DroidSerif";
}
* Advanced : You can put DroidSans under same folder. But the font file name should be some like DroidSans-Regular.ttf etc.

* Advanced : You can put any free font from Internet. As an example, if you downloaded SantaSerif, the folder name should be santa. And 4 style fonts need to be saved under the folder as SantaSerif-Regular.ttf, SantaSerif-Italic.ttf, SantaSerif-BoldItalic.ttf, SantaSerif-Bold.ttf. All the remains are change the EXTRA-CSS.

Thank you.
Attached Images
File Type: bmp sample.bmp (169.0 KB, 1691 views)
Attached Files
File Type: zip embedfont_plugin.zip (1.9 KB, 2345 views)
artshim is offline   Reply With Quote
Old 01-04-2011, 10:10 PM   #40
artshim
Junior Member
artshim began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: kobo
Quote:
Originally Posted by artshim View Post
P.T,
I put some additional code for some more flexibility. Below are usage,
I'd like to make it clear another font naming convention. If the font family name doesn't come with Serif or Sans, font family name and font name can be same except cases.

I just downloaded Arimo font from Google. The folder name is ....\resources\fonts\arimo and all the fonts name is Arimo-Regular.ttf, Arimo-Italic.ttf, Arimo-bold.ttf, Arimo-BoldItalic.ttf.

Thank you.
artshim is offline   Reply With Quote
Old 01-07-2011, 04:55 PM   #41
lavomat
Junior Member
lavomat began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2010
Device: iMac and iPhone 4
⊥hank you! ⊥hree ⊥imes more ⊥han one!
lavomat is offline   Reply With Quote
Old 01-15-2011, 06:30 PM   #42
fiery
Member
fiery began at the beginning.
 
Posts: 12
Karma: 18
Join Date: Nov 2009
Device: Cybook Opus
Using the PT Serif Caption font instead of Liberation

I found another free good looking Serif font released recently from ParaType (paratype.com/paratype.ru). Font is free under the OFL (Open Font License). It includes Western, Central European and Cyrillic code pages. There is a Sans Serif version as well.

The advantage over the Liberation font is that the PT Serif Caption font looks bigger and more readable on the same zoom level. It's also a good solution where the last zoom option of the regular fonts is not big enough (most probably limited by the book's css).

Last edited by fiery; 01-15-2011 at 06:32 PM.
fiery is offline   Reply With Quote
Old 05-13-2011, 09:13 AM   #43
Ola Morris
Junior Member
Ola Morris began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: SONY PRS 600
Hello, I have also got a problem with font in epub. I create an epub file in Calibre but the font shows as bold on my reader? Any ideas please? I have spent hours trying to work it out :S.
I use calibre, embedded fonts plug in to display the cyrillic characters, they all show ok, but bold. Please help!
Many thanks,
Ola Morris is offline   Reply With Quote
Old 05-13-2011, 11:02 AM   #44
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,167
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by Ola Morris View Post
Hello, I have also got a problem with font in epub. I create an epub file in Calibre but the font shows as bold on my reader? Any ideas please? I have spent hours trying to work it out :S.
I use calibre, embedded fonts plug in to display the cyrillic characters, they all show ok, but bold. Please help!
Many thanks,
Is the problem in all epub files or just one particular one?

If it's one particular epub the problem is probably that bold is specified in the epub's .css file. You can always fix this manually but there is no "magic button". You could try a simple option first, but it may or may not work depending on the css inside the epub.

Simple
Do an epub-to-epub conversion in Calibre with this in the Convert - Look&Feel-ExtraCSS box:
Code:
body {font-weight: normal}
Manual - but more reliable
  • Select the epub in Calibre and choose the Tweak-epub option.
  • Press the Explode button.
  • Find the file with extension .css and open it in your standard text editor.
  • Search for text something like (may not be exact)
    Code:
    font-weight: bold
    and change the word bold to normal
    You will need to be careful because some of these may be making your headings bold and you may not want to change those. Once you have finished save the changes, close the file and the text editor.
  • If you are using Calibre v0.8, there is a Preview button which will let you check whether your unwanted bold has gone.
  • Press the Rebuild button to recreate the edited epub and you are finished.
jackie_w is offline   Reply With Quote
Old 05-13-2011, 03:23 PM   #45
Ola Morris
Junior Member
Ola Morris began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: SONY PRS 600
This is happening to every single epub I create. I am giving up.

When it displays as normal on my PC (not bold) is displays as bold on my ereader. I Have uploaded fonts into my reader (have created a folder called 'fonts') - still no luck.
Any ideas?
Ola Morris 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
Can it embed fonts? chalimac Kobo Reader 1 06-27-2017 05:46 PM
Best Practice: Embed Fonts?? luthar28 ePub 37 11-01-2011 04:16 AM
Possible to embed fonts in CSS of .lit file? tanzer21 Calibre 9 06-30-2010 07:26 PM
Is it possible to UN embed fonts? lmronan Sigil 14 06-04-2010 09:26 AM
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 01:11 AM.


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