![]() |
#16 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Well, you can certainly have the expectation, but it may not be realised
![]() (Although, of course, if you build your book in the new "KF8" Mobi-ish format using the latest "Kindlegen" tool, embedded fonts will work just fine.) |
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
|
A clarification:
The opf file contains the following line (as generated by Sigil): <item href="Fonts/Math2Regular.ttf" id="Math2Regular.ttf" media-type="application/x-font-ttf" /> the css on the other hand contains: @font-face { font-family: math2; font-style : normal, italic; src : url(../Fonts/Math2Regular.ttf); } .infinity { font-family : "math2"; font-weight : 600; font-size : 125%; } The space in my previous example was the result of a ham-fisted attempt to manually edit the opf file. I had renamed the file in case the space in the filename was causing the problem. It wasn't. Sigil got it right. I know that I can use an html entity. I want to use this particular font because I want the specific style of infinity symbol. If use the "infin" entity it works, it just looks bad. I'm attaching a stripped down version of the epub that demonstrates the problem. I've replaced all the text with "greeked" text. The problem symbol is in the Prologue chapter. Last edited by grumbles; 03-03-2012 at 01:55 PM. |
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It was mentioned earlier that it's not advisable to use a font that simply maps an entirely different character to a normal letter... in this case 'w'.
If the infinity entity doesn't look "right," keep in mind that the font used in the Book View of Sigil isn't very indicative of what it will look like on a reader. If it still looks "bad" in ADE, then embed a unicode font that produces an infinity character (using the html entity) that looks "better." (though I think it's a bit overkill to embed a font for a handful of special characters, unless there's absolutely no other way to produce them) |
![]() |
![]() |
![]() |
#20 |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
@grumbles
Well I tossed out the rest, except for the absolute neccessary to test. I lend a font from an epub here in MR (savage stories), which has a working layout. I reproduced the fault with the Firefox-Pugin, where "Crom" is shown correctly while "math2" is not. So i guess it's a problem with your font. How does it look on your device (see attachment) ? Last edited by mmat1; 03-03-2012 at 03:58 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
|
Thank you mmat1!
The results are, well... interesting. With Ubuntu 10.04, the infinity symbol shows up as an empty box but the Crom font displays properly. This happens in both Sigil and the Calibre viewer. Under XP the results are different. Both Sigil and Calibre display the symbol and text properly. However ADE (Adobe Digital Editions) ignores the stylesheet completely and displays the text with the default font. Both the Math2 and the Crom font are ignored. I assume the same would happen on my reader (a Sony 650). At this point I fell like turning to a more productive activity such as smashing my head against a concrete wall! In Reply to DiapDealer: If a unicode font had an appropriate symbol I would have used it but the symbol is part of the page design. The style and appearance are important. There is a problem with marking scene changes where the actual layout of the page is unknown. On a printed page, if a scene change occurs at the top or bottom of a page, usually and ornament of some sort is used, while scene changes in the page is usually shown with a blank line and the following paragraph is unindented. These separators can get lost when text reflows, a blank line at the bottom of the screen is not obvious and a paragraph that is unindented at the top of the screen is indistinguishable from a paragraph that continues from the previous screen. The only solution to this problem is some sort of graphic indication and what better than an ornament. I know of no unicode font that combines alphanumeric glyphs with ornaments. And all the ornament fonts remap characters to ornaments. It may not advisable to remap characters but there isn't any other way to do it. I am toying with the idea of taking a unicode font such as DejaVu and adding a set of ornaments and symbols to the font in one of the private areas. Does anyone have any experience with doing this, maybe with a program like Font Forge? This might be one way of solving the problem for once and for all. Apologies to jgawne. I may have high jacked your thread, but I think that your problem is similar if not the same as mine. I hope that anything that comes to light here helps you as well. |
![]() |
![]() |
![]() |
#22 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
If ADE is ignoring the stylesheet, there is probably a (hard to see) error.
Run that puppy through the CSS validator: http://jigsaw.w3.org/css-validator/#validate_by_upload CSS Font specification can be extremely fussy about case and nameing. |
![]() |
![]() |
![]() |
#23 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 03-05-2012 at 10:26 PM. |
|
![]() |
![]() |
![]() |
#24 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
|
OK -- I unzipped demoproblem.epub and ran style.css through the css validator. It told me that there were no errors but gave a warning for line 46:
Property font-family doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] which is in the @font-face definition. I am now totally lost. If the "font-family" property is not valid, what do I use? What is correct? |
![]() |
![]() |
![]() |
#25 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You font-family in your @font-face must be between quotes. Otherwise it is not valid. If you don't put it between quotes, it must be either a family like Arial, Georgia, etc or a type like serif, non-serif.
|
![]() |
![]() |
![]() |
#26 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 128
Karma: 238654
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
|
@grumbles
All CSS errors aside, testing with the Math2Regular.ttf font shows it will not work with ADE. Quote:
|
|
![]() |
![]() |
![]() |
#27 | |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
Thanks to TheDucks & JSWolf: i made an really hefty error in my css example. After clearing out, the behavior of the fonts didn't change. Math2 will not work in the ff-plugin (and as told by others, in ade as well) So i ask if there's any font out in the world which will work with ADE ![]() I'm sorry to say this, but continuing with this path will probably lead into an in-depht analysis of font files ... So i'm with Keroberos and suggest to try some graphics instead of fonts. |
|
![]() |
![]() |
![]() |
#29 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
|
@Toxaris:
Adding the quotes makes no difference. The CSS validator was also quite happy with the css without quotes. Did you mean equation instead of quotation? @mmat1: I tried another font, Lucida Bright Math Symbol. It also fails to work. I will continue to look at this. I need to know what fonts work and why some don't. I generated a svg file from the infinity glyph -- create a png with gimp and the use autotrace to create a svg file. That worked. I think Inkscape would also create a svg but I couln't quite figure out how to do it. Autotrace worked on the first try. Does a graphic scale when the user changes the font size? The symbol is used as an ornament at the start of every scene as the first character of a paragraph. If the size of the font is changed, the symbol has to change in the same proportion. I also have no clue about using svg images. Is there a comprehensive tutorial somewhere? The whole business of embedding fonts seems to be very hit and miss. I lifted the Charis font-face section from the css of a publication and pasted it into another epub I'm working on. I ended up with the text in bold face but the italics in normal weight. I then replaced the font with DejaVu and all was well. If anyone knows where I can find out more, I'd love to hear about it. |
![]() |
![]() |
![]() |
#30 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Install Notepad++ under Windows and then load in the CSS. Go to the encoding menu and select Encode in UTF-8 without BOM. That will fix the problem with the bold where it should be displaying normal. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spanish symbols | vidalpascual | Amazon Kindle | 1 | 11-24-2010 06:29 PM |
Non-ascii symbols on Story | James_Wilde | iRiver Story | 13 | 09-12-2010 05:15 AM |
Any symbols not to use? | roguefan99 | Kobo Reader | 1 | 07-24-2010 10:21 AM |
PDF converts to symbols | robkat | Calibre | 1 | 01-14-2010 12:02 PM |
Music symbols | rxsz | Astak EZReader | 1 | 12-19-2009 10:43 AM |