01-03-2013, 02:43 PM | #16 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@tshering,
That's interesting. Can you confirm which of those fonts are built-in (first 4???) and which sideloaded? The Sanskrit looks a bit rough. Also, is it possible to post your test epub so I can see what it looks like, unchanged, on my Glo fw2.1.5? I could post a photo of the results. |
01-03-2013, 03:09 PM | #17 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
@jackie_w,
Arial Unicode MS is part of Windows XP; Sanskrit 2003 is a free font (link), its Devanagari letters (used for instance for Sanskrit and Hindi) are quite beautiful (in contrast to the Latin letters). The other fonts (1 to 5) are built-in. I add the epub. |
01-03-2013, 04:39 PM | #18 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@tshering,
How very odd. After downloading the linked Sanskrit font and selecting it in the font settings pop-up I see the the same results as you (except I didn't sideload the Arial). If I choose any of my other fonts (both built-in and sideloaded) all lines are displayed in the selected font. I wonder what's special about Sanskrit? You probably already tried it, but if the epub is renamed back to .epub then all lines display in the selected font, even if Sanskrit is selected. |
01-03-2013, 06:02 PM | #19 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
@jackie_w,
Yes, very odd. I have no idea what is going on. I made a second kepub.epub file and added some Sanskrit text. I am not sure, but I guess non of the built-in fonts has those characters implemented. Whatever font I select, the Sanskrit text of all paragraphes is displayed as Arial Unicode MS. Only if I select Sanskrit 2003, the Sanskrit of the Sanskrit 2003-paragraph is displayed as Sanskrit 2003, all the others again as Arial Unicode MS. I even changed the sequence of the font entries in the css, without any change. Therefore I guess that in the case of not supported characters in a certain font the ereader chooses the first font in alphabetical order that supports these characters. Since you do not have Arial Unicode MS your reader should display all Sanskrit characters as Sanskrit 2003. Right? If you would like to check it, the most significant part is at the beginning of the word शूद्रको. |
01-03-2013, 07:43 PM | #20 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Yes, the Sanskrit chars all appear in the same font, which must be Sanskrit2003, because as soon as I deleted this font file they all displayed as squares instead.
|
01-03-2013, 07:46 PM | #21 |
Resident Curmudgeon
Posts: 73,877
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What hubertphava is saying it to actually embed the fonts in the ePub and then they work regardless of firmware. I know this is not what you want to do. You want to have the font in an external directory and call them from the ePub. So don't listen to hubertphava as it's not what you want to do.
|
01-03-2013, 07:50 PM | #22 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I'm sure this is what I already said in post #14
|
01-04-2013, 05:45 AM | #23 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
@jackie_w,
Thank you for the answer! I do not know why Sanskrit 2003 has this effect but we can use it for our purpose. css Code:
body {margin-left:0; margin-right:0; margin-top:0; margin-bottom:0; font-family:"mynormalfontname";} .code {font-family:"mymonospacefontname";} p.code {margin-left:2%; margin-right:2%; margin-top:2%; margin-bottom:2%; font-family:"mymonospacefontname";} Code:
<p>This is <span class="code">some code</span> follow by normal text. </p> <p class ="code">This is a block of code. </p> |
01-04-2013, 11:56 AM | #24 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@tshering,
For my purposes, which is to access monospace & small-caps fonts for relevant portions of the few books that need them, I don't think it offers any reduced effort over the embedded font method (mainly because I already did a bit of coding to automate that). I don't want to hard-code font names into the css for main body text because I want to retain the Kobo 'switch-fonts-on-the-fly' feature. Also I need to be able to read the same epubs simultaneously on Kobo, Sony and Android so I don't want device-specific code in the calibre master epub. Nevertheless, it's been an interesting exercise and I thank you for your participation I guess a reader which combined the best features of both Kobo and Sony would be just about perfect for me. |
01-04-2013, 12:17 PM | #25 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
@jackie_w,
I see. I am trying to avoid embedded fonts for size concerns, since I have many small epubs with the same fonts. Would be nice if there were a way to use alternative style sheets for different devices, and also if the user could choose between different style sheets. |
01-04-2013, 01:09 PM | #26 |
Grand Sorcerer
Posts: 6,205
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Exactly, just like you can on all the Sonys and PocketBook I've owned, which all have ADE-based reading apps.
|
01-04-2013, 06:18 PM | #27 | |
No Comment
Posts: 3,238
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
Quote:
I really want to be to say something like: .class {font: (if font is sans-serif then serif else sans-serif} or .class {text-indent: text-indent/2} This would allow for the internal formatting of a book to be maintained when the device allows things like font setting, margins, etc. |
|
01-05-2013, 10:07 PM | #28 | |
Connoisseur
Posts: 71
Karma: 18140
Join Date: Jul 2011
Device: PRS-T1&KOBOTOUCH
|
Quote:
I have reported this issue on firmware2.3x to KOBO customer care, they promised that it will be resolved by future firmware update, but not sure about the arrive time. |
|
01-05-2013, 10:34 PM | #29 |
Grand Sorcerer
Posts: 12,154
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
I seriously doubt that Customer Care has the ability to promise a fix....
|
01-05-2013, 10:37 PM | #30 |
Resident Curmudgeon
Posts: 73,877
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
working with fonts in css | jayz | Kindle Formats | 9 | 10-29-2012 04:09 PM |
PRS-T1 Adding two fonts into the CSS? | WarGhSt | Sony Reader | 1 | 02-02-2012 01:41 AM |
Opus Fonts directory for Calibre -> External CSS | fiery | Bookeen | 12 | 02-20-2011 10:05 PM |
Motivation - can you invoke it? | mukoan | Writers' Corner | 26 | 12-26-2010 07:57 AM |
nook fonts via CSS | danrodney | Barnes & Noble NOOK | 1 | 12-21-2010 07:56 AM |