Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2025, 02:53 AM   #1
Ryinth
Junior Member
Ryinth began at the beginning.
 
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.
Attached Thumbnails
Click image for larger version

Name:	SLkpL9U.png
Views:	169
Size:	21.5 KB
ID:	213287  

Last edited by pdurrant; 01-26-2025 at 02:57 PM. Reason: attached image
Ryinth is offline   Reply With Quote
Old 01-26-2025, 02:09 PM   #2
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
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.
Quoth is offline   Reply With Quote
Old 01-26-2025, 03:19 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Old 01-26-2025, 03:27 PM   #4
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,159
Karma: 105212035
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by JSWolf View Post
Make this character into a graphic and use that. You cannot guarantee that font will be used when embedded.
But that usually won't scale with the font. I tried it with some Chinese and it was rubbish.
Quoth is offline   Reply With Quote
Old 01-26-2025, 03:30 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
Quote:
Originally Posted by Quoth View Post
But that usually won't scale with the font. I tried it with some Chinese and it was rubbish.
The character could be converted to SVG. That will scale well.
JSWolf is offline   Reply With Quote
Old 01-27-2025, 04:01 AM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
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!
Quoth is offline   Reply With Quote
Old 01-27-2025, 05:08 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
Quote:
Originally Posted by Quoth View Post
But svg isn't supported everywhere!
It is in KF8/KFX and ePub. If it's not, that's the fault of the software being used.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:41 PM.


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