Originally Posted by tshering
Greetings to the community!
I have a Kobo Touch and would like to make my own epubs for private use. These epubs would contain Japanese and Tibetan. I copied suitable fonts already into the fonts folder and they are available for manual selection. I would, however, like to reference them in the epubs. In this way one could for instance make them both available at the same time in one book. Based on discussions on how to achieve this with the Sony reader, I tried to reference the fonts in the css in this way:
font-family: 'Tibetan Machine Uni', serif, sans-serif;
font-family: 'Tibetan Machine Uni';
and in the content.opf in this way:
<item id="font1" href="TibMachUni-1.901b.ttf" media-type="application/octet-stream" />
This, however, had no effect on the appearance of the book at all. I also tried to specify the path of the scr: url command in various ways. The only result was that with one variant starting with src: url("res:/// - I cannot recall the rest - the reader made a restart whenever I launched the book.
Just to clarify, I would rather not like to embed the fonts in each end every epub.
Could anybody please hint me in the right direction on how to reference fonts in the correct way?
Thank you in advance,
I have no idea how the Kobo Touch references fonts sitting in a fonts directory on the device. But, I can tell you that your line
is actually trying to reference a font in the same directory (in the ePub) as the CSS. And obviously, that's not going to work. The URL is going to be different then any URL used for referencing fonts inside the ePub. That's all I can tell you.