Skip to content

Commit 95d5ad9

Browse files
committed
Remove example of small-caps font
1 parent 0b77d03 commit 95d5ad9

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

scripts/fonts.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,10 @@
1111

1212
fig = plt.figure(figsize=(4.25, 3.8))
1313
ax = fig.add_axes([0, 0, 1, 1], frameon=False, xticks=[], yticks=[],
14-
xlim=[0, 40], ylim=[0, 38])
14+
xlim=[0, 40], ylim=[0, 34])
1515

1616
y = 1
1717

18-
# -----------------------------------------------------------------------------
19-
variants = {
20-
"normal" : "../fonts/eb-garamond/EBGaramond08-Regular.otf",
21-
"small-caps" : "../fonts/eb-garamond/EBGaramondSC08-Regular.otf"
22-
}
23-
24-
text = "The quick brown fox jumps over the lazy dog"
25-
for i, (variant, file) in enumerate(variants.items()):
26-
ax.text(1, y, text, size=9, va="center", font=pathlib.Path(file).resolve())
27-
28-
ax.text(39, y, variant,
29-
color="0.25", va="center", ha="right",
30-
size="small", family="Source Code Pro", weight=400)
31-
y += 1.65
32-
y += 1
33-
3418
# -----------------------------------------------------------------------------
3519
styles = ["normal", "italic"]
3620

0 commit comments

Comments
 (0)