Alternative web-font to render Khmer

后端 未结 3 1935
臣服心动
臣服心动 2020-12-12 07:14

What is web-fonts (preferably available from Google Fonts) supports Khmer UI.

I have tried to define font-family:khmer ui; but it does not render even t

3条回答
  •  忘掉有多难
    2020-12-12 07:49

    The font "Khmer UI" (as mentionned into the original post) doesn't exist in the Google font collection. If you want to find what is the nearest font, go the the Google fonts website. In the left sidebar, select Khmer into Script field. The Google fonts displaying Khmer characters will be listed.

    Select a font in Google fonts

    You cannot embed a font that is not installed on the computer where your website is used (the user/browser needs to install it prior using it). As stated into another answer you need to link to the place where your users can download the font (Google font API or your webserver). Otherwise, the browser used to display your website will use a default font.

    For example, if you have selected the first font nammed "Hanuman", you need to add this link into your HTML code :

    
    

    And to apply the style wherever you want to use the font. All you need to do is add the font name to your CSS styles. For example:

    font-family: 'Hanuman', serif;
    

    Another great Google project is the noto font : a font that will contains all known Unicode characters.

    Remember that few fonts contain the Khmer letters.

提交回复
热议问题