Devanagari fonts appear broken like this:
It should appear this way
I have the same problem in browsers and office applications.
Is there any way to fix it?
Devanagari fonts appear broken like this:
It should appear this way
I have the same problem in browsers and office applications.
Is there any way to fix it?
Install the fonts-deva
package, if you haven't already done so. Then create the file ~/.config/fontconfig/conf.d/10-prefer-devanagari.conf
with the following contents:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Lohit Devanagari</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Lohit Devanagari</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Lohit Devanagari</family>
</prefer>
</alias>
</fontconfig>
mkdir -p ~/.config/fontconfig/conf.d
Jan 10, 2018 at 15:02
Download Google Noto Fonts (choose Noto Sans Devanagari) and add it to Home > .fonts
If .fonts
folder is not available in Home folder create it.
.fonts
folder will be hidden by default. Use CTRLH to see hidden files and folders before creating a .fonts folder.
You can use other Google Noto Fonts for any Indic language you would like to use.
If you want to have different font weights, choose fonts with those qualities.
This is just one simple way of doing it. There could be a thousand other ways to use Devanagari fonts in Ubuntu.
fonts-noto-hinted
package.
Dec 2, 2016 at 14:15
Just Go to Settings of Browser And Select Gargi Font from Drop Down.
For Firefox :
Go to From Menu preferences.
Under Language & Appearance Default Font Set it To Gargi.
Click On Advance Tab Next To Default Font Settings.
Then Set Fonts For "Devnagari" from Drop Down.
Set Serif San-serif & Monospace to Gargi.
You Can Instantly Check using Google Typing Tool Online.
For Chrome:
Settings->Appearance Set All Fonts Value to Gargi From Drop Down Menu.
Then From Advanced Tab Install Extension For "Advanced Font Settings"
In Than Set All Fonts to Gargi.
This is happening because of fonts.
To render any language text, font should support that text. Default fonts of Ubuntu does not render Devanagari correctly.
In order to correctly show devanagari text, we need a font which is fully supporting devanagari.
To setup the correct font we need to do following steps.
Home
folder and check for hidden files. You can use Ctrl + H
for the same..font
folder, create one. Extract downloaded zip file into this folder. This step will integrate all these fonts into Ubuntu. So technically you can use any of these fonts in any of the software.font
. Click on Customize Fonts
.Standard Font
to Lohit Devanagari
or any other font which renders devanagari correctly.To render devanagari correctly in any other software, we can do the same by selecting font as Lohit Devanagari
.