![]() |
#1 |
Avid Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 36472
Join Date: Sep 2008
Location: Look for rain, hail and snow...
Device: PRS-505, PRS-600, PRS T1, Kobo Glo
|
Scenebreak with font change
Hi,
I am working on an epub and I try to use the Nymphette Font (http://www.dafont.com/nymphette.font) for scene breaks: Code:
.scene_break { font-family: "Nymphette"; font-size: 2em; display: block; margin-bottom: 0.5em; margin-left: 0em; margin-right: 0em; margin-top: 0em; text-align: center; text-indent: 0em; } Code:
<p class="scene_break">7</p> Do you have any hints? Thank you Sven Last edited by opitzs; 11-06-2010 at 05:22 PM. Reason: Url for font added |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
What I do is take a screen shot of the dinkus then insert it as an image. Because font embedding is really hit and miss
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Are you embedding the font in the ePUB?
|
![]() |
![]() |
![]() |
#5 |
Dylanologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
I have yet to find a universal ePub display. Each reader has its own quarks and limitations. Embedded fonts are a tossup. Some machines/ereaders display them, others like the iPad will not. The more machines you want your epub to run on, the more generic the coding must be. At least that's my observation.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
What the Dog Saw
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
|
|
![]() |
![]() |
![]() |
#7 |
Avid Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 36472
Join Date: Sep 2008
Location: Look for rain, hail and snow...
Device: PRS-505, PRS-600, PRS T1, Kobo Glo
|
Hello All!
Thank you very much for your help, I will do as you suggest and make a dinkus picture, which I will then use. I was just astounded, as all other Fonts worked absolutely well... In this case this is not a problem at all, it is just one of my favourite books and I want a version that does it justice, even if I can't give the result to anyone else. So I won't have to look after IPad compatibility. Thank you very much Sven |
![]() |
![]() |
![]() |
#8 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Note, too, the following sentence from the ePUB specification:
Fonts must not provide mappings for Unicode characters that would change the semantics of the text (e.g. mapping the letter "A" to a biohazard symbol). or, in your case: mapping the number "7" to a dingbat. Maybe that's why this font doesn't work? |
![]() |
![]() |
![]() |
#9 |
Avid Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 36472
Join Date: Sep 2008
Location: Look for rain, hail and snow...
Device: PRS-505, PRS-600, PRS T1, Kobo Glo
|
@Jellby:
I see what you mean, but how would the browser component know, that in this case this is a meaningless substitution? Or can that be found out through some font properties? When I have time I will investigate this. Thank you Sven Last edited by opitzs; 11-08-2010 at 07:52 AM. Reason: I guess the software, that displays ebooks is a browser component... |
![]() |
![]() |
![]() |
#10 |
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
|
I've pointed this out before, but I'll say it again: yes, you CAN embed fonts for the iPad. See my blog post for the general how-to.
Now, just because it's possible doesn't mean you SHOULD do it. As everyone has pointed out, embedding support in different readers can be hit-or-miss (although I believe the method I posted should work in most cases). Also, it shouldn't be used for full text. For headings, such as you propose, I think it would be fine. Still, images are generally the most portable solution. I would recommend creating the image at high resolution and giving its size in em; that way it should scale along with the font, and even if it gets big you won't see any pixelation. |
![]() |
![]() |
![]() |
#11 |
Avid Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 36472
Join Date: Sep 2008
Location: Look for rain, hail and snow...
Device: PRS-505, PRS-600, PRS T1, Kobo Glo
|
@jharker:
Thank you, I was not sure if I could scale an image in em, this is very nice! |
![]() |
![]() |
![]() |
#12 |
Avid Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 36472
Join Date: Sep 2008
Location: Look for rain, hail and snow...
Device: PRS-505, PRS-600, PRS T1, Kobo Glo
|
Hi all,
I have installed fontforge on my machine and it turns out, that there are Symbol-TTFs and normal TTFs. After converting the font to a normal TTF, it now simply works like a charm! So, maybe this is the problem, why some fonts show and some don't? Ciao Sven |
![]() |
![]() |
![]() |
#13 |
Ower, The Ilium Press
![]() Posts: 1
Karma: 10
Join Date: Mar 2011
Location: Spokane Valley, WA
Device: None
|
Thank you all for this discussion. Using an image file in place of a dingbat will save my own "question mark" problem. A most excellent idea and a very elegant solution!
Thanks again, -John |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
If you want the same level of quality as the original font you can also use Inkscape to convert the desired scenebreak character to an svg. This way you get something that's scalable to any resolution and future-proofed.
Down-side is crappy epub renderers don't render SVG, but I'd rather use the features and force the non-compliant reading system guys to step up to the plate and support the spec. Any ADE/Apple/Webkit based renderers support it though. |
![]() |
![]() |
![]() |
#15 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Quote:
All you are doing is making an eBook which won't display correctly. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't change font or font size in ereaders | jmacg | Sigil | 30 | 10-23-2010 09:21 PM |
How to change font encoding? | globalist | Calibre | 6 | 08-28-2010 08:48 AM |
PRS-600 Change font | hedera | Sony Reader | 4 | 11-18-2009 04:22 PM |
Font Change? | sirbruce | Feedback | 1 | 04-03-2009 01:59 PM |
feed to lrf, how do I change font (or have default font) | lovemov | Calibre | 3 | 03-16-2009 10:57 PM |