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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-29-2008, 12:52 PM   #1
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Does Calibre embed "normal" font?

I have been trying to embed fonts using Calibre and have been getting very confused

When I convert books from HTML or RTF using the GUI, under "Look & Feel" I have chosen three fonts for serif, sans-serif and monospace.

I don't see anything else in the GUI which might relate to embedding fonts.

But I don't fully understand the results I get and was hoping for some guidance. This is what I've observed:

1) I don't see the long lag everybody talks about with embedding fonts. I have a PRS-505 and the page turn seems to be under one second whether I choose fonts or not. I never see three second page turns.

2) I think at least some fonts are being embedded because it looks like the italics is displayed differently depending on which font I chose.

3) I also tried to choose unusual looking fonts (eg Monotype Corsiva) so that I could more easily see if the font was being embedded and Calibre complains that "Could not find the normal version of the serif font" so Calibre is doing something with the font chosen in the GUI

4) BUT I don't think the regular body font is being changed. Maybe the differences between the serif fonts I've tried is too subtle for me to see the difference, but to me the regular body text always looks the same regardless of the font I chose.


So between the fast page turns and unchanged appearance of body text I think that maybe fonts aren't embedded. But the fact that Calibre is doing something with fonts and that I think italics looks different make me think that maybe fonts *are* embedded.

Any illumination would be appreciated!
radius is offline   Reply With Quote
Old 08-29-2008, 07:36 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,796
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can easily check if a font is being embedded by the file size of the LRF file (it will be much larger with an embedded font) You can see the file size by opening the edit metadata dialog.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-30-2008, 03:45 PM   #3
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Quote:
Originally Posted by kovidgoyal View Post
You can easily check if a font is being embedded by the file size of the LRF file (it will be much larger with an embedded font) You can see the file size by opening the edit metadata dialog.
Hi Kovid, thanks for the pointer. When I look at file sizes when I embed fonts versus when I don't, I can see a difference. For example, I used a test file which turns into a 0.2MB lrf when converted without a font, and into a 2MB lrf when I try to embed a font into it.

What I did was take an excerpt of text and then convert it three times using different embedded fonts. The three resulting lrfs were all different sizes. When I read the files on my 505 I can see clearly that the italicized text and headings use the embedded fonts.

However, as far as I can tell, the main, or normal body text looks the same in all three versions.

For example, I used the three fonts Cambria, Georgia and Constantia (Windows fonts but easily obtainable) and compare the glyph for the character '5'.

In Cambria, the top and the bottom of the 5 lines up with the text.

However, using Georgia or Constantia, the 5 is almost like a descender that is below the main line of the text, like this:

The quick brown fo5x jumps over the lazy dog.


In my test files, the 5 always looks the same to me.

Similarly, for the percent sign glyph, in all three of the fonts named above, the two circles should be completely separate from the slash.

But when I look at the text in my Reader, I can see the top circle is connected to the slash. I think that is the percent sign from Dutch801 Rm BT (ie: the default font on the PRS-505)

Any idea what is going on?
radius is offline   Reply With Quote
Old 08-30-2008, 04:19 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,796
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You should embed the fonts for all three families (serif, sans serif and monospace)
kovidgoyal is offline   Reply With Quote
Old 08-30-2008, 04:27 PM   #5
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Quote:
Originally Posted by kovidgoyal View Post
You should embed the fonts for all three families (serif, sans serif and monospace)
I am doing exactly that. I am choosing Serif=Georgia, Sans-serif=Vera Sans, Monospace=Lucida Console

Any chance you could show me an HTML snippet which when run through Calibre which would show fonts correctly?
radius is offline   Reply With Quote
Advert
Old 08-30-2008, 04:30 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,796
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
if you're setting all three use

Code:
<p style="font-family:serif">This is serif text</p>
<p style="font-family:sansserif">This is sansserif text</p>
<p style="font-family:monospace">This is monospace text</p>
kovidgoyal is offline   Reply With Quote
Old 08-30-2008, 04:59 PM   #7
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Hi Kovid, have you tried your example?

If I convert the following snippet, I get three lines which look correct in a web browser, but all three lines look identical on my Reader.

Code:
<html>
<head><title>Font test</title></head>

<body>
<p style="font-family:serif">The quick brown fox 012345</p>
<p style="font-family:sansserif">The quick brown fox 012345</p>
<p style="font-family:monospace">The quick brown fox 012345</p>
</body>
</html>
radius is offline   Reply With Quote
Old 08-30-2008, 05:03 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,796
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont use font embedding myself, but I know there are people that have used it successfully. The trick is in finding the right font to embed (the sony LRF renderer can only handle a rather small subset of all fonts).
kovidgoyal is offline   Reply With Quote
Old 08-30-2008, 05:04 PM   #9
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Ahh... OK. I'll continue experimenting then. Thanks for all your help.
radius 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
Installing a "normal" Debian ARMEL Linux on the Kindle choff Kindle Developer's Corner 18 09-09-2014 02:42 AM
Getting calibre to detect "Prologue" and "Epilogue" for TOC sherman Calibre 2 09-20-2010 02:21 AM
Are frequent resets "normal" taspool Bookeen 20 04-08-2009 07:08 PM
Normal to see an Adobe logo "watermark" while charging? rahulm Sony Reader 3 03-16-2009 04:24 AM
"Best" fonts/font sizes? AceHarddrive Reading and Management 7 08-29-2007 02:29 PM


All times are GMT -4. The time now is 10:36 AM.


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