View Single Post
Old 05-13-2015, 12:48 AM   #1
Pankaj Inamdar
Junior Member
Pankaj Inamdar began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2015
Device: None
Issues with Ebook with Devanagari script (Mangal font)

Hello friends,

I have tried creating an e-book having text in Devnagari script (Mangal font). I have bit of an issue here. While most of the text is displayed properly, only in some cases the letters are broken up and/ or partially shifted to next page. Please see attached PDF - the issues are circled in red. Surprisingly, this is not consistent, in the sense many a place similar letters are displayed properly.

The procedure that I followed to create an ebook is as under:
  • Used Calibre to convert MS Word document in to an epub file
  • In Sigil,
    [1]Right clicked Fonts, Add Existing Files and selected mangal and mangalb
    [2]Added the following lines at the begining of stylesheet.css file
Code:
@font-face {
font-family: "Mangal";
font-weight: normal;
font-style: normal;
src: url(../Fonts/Mangal-Regular.ttf);
}
@font-face {
font-family: "Mangal";
font-weight: bold;
font-style: normal;
src: url(../Fonts/Mangal-Bold.ttf);
}
body { font-family: "Mangal", serif; }
I am not sure what
Code:
src: url(../Fonts/Mangal-Regular.ttf)
line means. Does it read the font files from the laptop or from the Internet? I am not sure if the path is right (I have picked the above code from the forum.

Request your help to solve the problem.

Thanks in advance

Attached Files
File Type: pdf e-book on Android.pdf (227.9 KB, 352 views)
Pankaj Inamdar is offline   Reply With Quote