| 1 |
<html lang="en"> |
| 2 |
<!-- |
| 3 |
Harmattan-webfont-example.html |
| 4 |
This file is part of Harmattan font family (http://software.sil.org/harmattan/) |
| 5 |
and is Copyright (c) 2014-2023, SIL International (http://www.sil.org/). |
| 6 |
with Reserved Font Names "Harmattan" and "SIL". This Font Software is licensed |
| 7 |
under the SIL Open Font License, Version 1.1. You should have received a copy |
| 8 |
of the license along with this Font Software. If this is not the case, go to |
| 9 |
(http://scripts.sil.org/OFL) for all the details including a FAQ. |
| 10 |
--> |
| 11 |
<head> |
| 12 |
<link rel="stylesheet" href="Harmattan-webfont-example.css" type="text/css"> |
| 13 |
<meta charset="utf-8"> |
| 14 |
<meta name="description" content="An example of using Harmattan on your web page via WOFF2"> |
| 15 |
<meta name="author" content="SIL International: software.sil.org/wstech"> |
| 16 |
|
| 17 |
</head> |
| 18 |
<body> |
| 19 |
<div style="font-size: 150%;" dir=ltr> |
| 20 |
|
| 21 |
<h1>Using Harmattan webfonts</h1> |
| 22 |
|
| 23 |
<p>The page demonstrates how to use the WOFF2 version of Harmattan for web pages, using local copies of the .woff2 files in this archive. For more information on this technique |
| 24 |
- and how to use the normal TrueType version as a web font - see <a href="http://software.sil.org/fonts/webfonts">Using SIL Fonts on Web Pages</a>.</p> |
| 25 |
|
| 26 |
<p>The body of this document is styled using an external stylesheet, with Harmattan set as the default font, and loaded directly as a WOFF2 file using the @font-face rule. |
| 27 |
If you're seeing a sans-serif font here then it is working. Otherwise the text will be in a serif or your browser default. |
| 28 |
This technique has been tested in Firefox, Chrome, Safari, and Edge.</p> |
| 29 |
|
| 30 |
<p>To see specifically how these techniques are specified in the CSS and HTML view the source to this page and the accompanying CSS file.</p> |
| 31 |
<div dir=rtl> |
| 32 |
<h2>Test General behavior of Arabic script in webfonts</h2> |
| 33 |
|
| 34 |
<p></p> |
| 35 |
<p class=rtl>شِیلِلیکده، ابراهیمدان داوودا چِنلی بوُلان نِسیلِّر جِمی اوُن دؤرت آرقادئر. داووددان بابئل سوٚرگوٚنینه چِنلی هِم اوُن دؤرت، بابئل سوٚرگوٚنیندِن مِسیحه چِنلی هِم اوُن دؤرت آرقادئر. ۝٢٣ رامادان بیر سِس اِشیدیلدی،</p> |
| 36 |
<p class=rtlb>شِیلِلیکده، ابراهیمدان داوودا چِنلی بوُلان نِسیلِّر جِمی اوُن دؤرت آرقادئر. داووددان بابئل سوٚرگوٚنینه چِنلی هِم اوُن دؤرت، بابئل سوٚرگوٚنیندِن مِسیحه چِنلی هِم اوُن دؤرت آرقادئر. ۝٢٣ رامادان بیر سِس اِشیدیلدی،</p> |
| 37 |
|
| 38 |
<p class="cv44180801">شِیلِلیکده، ابراهیمدان داوودا چِنلی بوُلان نِسیلِّر جِمی اوُن دؤرت آرقادئر. داووددان بابئل سوٚرگوٚنینه چِنلی هِم اوُن دؤرت، بابئل سوٚرگوٚنیندِن مِسیحه چِنلی هِم اوُن دؤرت آرقادئر. ۝٢٣ رامادان بیر سِس اِشیدیلدی،</p> |
| 39 |
|
| 40 |
<h2>Test Character Variants of Arabic script in webfonts</h2> |
| 41 |
|
| 42 |
<p class=cv440> م ‍م [cv44=0]</p> |
| 43 |
|
| 44 |
<p class=cv441> م ‍م [cv44=1]</p> |
| 45 |
|
| 46 |
|
| 47 |
<p class=cv620> بِّ [cv62=0]</p> |
| 48 |
|
| 49 |
<p class=cv622> بِّ [cv62=2]</p> |
| 50 |
|
| 51 |
</body> |
| 52 |
</html> |