Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 538eed7

Browse filesBrowse files
committed
Provide a 'cursive' font present in Windows' default font set.
See changelog. Admittedly the CSS example page is inconsistent with https://www.w3.org/TR/css-fonts-3/#generic-font-families which lists Comic Sans as *fantasy*, not *cursive*, but none of the other cursive fonts listed here is readily available. fontconfig also defaults to listing Comic Sans as cursive. The main intent is to make `text_labels_and_annotations/fonts_demo.py` runnable with no warnings if MS core fonts are installed (freely available and packaged on Linux e.g. as https://packages.debian.org/sid/ttf-mscorefonts-installer); in any case if someone really wants a cursive or fantasy font they'll likely have to pass the actual font family name anyways as there's too much variation in what "cursive" or "fantasy" means... (The original list of fonts comes from 41f1c49 but is not explained.)
1 parent 7d0cb13 commit 538eed7
Copy full SHA for 538eed7

File tree

Expand file treeCollapse file tree

2 files changed

+10
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-2
lines changed
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Changed cursive and fantasy font definitions
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
The Comic Sans and Comic Neue fonts were moved from the default :rc:`font.fantasy`
4+
list to the default :rc:`font.cursive` setting, in accordance with the CSS
5+
font families example_ and in order to provide a cursive font present in
6+
Microsoft's Core Fonts set.
7+
8+
.. _example: https://www.w3.org/Style/Examples/007/fonts.en.html

‎matplotlibrc.template

Copy file name to clipboardExpand all lines: matplotlibrc.template
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@
258258

259259
#font.serif: DejaVu Serif, Bitstream Vera Serif, Computer Modern Roman, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
260260
#font.sans-serif: DejaVu Sans, Bitstream Vera Sans, Computer Modern Sans Serif, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
261-
#font.cursive: Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, cursive
262-
#font.fantasy: Comic Neue, Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, xkcd, fantasy
261+
#font.cursive: Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, Comic Neue, Comic Sans MS, cursive
262+
#font.fantasy: Chicago, Charcoal, Impact, Western, Humor Sans, xkcd, fantasy
263263
#font.monospace: DejaVu Sans Mono, Bitstream Vera Sans Mono, Computer Modern Typewriter, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
264264

265265

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.