Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2017, 07:08 PM   #1
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
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?
eggheadbooks1 is offline   Reply With Quote
Advert
Old 12-14-2017, 07:17 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 18,178
Karma: 93500000
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.
DiapDealer is offline   Reply With Quote
Old 12-14-2017, 07:24 PM   #3
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by DiapDealer View Post
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.
To test my usual code, I took an older ebook with a font embedded and added a character that I know is NOT in that font, and got the expected empty box. I then also removed the reference to the font for the particular character that I had used the font for, and the character disappeared. So it seems the code in my previous ebook works fine.

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;
	}
I have also tried this:
Code:
{font-family:"NotoSansSymbols2-Regular.ttf";
	src:url("../Fonts/NotoSansSymbols2-Regular.ttf");}
When I validate the CSS, I get this error:
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
eggheadbooks1 is offline   Reply With Quote
Old 12-14-2017, 07:36 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 18,178
Karma: 93500000
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.
DiapDealer is offline   Reply With Quote
Old 12-14-2017, 07:47 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 18,178
Karma: 93500000
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"
for the @font-face statement, and:
Code:
font-family:"NotoSansSymbols2-Regular"
for the CClock class.

Use:
Code:
font-family:"NotoSansSymbols2-Regular"
for both.

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.
DiapDealer is offline   Reply With Quote
Old 12-14-2017, 09:09 PM   #6
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by DiapDealer View Post
Use:
Code:
font-family:"NotoSansSymbols2-Regular"
for both.

Your src url is fine (as long as the fonts have actually been added to the Sigil epub).
Ah -hah! That's me being sloppy! Didn't notice the file extension that was NOT supposed to be there. All works fine now. Thanks. It was those characters that WERE displaying that was leading me into thinking my code was fine. Not.

Also, changed my settings in Sigil to check to CSS3 and the font error has disappeared.

Thanks very much.
eggheadbooks1 is offline   Reply With Quote
Old 12-14-2017, 09:16 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 18,178
Karma: 93500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No problem!
DiapDealer is offline   Reply With Quote
Reply

Tags
characters not displaying, embedded font

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 03:16 AM.


MobileRead.com is a privately owned, operated and funded community.