Quote:
Originally Posted by DiapDealer
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.)