Skip to content

Commit

Permalink
[css-fonts-4] Add more generics samples #8128
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Dec 21, 2023
1 parent c5fc542 commit 78cbe41
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions css-fonts-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,11 @@ Generic font families</h4>
Note: ''generic(fangsong)'' might not map to any locally installed font,
but if it does, that font will be in Fang Song style.

<figure>
<img style="width:75vw" alt="" src="images/fangsong.svg">
<figcaption>Chinese text displayed with sample fang song fonts</figcaption>
</figure>

<dt id="generic(kai)-def"><dfn>generic(kai)</dfn>
<dd>
This font family is used in
Expand All @@ -644,6 +649,11 @@ Generic font families</h4>

Note: ''generic(kai)'' might not map to any locally installed font,
but if it does, that font will be in Kai style.

<figure>
<img style="width:75vw" alt="" src="images/kaiti.svg">
<figcaption>Chinese text displayed with sample kai fonts</figcaption>
</figure>
</dd>

<dt id="generic(nastaliq)-def"><dfn>generic(nastaliq)</dfn>
Expand All @@ -661,12 +671,12 @@ Generic font families</h4>
but if it does, that font will be in Nastaliq style.

<figure>
<img style="width:40vw" alt="السلام علیکم" src="images/urdu-nastaliq.svg">
<img style="width:25vw" alt="السلام علیکم" src="images/urdu-nastaliq.svg">
<figcaption>Urdu text displayed with a sample nastaliq font (Noto Nastaliq Urdu)</figcaption>
</figure>

<figure>
<img style="width:40vw" alt="السلام علیکم" src="images/urdu-naskh.svg">
<img style="width:25vw" alt="السلام علیکم" src="images/urdu-naskh.svg">
<figcaption>Urdu text displayed with a fallback naskh font (Scheherazade New)</figcaption>
</figure>

Expand Down
1 change: 1 addition & 0 deletions css-fonts-4/images/fangsong.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions css-fonts-4/images/kaiti.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 78cbe41

Please sign in to comment.