12-14-2017, 07:08 PM | #1 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Not all characters of embedded font displaying
I have embedded a font specifically to add some Wingding-like characters into my ebook. The font is a Unicode TTF developed by Google. When I type in the Unicode character codes into Sigil, most appear as expected. But when I open the ePub in ADE, only one of five are displaying; the rest are the typical empty boxes.
When I convert to Kindle, all appear. However, I then tested some other characters but they are not displaying in Sigil, ADE, or Kindle. I'm stumped. I thought the point of embedding fonts was to work around the character limitations of ebooks/ereaders. I also assumed -- clearly wrongly -- that if a character appears in the embedded font itself then the character will display in the ebook. I have checked the ePub in IDPF's online ePub check to be sure I didn't mess up the code; all passes. Are there limitations to embedded fonts that I am not aware of? |
12-14-2017, 07:17 PM | #2 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Have you verified the the embedded fonts are actually being displayed at all (in the scenarios where certain characters aren't displaying in ADE)? One CSS syntax error could keep embedded fonts from working and wouldn't be picked up by the IDPF validator.
That would explain why the characters might display on a Kindle, but not in ADE (different system fonts with different extended character support. Make sure your css validates. Also note that some rare/broken fonts are not suitable for embedding and being displayed properly in ADE. There is a particular property of a font that can be problematic if it doesn't have a certain value, if I recall. Last edited by DiapDealer; 12-14-2017 at 07:20 PM. |
12-14-2017, 07:24 PM | #3 | |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
The CSS is this new one is the same format: Code:
@font-face {font-family:"NotoSansSymbols2-Regular.ttf"; font-style:normal; font-weight: normal; src:url("../Fonts/NotoSansSymbols2-Regular.ttf");} p.CClock {margin:0; text-align:center; text-indent:0; font-size:5em; font-family:NotoSansSymbols2-Regular; } Code:
{font-family:"NotoSansSymbols2-Regular.ttf"; src:url("../Fonts/NotoSansSymbols2-Regular.ttf");} 2 Value Error : font-family Property font-family doesn't exist in CSS level 2.1 but exists in [css1, css2, css3] : "NotoSansSymbols2-Regular.ttf" 3 Property src doesn't exist : url("../Fonts/NotoSansSymbols2-Regular.ttf") but that error has been showing up for all embedded fonts in Sigil, at least in my experience. (Sorry for the glitches -- the post keeps posting when I try to fix the code.) Last edited by eggheadbooks1; 12-14-2017 at 07:31 PM. Reason: glitch |
|
12-14-2017, 07:36 PM | #4 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That css error can probably be safely ignored. But if you're using the Sigil tool to validate your css, though, you can double-check by setting the default css level to 3.0 for epub2s in the general Sigil preferences and check again.
If you have fontforge, or some other font editing software, you can also check the OS/2 version property of the font. If it's not version 3 or lower, it probably won't work right with ADE. |
12-14-2017, 07:47 PM | #5 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Also, don't use the file extension for the font-family name. It shouldn't really matter what you use, but it must match -- exactly -- the font-family name of the paragraph class you're trying to assign it to.
You're using: Code:
font-family:"NotoSansSymbols2-Regular.ttf" Code:
font-family:"NotoSansSymbols2-Regular" Use: Code:
font-family:"NotoSansSymbols2-Regular" Your src url is fine (as long as the fonts have actually been added to the Sigil epub). Last edited by DiapDealer; 12-14-2017 at 09:16 PM. |
12-14-2017, 09:09 PM | #6 | |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
Also, changed my settings in Sigil to check to CSS3 and the font error has disappeared. Thanks very much. |
|
12-14-2017, 09:16 PM | #7 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
No problem!
|
Tags |
characters not displaying, embedded font |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some characters (* + - /) not displaying | JavaJim | Devices | 7 | 09-11-2015 11:40 AM |
Displaying Chinese? Characters | Rand Brittain | ePub | 8 | 04-05-2014 01:51 PM |
Embedded Font not displaying in iBook | Tisha4870 | Sigil | 10 | 02-21-2014 01:11 PM |
embedded font - now line with embedded font not re-flowing | Kaylee Skylyn | ePub | 23 | 08-09-2012 07:30 PM |
CE characters not displaying | citac | Sigil | 18 | 10-08-2010 08:07 AM |