Skip to content

Commit

Permalink
Fix the order of fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Aug 23, 2024
1 parent fc76676 commit 3878dd0
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions doc/techref/fonts.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The image below the table shows a visual sample for each font.
---
tags: [remove-input]
---
from IPython.display import display, Markdown
fonts = [
"Helvetica",
Expand All @@ -34,37 +35,29 @@ fonts = [
"AvantGarde-BookOblique",
"AvantGarde-Demi",
"AvantGarde-DemiOblique",
"Bookman-Light",
"Bookman-LightItalic",
"Bookman-Demi",
"Bookman-DemiItalic",
"Bookman-Light",
"Bookman-LightItalic",
"Helvetica-Narrow",
"Helvetica-Narrow-Bold",
"Helvetica-Narrow-Oblique",
"Helvetica-Narrow-BoldOblique",
"NewCenturySchlbk-Roman",
"NewCenturySchlbk-Bold",
"NewCenturySchlbk-Italic",
"NewCenturySchlbk-Bold",
"NewCenturySchlbk-BoldItalic",
"Palatino-Roman",
"Palatino-Bold",
"Palatino-Italic",
"Palatino-Bold",
"Palatino-BoldItalic",
"ZapfChancery-MediumItalic",
"ZapfDingbats",
]
```

```{code-cell}
---
tags: [remove-input]
---
from IPython.display import display, Markdown
text = "|Font No. | Font Name | Font No. | Font Name |\n"
text += "|:---:|:---|:---:|:---|\n"
for i in range(0, 17):
for i in range(17):
j = i + 17
text += f"| {i} | {fonts[i]} | {j} | {fonts[j]} |\n"
text += f"| | | 34 | {fonts[34]}\n"
Expand Down

0 comments on commit 3878dd0

Please sign in to comment.