Monday, April 17, 2023

web fonts for properly rendering multilingual website

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.

  1. The text was represented as characters like अंग्रेजी
    not human-readable for easy editing.

  2. Firefox was not rendering some of the characters properly, like
    instead of

    So, tried incorporating web-fonts - reading up
     
    Google'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