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 06-14-2023, 11:37 PM   #1
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
TXTZ to Epub: Embed font?

I have been using TXTZ as the conversion source for a long time (easy to edit as markdown format, css can be inserted by calibre, images are already supported), but it doesn't support font.

If this format is still under maintenance, I would like to request for font support.

(place fonts in a font subfolder, refer to them in the css)
nqk is offline   Reply With Quote
Old 06-15-2023, 12:00 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,984
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not sure whaat you are asking for. There is no way to specify font families/faces in textual markup languages that I know of. You can use general calibre conversion CSS options to specify font CSS.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-15-2023, 12:48 AM   #3
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
Not sure whaat you are asking for. There is no way to specify font families/faces in textual markup languages that I know of. You can use general calibre conversion CSS options to specify font CSS.
I am referring exactly to CSS options in Calibre.

Let's say I put "font-family: Abc;" and @font-face { font-family: Abc; src: url(fonts/abc.ttf) } in the Extra CSS, Calibre will keep the css but the font files are not transferred to the converted epub files (i created a subfolder and put the font files there).

I think if TXTZ could contain font files and Calibre can see the font files, the fonts maybe embedded. IIRC, TXTZ format only supports now external images stored in the images subfolder.

Last edited by nqk; 06-15-2023 at 01:02 AM.
nqk is offline   Reply With Quote
Old 06-15-2023, 12:59 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,984
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Make sure Abc is installed in your system and use the conversion option to embed all referenced fonts. Use only font-family: not @font-face in your extra css
kovidgoyal is online now   Reply With Quote
Old 06-15-2023, 10:15 PM   #5
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
Make sure Abc is installed in your system and use the conversion option to embed all referenced fonts. Use only font-family: not @font-face in your extra css


Thank you for the tip.

nqk is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed a specific font-family into a epub book without changing style njpig Conversion 4 12-31-2021 12:11 AM
Font won't embed NIRC Conversion 2 06-19-2020 08:38 PM
Epub conversion does not embed WOFF font iliakan Conversion 6 02-06-2015 01:42 AM
How to Embed a font after the ePub is created. Adjust ePub 26 08-03-2011 01:09 AM
how to embed unicode font atu1303 LRF 8 08-21-2009 10:06 PM


All times are GMT -4. The time now is 11:29 PM.


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