-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default kepub fonts #115
Comments
The code related to epub font defaults is part of Kobo's Adobe-supplied reading app. There is no equivalent kepub code available to be patched. By default kepubs expect to display the whole book using whichever font you have selected from the [Aa] menu. The only time this is not true is if you select "Publisher Default" from the [Aa] menu. In this case what you see may vary according to whatever you have set as Locale in Kobo settings. My Locale is English and if I have I might be able to give you a better answer if you describe exactly what you are trying to do. [Edit] On second thoughts, having |
Hi, sorry for the late reply. My Locale is set to Chinese, and when I open a Chinese book that uses |
I have very little knowledge about the Chinese/Japanese fonts and locales but I do know that Kobo treats them as special cases. In the nickel CSS resources there are hundreds of cases where the GUI is forced to use a built-in sans-serif font. For example:
It doesn't look as if the Kobo GUI allows for a difference between serif and sans-serif for Chinese. I suspect (but I'm not certain) that the situation when reading a kepub will be that generic CSS such as One thing you could try is to replace the Chinese built-in font that you don't like with one that you prefer. This is at your own risk, of course. You would need to prepare your new font before using the If you don't want to do this then, by default, Kobo offers only 2 options for custom fonts in kepubs:
The only other option I know of (which I use myself) is to enable patch |
Thank you for the detailed response. I currently also uses For the novel series that I am currently reading, this works fine enough since the body is serif and the highlighted text or chat logs are marked as sans-serif. This publisher achieve this by wrapping the text in a Editing the CSS or HTML file could result in a perfectly formatted book, but it means I have to side-load the books, which I don't really like. I did change the default sans-serif font to another sans-serif font that I liked in my patch yaml file, and can confirm replacing the font file works. However, not for all fonts that is. I have theorized that, maybe Kobo is still trying to display Georgia for |
It hadn't occurred to me that Kobo would try to use Georgia and Avenir in Chinese books. It sounds a bit dumb, doesn't it? I have also replaced the built-in Georgia and Avenir fonts on my own devices. Georgia is simple enough as its internal font name is the same, |
I think I have use What I thought is, Kobo may try to use for example It also occurred to me that there maybe some sort of limit on the font file size or maybe it has defined the character set available to the font hard coded else where, but that is all guesses without any sort of proof. Note: Edited. |
One last thought. Have you tried sideloading a Chinese font to the /fonts subdirectory. Then checking it as a 'Supplemental' fallback font in the [Aa] menu when you're reading a kepub? From my own experience the fairly new kepub fallback fonts feature seems a bit hit-and-miss, but is worth a try if you haven't already. If you have tried it and it didn't work ... In firmware 4.35.20400 Kobo added the ability to download OTA on-demand some fallback fonts for Korean, Indian, Arabic (and a few more) users. These are all fonts from the Noto family, presumably because they are free to distribute. Does Noto have anything aimed at Chinese users. Perhaps this would succeed where others didn't. After that, I'm afraid I'm out of ideas. |
There are already default font patches for ePub books:
Is it possible to change what the kepub reader uses too? The reader does have serif fonts for Chinese, however, it won't use the CJK serif fonts when the book asks for
font-family: serif;
.The text was updated successfully, but these errors were encountered: