Step 1: လူတ်ႇၾွၼ်ႉ Shan ၼႂ်းၾႆႇ HTML
သႂ်ႇ <link>
tag
ပႃႈတႂ်ႈၼႆႉၼႂ်းၵႄႈ <head>
ဢၼ်ယူႇၼႂ်းၾႆႇ HTML
HTML
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ShanFont/ShanFont@main/shan.css">
Step 2: ႁွင်ႉၸႂ်ႉၾွၼ်ႉၼႂ်း CSS
CSS
body {
font-family: 'Shan', sans-serif;
}
ပိူင်တႅၵ်ႈ –
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shan Font Example</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ShanFont/ShanFont@main/shan.css">
<style>
body {
font-family: 'Shan', sans-serif;
line-height: 1.6em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
margin: 2rem;
}
h1 {
font-weight: 900;
}
h2 {
font-weight: 700;
}
p {
font-weight: 400;
}
.thin {
font-weight: 100;
}
.italic {
font-style: italic;
}
</style>
</head>
<body>
<h1>ၼႆႉပဵၼ်တူဝ်လိၵ်ႈၼႃသုတ်း</h1>
<h2>ၼႆႉပဵၼ်တူဝ်လိၵ်ႈၼႃ</h2>
<p>ၼႆႉပဵၼ်တူဝ်လိၵ်ႈ Regular</p>
<p class="thin">ၼႆႉပဵၼ်တူဝ်လိၵ်ႈမၢင်</p>
<p class="italic">ၼႆႉပဵၼ်တူဝ်လိၵ်ႈၵိူင်း</p>
</body>
</html>
တၢင်းၼႃၾွၼ်ႉ
Font Style | CSS Settings |
---|---|
Shan Thin | font-weight: 100; |
Shan Thin Italic | font-weight: 100; font-style: italic; |
Shan Regular | font-weight: 400; |
Shan Regular Italic | font-weight: 400; font-style: italic; |
Shan Bold | font-weight: 700; |
Shan Bold Italic | font-weight: 700; font-style: italic; |
Shan Black | font-weight: 900; |
Shan Black Italic | font-weight: 900; font-style: italic; |
မၢႆတွင်း
- သႂ်ႇပႃး
line-height: 1.6em
တႃႇႁႂ်ႈတၢင်းသုင်ထႅဝႅလိၵ်ႈတူၺ်းငၢႆႈ - သႂ်ႇပႃး
-webkit-font-smoothing: antialiased;
လႄႈ-moz-osx-font-smoothing: grayscale;
တႃႇႁႂ်ႈတူဝ်လိၵ်ႈလူငၢႆႈမႃးလိူဝ်ၵဝ်ႇ - သႂ်ႇပႃး
line-spacing: 0
ပုၼ်ႈတႃႇဢမ်ႇႁႂ်ႈမီးတူဝ်ၶႅၼ်ႈ space ၼႂ်းၵႄႈတူဝ်လိၵ်ႈ