06-14-2023, 11:37 PM | #1 |
Fanatic
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) |
06-15-2023, 12:00 AM | #2 |
creator of calibre
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.
|
Advert | |
|
06-15-2023, 12:48 AM | #3 | |
Fanatic
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Quote:
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. |
|
06-15-2023, 12:59 AM | #4 |
creator of calibre
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
|
06-15-2023, 10:15 PM | #5 |
Fanatic
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
|
Advert | |
|
|
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 |