Lekshmi
Lekshmi

Reputation: 31

How to add Malayalam unicode font in Websites

I have to develop a website having contents in Malayalam. Anyone please help me in doing this.I tried this code but didnt work.

    @font-face {
    font-family: 'meeraregular';
    /*src: url('font/meera-webfont.eot');*/
    src: url('meera-webfont.eot?#iefix') format('embedded-opentype'),
         url('meera-webfont.woff2') format('woff2'),
         url('meera-webfont.woff') format('woff'),
         url('meera-webfont.ttf') format('truetype'),
         url('meera-webfont.svg#meeraregular') format('svg');
    font-weight: normal;
    font-style: normal;

}
.font{ font-family: 'meeraregular';}

Upvotes: 1

Views: 4930

Answers (2)

Harilal
Harilal

Reputation: 1

<style>
 @import url('https://smc.org.in/fonts/meera.css'); body { font-family: 'Meera', sans-serif; } 
</style>

<body>
 കുഞ്ഞേടത്തിയെ തന്നെയല്ലോ ഉണ്ണിയ്ക്കെന്നെന്നുംമേറെയിഷ്ടം പൊന്നേ പോലത്തെ നെറ്റിയിലുണ്ടല്ലോ മഞ്ഞൾ വരക്കുറി ചാന്ദുപൊട്ടും ഈറൻമുടിയിലെള്ളണ്ണ മണം ചിലനേരമാ തുമ്പത്തൊരു പൂവും കയ്യിലൊരറ്റ കുപ്പിവള മുഖം കണ്ടാൽ കാവിലെ ദേവി തന്നെ മടിയിലുരുത്തീട്ട് മാറോട് ചേത്തിട്ടു മണി മണി പോലെ കഥപറയും ആനേടെ, മയിലിന്റെ, ഒട്ടകത്തിന്റെയും ആരും കേൾക്കാത്ത കഥപറയും 
</body>

Upvotes: -1

Mo.
Mo.

Reputation: 27465

I have build the @font-face with available font file extensions.

@font-face {
  font-family: 'meeraregular';
  font-style: normal;
  font-weight: 400;
  src: url(https://smc.org.in/downloads/fonts/meera/Meera.woff2?v=7.0) format('woff2'), url(https://smc.org.in/downloads/fonts/meera/Meera.woff?v=7.0) format('woff'), url(https://smc.org.in/downloads/fonts/meera/Meera.ttf?v=7.0) format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+0D01-0D7F, U+200C-U+200D, U+25CC;
}
.font {
  font-family: 'meeraregular';
}
<p class="font">കുഞ്ഞേടത്തിയെ തന്നെയല്ലോ ഉണ്ണിയ്ക്കെന്നെന്നുംമേറെയിഷ്ടം പൊന്നേ പോലത്തെ നെറ്റിയിലുണ്ടല്ലോ മഞ്ഞൾ വരക്കുറി ചാന്ദുപൊട്ടും ഈറൻമുടിയിലെള്ളണ്ണ മണം ചിലനേരമാ തുമ്പത്തൊരു പൂവും കയ്യിലൊരറ്റ കുപ്പിവള മുഖം കണ്ടാൽ കാവിലെ ദേവി തന്നെ മടിയിലുരുത്തീട്ട് മാറോട് ചേത്തിട്ടു
  മണി മണി പോലെ കഥപറയും ആനേടെ, മയിലിന്റെ, ഒട്ടകത്തിന്റെയും ആരും കേൾക്കാത്ത കഥപറയും</p>

Upvotes: 2

Related Questions