View Single Post
Old 05-23-2015, 05:23 PM   #269
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Maybe I should say some words about the usage of fonts in KSM. By default only one font, namely DejaVu Sans (in KSM 08: Droid Sans) is used.
If you want you can add further fonts to the folder .adds\kbmenu\Qt\fonts (in KSM 08: .adds\kbmenu_user\fonts), and set in "configure" in the section [general], useMultiplefonts=true.
Unfortunately, one has to tinker with the fonts to get the wished for result, and maybe to compromise. Here is what I did:
  • First I added a Japanese font (some version of Gothic; NOTE: Don't take Kobo's encrypted/obfuscated fonts!). This worked as expected: English characters are displayed with DejaVu Sans, Japanese characters with Gothic.
  • Then I added, a Tibetan font (Qomolangma-Uchen Sarchen). However, Tibetan characters were shown as little boxes.
  • Next, I removed all fonts apart from the Tibetan font. As a result English and Tibetan characters were displayed with Qomolangma-Uchen Sarchen, Japanese characters were shown as little boxes.
  • Next, I added again the Japanese font. As a results, Tibetan characters were displayed with Qomolangma-Uchen Sarchen, Japanese and English characters with Gothic. Having the English characters displayed in Gothic is almost unbearable.
  • Next I added Gandhari Unicode. As a result Tibetan is displayed with Qomolangma-Uchen Sarchen, Japanese with Gothic, and English with Gandhari Unicode. The attached images show (1) the menu with entries in English, Japanese, Tibetan, (2) the KSM viewer showing a page with Tibetan and Chinese, (3) the KSM viewer showing a page with Tibetan, Chinese, and English. You will note that some of the Chinese characters a missing. The reason is, of course, that I have a Japanese font installed, and this font does support only a sub set of Chinese characters.

Edit (some weeks later): Today I added Sanskrit2003.ttf. However, instead of Devanagari characters only squares appeared. Only after I deleted the Japanese font msgothic.ttc, did Devanagari characters show. For some reason msGothic qualifies as supporting Devanagari characters, even though it does not contain the corresponding glyphs. Since Qt checks the fonts in alphabetical order, msGothic overpowers Sanskrit2003. The work around is to rename Sanskrit2003.ttf to aSanskrit2003.ttf.
Attached Thumbnails
Click image for larger version

Name:	screen_20150523_202315.png
Views:	893
Size:	41.1 KB
ID:	138585   Click image for larger version

Name:	screen_20150523_202536.png
Views:	858
Size:	113.2 KB
ID:	138586   Click image for larger version

Name:	screen_20150523_202654.png
Views:	813
Size:	73.6 KB
ID:	138587  

Last edited by tshering; 10-30-2015 at 05:50 AM.
tshering is offline   Reply With Quote