Advertisement
m1s3rys1gn4l

bangla font config file linux

Jan 26th, 2020 (edited)
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. First Download the “Noto Sens Bengali” font from here.
  2. Extract the zip folder and copy-paste the extracted folder in “/usr/share/fonts/truetype” directory.
  3. Install the “Noto Sens Bengali” font using any font-utility app like:
  4. Font Manager (http://fontmanager.github.io/)
  5. Create a new file named “fonts.conf” in “~/.config/fontconfig/” directory.
  6. NOTE: The sign “~” defines the home directory, means “/home/<username>/” folder.
  7. NOTE: “.config” is a hidden folder. To show hidden files and folders press Ctrl + H from the keyboard.
  8. NOTE: If the folder “fontconfig” and/or file “fonts.conf” not exist in your system then create the folder and/or the file.
  9. Write the below code in “fonts.conf” file:
  10. <?xml version="1.0"?>
  11. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  12. <fontconfig>
  13. <alias>
  14. <family>Ubuntu</family>
  15. <prefer>
  16. <family>Ubuntu</family>
  17. <family>Noto Sans Bengali</family>
  18. </prefer>
  19. </alias>
  20. <alias>
  21. <family>Ubuntu Mono</family>
  22. <prefer>
  23. <family>Ubuntu Mono</family>
  24. <family>Noto Sans Bengali</family>
  25. </prefer>
  26. </alias>
  27. </fontconfig>
  28. Finally, Save the file and re-login.
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. <?xml version="1.0"?>
  36. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  37. <fontconfig>
  38. <match>
  39. <test name="family"><string>sans-serif</string></test>
  40. <edit name="family" mode="prepend" binding="strong">
  41. <string>Noto Sans Bengali</string>
  42. </edit>
  43. </match>
  44. <match>
  45. <test name="family"><string>serif</string></test>
  46. <edit name="family" mode="prepend" binding="strong">
  47. <string>Noto Serif Bengali</string>
  48. </edit>
  49. </match>
  50. </fontconfig>
  51.  
  52. https://github.com/tazihad/bangla-font-fix-linux?fbclid=IwAR0OM0ADtapFfyq-2PrMf-BOg_D_sECqAgtHCHDQUV7Pf2OjO6K3g6zm1iE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement