Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2013, 11:26 PM   #1
yktan
Junior Member
yktan began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2011
Device: Android smartphones
Font subsetting problem

Hi, I am trying to convert a html file to epub/azw3 format. I can embed a font without any problems but when I try to subset the font, some of the characters are messed up.

It looks like calibre is choosing the wrong glyphs during the subsetting process. I exploded the epub with the subsetted font and perform the following troubleshooting:
(1) Removed the font-face css and viewed the page with Firefox and it displays correctly with system default font. That means the character encoding is still correct.
(2) Replaced the font file (tff) with the full font file, the page displays correctly as well.

Can you investigate if it is a bug in the font subsetting process?

Last edited by yktan; 09-19-2013 at 11:01 PM.
yktan is offline   Reply With Quote
Old 09-19-2013, 12:02 AM   #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,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I opened both the original and the subset font file in font forge and as far as I can see the glyphs are the same, I checked the glyphs for uni4E00, uni4EBA and a couple of other random ones.

Given that I dont have much experience with CJK fonts, it's possible I may be missing something else, but I cant see what.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-19-2013, 12:17 AM   #3
yktan
Junior Member
yktan began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2011
Device: Android smartphones
certain words

Could you check for uni5E74, uni6C11 or uni6CB3? For some reason FontForge doesn't want to run on my laptop.
yktan is offline   Reply With Quote
Old 09-19-2013, 12:35 AM   #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,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
On second thoughts, I think I see where the problem might be, I will investigate further.
kovidgoyal is offline   Reply With Quote
Old 09-19-2013, 03:11 AM   #5
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,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...e801df36509802
kovidgoyal is offline   Reply With Quote
Advert
Old 09-19-2013, 11:00 PM   #6
yktan
Junior Member
yktan began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2011
Device: Android smartphones
Thanks!

Thanks very much for the quick fix!
yktan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in font subsetting JSWolf Calibre 9 01-17-2013 09:46 AM
Problem with font Jellby Workshop 2 04-22-2012 12:09 PM
Problem with font bobcdy Workshop 12 09-21-2011 12:53 PM
ePub Font Subsetting Cygfrydd ePub 2 08-17-2010 08:53 AM
Font problem DNT PocketBook 19 01-20-2010 08:58 AM


All times are GMT -4. The time now is 05:11 PM.


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