![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2019
Device: Kindle App
|
Issues with Embedding Fonts
My new book has a great deal of texted conversations, and I want to use a couple of special characters at the start of each message to designate that (incoming, outgoing, message not sent, etc). I started with what I thought were basic unicode characters (insert -> symbol on Google docs), but they just appear as ?? in most readers. I then used the Calibre editor and insert special character, thinking that might actually embed them, but equally they were either ?? or fully absent. I figured that if I embed a font that would help, so found a free-for-commercial font which would have suitable characters for what I need and...well the above happened. Text properly shows up on the "texted" lines, where it starts with two glyphs from the custom font, but paragraphs that were otherwise entirely default text have converted entirely to the custom font? I feel like I'm missing something obvious? How do I force the rest of the text back to default? (This is my first choice). I then tried to embed two fonts, one for the "normal" text and one for the special characters. This shows properly on Calibre book view, and Pocketbook and Adobe Digital Editions, but ReadEra seems to only show one of the two custom fonts (the "normal" one, not the "special" one). I'd appreciate any help. Last edited by pdurrant; 01-26-2025 at 02:57 PM. Reason: attached image |
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,159
Karma: 105212035
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Use a regular character as you can't guarantee the font for your special characters will be used.
HOWEVER In your font embedding attempt in odt/docx you need a character style that overrides the paragraph style. This becomes a span in the HTML. Or code manually <p class="indented"><span="special-f">¬</span>rest of text</p> Then the css for "indented" and "special-f" have two suitable font families, with fallback. But it will fail unless users pick "Publisher" etc on ereader, and some apps and formats simply won't use embedded fonts. |
![]() |
![]() |
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Make this character into a graphic and use that. You cannot guarantee that font will be used when embedded.
|
![]() |
![]() |
![]() |
#4 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,159
Karma: 105212035
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,159
Karma: 105212035
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
But svg isn't supported everywhere!
|
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedding fonts | raghiid | Conversion | 0 | 12-20-2020 06:20 AM |
Embedding fonts | DrChiper | Editor | 11 | 02-24-2014 11:13 AM |
Issues embedding licensed fonts & Adobe's font permissions | FunkeXMix | ePub | 6 | 01-08-2013 11:36 PM |
Fonts embedding | 1drey | Writer2ePub | 3 | 06-17-2011 11:15 PM |
Embedding fonts | jash | Calibre | 2 | 09-09-2008 05:05 PM |