![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2019
Device: Moon+Reader (Android)
|
Question about fonts and character .
While creating my first ebook i saw that a particular character wasnt been shown across some readers .
These are the characters : 「 and 」(left and right corner bracket). Is this because of varying fonts in there readers ? also is there any way to fix it ? Thanks in advance. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,413
Karma: 14368669
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
You'll have to embed a suitable font. If your book doesn't contain any other CJK characters, you also might want to subset the embedded font to keep the file size down. |
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,146
Karma: 6100569
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Is this a Maths book?
Because there's also Ceiling/Floor characters, which are used for rounding up or down: ⌈3.4⌉ = 4 or ⌊3.4⌋ = 3 and look eerily similar to the CJK brackets used for quotes. Like Doitsu said, you'll typically have to embed a font when using more "rare" characters. |
![]() |
![]() |
![]() |
#4 | ||
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2019
Device: Moon+Reader (Android)
|
Guys, Thanks for replying.
Quote:
Quote:
Do you know which font might me suitable for embedding ? also how do i fix a particular for <p> in all devices ? do i have to add it in the css for <p> ? |
||
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,413
Karma: 14368669
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#6 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,146
Karma: 6100569
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Maybe Source Han Serif + Source Han Sans: https://en.wikipedia.org/wiki/Source_Han_Serif or the Noto fonts: https://en.wikipedia.org/wiki/Noto_fonts Those were designed by Adobe+Google. When embedding fonts, you have to make sure the License is an Open License and allows embedding. Quote:
https://wiki.mobileread.com/wiki/EPu...Font_embedding What you have to do is add the OTF files into the EPUB, then add a few lines of CSS: Code:
@font-face { font-family: "Source Han Sans"; font-weight: normal; font-style: normal; src: url(../Fonts/SourceHanSans-Regular.otf); } Then you have to add a little line to your <p> in the CSS: Code:
p { font-family: "Source Han Sans", serif; [...] } If the font then displays correctly in Sigil/Calibre, then it's recommended to Subset the font in order to make the font files much smaller (it will only keep the characters your book actually uses). In Calibre's Editor, you can Tools > Subset embedded fonts. Or in Sigil, there's Toxaris's "ePUB Optimizer" plugin. Or various other font subsetting tools out there. Last edited by Tex2002ans; 02-12-2019 at 12:14 AM. |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Character Encoding Question | mikapanja | Editor | 11 | 06-28-2014 11:14 PM |
Embedding fonts question | holdit | Sigil | 41 | 02-27-2013 04:34 PM |
Question about Fonts | Japes | PocketBook | 11 | 12-18-2011 02:54 PM |
Touch Fonts question (special characters in stock and custom fonts) | levil | Kobo Reader | 20 | 09-23-2011 02:51 PM |
Character morality question | Steven Lake | Writers' Corner | 27 | 02-23-2011 02:05 AM |