@Font-Face Rule

យើង​បាន​ដឹង​រួច​មក​ហើយ​ថា យើង​អាច​យក​ពុម្ព​អក្សរ​ផ្សេង​ៗ ដែល​មាន​នៅ​លើប្រព័ន្ធ Google Fonts មក​ប្រើប្រាស់​នៅ​លើ​ទំព័រ HTML របស់​យើង​បាន​ដោយ​ដាក់​ដំណរភ្ជាប់​ទៅ​កាន់​ពុម្ព​អក្សរ​ទាំងនោះ​។ លើស​ពី​នេះ​ទៀត យើង​ក៏​អាច​ download យក​ពុម្ព​អក្សរ​ទាំងនោះ​មក​ប្រើប្រាស់​នៅ​លើ​ទំព័រ HTML របស់​យើង​ ដោយ​ផ្ទាល់​បាន​ដែរ ដោយ​ធ្វើ​ដូច​ខាង​ក្រោម​នេះ៖

<!DOCTYPE html>
<html>
  <head>
  	<meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  	<title>@Font-Face Rule</title>
    <style>
      @font-face {
   		font-family: myFirstFont;
   		src: url(Courgette.woff);
	  }

	  * {
   		font-family: myFirstFont;
	  }
    </style>
  </head>
  
  <body>
	

The @font-face Rule

With CSS, websites can use fonts other than the pre-selected "web-safe" fonts.

Note: Internet Explorer 8 and earlier, do not support the @font-face rule.

</body> </html>

The @font-face Rule

With CSS, websites can use fonts other than the pre-selected "web-safe" fonts.

Note: Internet Explorer 8 and earlier, do not support the @font-face rule.