When creating a website on github pages with text in English, Hindi and Telugu, the first attempt was to just copy-paste the content from a Google Doc exported as HTML. But that had two problems.
- The text was represented as characters like अंग्रेजी
not human-readable for easy editing. - Firefox was not rendering some of the characters properly, like
So, tried incorporating web-fonts - reading upGoogle's free multilingual font Noto Sans was what I used.CSS like
@font-face {
font-family: EnglishBold;
src: url(images/notosans-black.ttf);
}
.eng {
font-family: EnglishRegular;
}
No comments:
Post a Comment