![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Multiple fonts in ebooks
Hi,
What is the best way to use multiple fonts ? (in multilingual ebooks, for example) First of all, I noticed two different behaviours depending on the filename of the ebook (please do correct me if I am wrong):
Are there other options than those?
I consider that there is no definite solution, and that everyone has to deal with the three dimensions of the problem (size - liberty - simplicity) depending on the expected audience of their production. I would be happy to hear about your ideas, tips, tricks and the different solutions you use (or would be using). On a more "activist" plan, any suggestions about how we could improve and help such publication would also be nice. At this stage I miss:
François |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Here is the list of fonts for the Kobo Glo 2.5.0:
From: \kobo-update-2.5.0\KoboRoot\usr\local\Trolltech\QtEmbedded-4.6.2-arm\lib\fonts I don't know why but the files cannot be opend in windows (not a valid font file). If someone knows a way to tell which unicode character range each of them covers... especially for Ryumin and MP Gothic which seem pretty big.
François |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,922
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Non-Unicode Glyphs 1490/0 Basic Multilingual Plane U+0000-U+FFFF 210/60930 Number Forms U+2150-U24ff 29/58 Enclosed Alphanumerics U+2460-U24FF 141/160 Dingbats U+2700-U27BF 10/191 Enclosed CJK Letters and Months U3200-U32FF 30/254 The font files from Kobo firmware later than 2.0.4 will not open because they are obfuscated to prevent people from simply copying them for use elsewhere. Regards, David |
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Thanks a lot DNSB,
I will make some testing on CJK files with Gothic. Until I saw its size I didn't suspect I could use it for chinese and japanese texts. Regards François |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 600
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
I know there is another issue when two different font families are used.
A sans-serif font for headers and a serif font for bread text. The user agent (device) should use its default font family for sans serif and serif fonts. No actual fonts are embedded in the epub/kepub it self. The regular epub shows the headers with sans-serif font (correct). The kepub uses the serif font for headers (incorrect). In this example different font families were used for header an non-header text but applies to every element (or class) for which a different font family is defined. Just use the code below in a normal epub 2 package. Simple css Code:
body { margin:0; font-family:serif; /* use the default ua serif font */ font-size:100%; font-weight:normal; font-style:normal; font-variant:normal; line-height:1.3em; text-indent:0; text-align:justify; } h1,h2,h3,h4 { font-family:sans-serif; /* telling the ua to use a sans-serif font (override default font setting (body tag)*/ } p { margin:0; /* p tag: no specific font settings use the default font as defined in body tag */ padding:0; } Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css" /> </head> <body> <h2>This headline (h2-tag) should use the default ua sans-serif font.</h2> <p>This is the bread text and should be displayed with the default ua serif font.</p> </body> </html> Last edited by Anak; 05-12-2013 at 03:19 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
@fxp33: are you sure the problem is not caused by the epubs themself? Try to convert with Calibre plugin a problematic epub to kepub and see if characters are displayed or not.
|
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
|
Quote:
Haven't found a workaround yet ![]() François |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@Anak,
I'm afraid I don't have an answer to your question, but I thought I'd mention the following that I discovered when I first got the Glo. You should take care where/when you use the font-family: serif statement. On Kobos it will usually display its 'Document Default' font (Georgia) rather than the serif font you may have selected from the font menu. In your example, you'll probably get away with it because the Kobo automatically overrides body {font-family: xxx} with your selected font, but if you use font-family: serif at a lower level than body (e.g. at the <p> level or in a class) you'll get Georgia and it won't be changeable from the Kobo font settings. I've found it safest to not use font-family: at all rather than code it as serif. I have not found this to be the case on any of my previous non-Kobo readers. Of course, I haven't re-tested since my initial experiments so I suppose it could have changed in the last 6 months. A comment on your original problem - ignoring font-family: sans-serif/monospace seems to be very common on Android epub reading apps as well. It's why I prefer Mantano over some of the other major names. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embed multiple fonts? | writerkit | Conversion | 1 | 05-08-2013 01:45 AM |
Multiple publishers for ebooks? | Quiss | Writers' Corner | 14 | 08-25-2012 04:46 PM |
Same page, multiple fonts? | larryt | Kobo Reader | 17 | 08-10-2012 08:59 AM |
One eBook, multiple fonts? | sehlat | Calibre | 2 | 07-11-2011 08:14 PM |
Touch Fonts and ebooks | brudigia | Barnes & Noble NOOK | 2 | 06-18-2011 06:30 PM |