Sunday, March 2, 2014

Solve Bangla font rendering problem in chrome on Ubuntu

As I newbie in Ubuntu OS, I recently faced and successfully solved Bangla font incorrect rendering problem in google chrome browser. I was using chrome version 33.0.1750.117 on Ubuntu 12.04. I searched on web to solve this and deployed suggested solutions, unfortunately they did not solve my problem entirely even though there have been partial success. However, I finally got to solve this properly and now my facebook bangla fonts look as good as they have been on Windows (I know many of you may find this as a shame to Linux kernel, but I am still a newbie :-) ).

Here are the steps I followed.


1. Download soliamanlipi font. Just google for that.
2. Double click on downloaded file and click install on bottom-right.
3. Open settings on google chrome, click on show advance settings, click on customize fonts and again click on advance font settings on bottom.
4. It will take you to a specific font extension page on google chrome web store. Add that extension to chrome.
5. Once installed, open it.
6. Select Bangla as script and set solaimanlipi in every font options. No need to touch any of the font sizes. Click apply and close this extension page.
7. On customize font options, set the encoding as UTF-8.
8. Restart chrome.


Now comes the crucial part, you may check that complex words such as combined letters are not displayed properly. This is due to default 'freefont' font in system. We need to remove them in order to bring solaimanlipi into effect. These fonts are located in /usr/share/fonts/truetype/freefont. We just need to delete FreeSans.ttf and FreeSerif.ttf. files. Unfortunately, we are not permitted to delete any system file by simply pressing delete. So, here goes the workaround.

9. Press Ctrl+Alt+T to open terminal.
10. Write  cd /usr/share/fonts/truetype/freefont/ and press enter.
11. Write sudo rm FreeSans.ttf and press enter.
12. Type your password.
13. Type sudo rm FreeSerif.ttf and press enter.

Bingo, you are done. Restart chrome or refresh facebook. You will see all "Jukhtakkhor" are rendered properly.


The Final Step:
Once you follow all the steps mentioned above, you will see all sites with SolaimanLipi without any problem. But for the sites that does not, you won't be able to see "Juktakkhor" very clearly. This can be solved very easily.
Download "pyfontfixer" from software center.This acts in the same way "Font Fixer" does in windows. Run it from dash home. Set all the 'second' font as SoliamanLipi (or perhaps, Siyum Rupali) and you are done.


References:
1. https://code.google.com/p/chromium/issues/detail?id=21320







1 comment:

  1. Recently, Google chrome has made some changes in their updates again. So, again some user are facing problem to see BANGLA font in Google Chrome due to update of 'Google Chrome Browser'.

    Here is the new solution to solve this problem. Please visit this page to trouble shoot this problem:
    http://earning999.blogspot.com/2014/10/facing-problem-to-see-bangla-font-in.html

    ReplyDelete