9.4. Setting Font Face
You can set the typeface (font face or family) using the face attribute. But be aware that if the user viewing the page does not have that font installed on their computer, they will not be able to see it. Instead, they will see the default font available on their computer.
9.5. Specify Alternate Font Faces
A visitor can see your font only if they have that font installed on their computer. So we can specify two or more alternative font faces by listing the font names, separated by commas.
Source Code:
<!DOCTYPE html>
<html>
<head>
<title>Font Face Example</title>
</head>
<body>
<!-- Setting Font Face Example 1 -->
<p>
<font face="Khmer OS Battambang">
នេះគឺជាអត្ថបទដែលកំណត់ font តែមួយ។
</font>
</p>
<p>
<font face="Khmer OS Muol">
នេះគឺជាអត្ថបទដែលកំណត់ font តែមួយ។
</font>
</p>
<!-- Specify Alternate Font Faces Example 1 -->
<p>
<font face="Khmer OS Siemreap-Kh Auto, Arial, sans-serif">
នេះគឺជាអត្ថបទដែលមាន font ជាជម្រើស (fallback fonts)។
</font>
</p>
<p>
<font face="NiDA Funan, Times New Roman, serif">
នេះគឺជាអត្ថបទដែលមាន font ជាជម្រើស (fallback fonts)។
</font>
</p>
</body>
</html>
Result:
Watch the video:


