Document the supported 35 standard Postscript fonts in the Technical Reference section#3378
Document the supported 35 standard Postscript fonts in the Technical Reference section#3378
Conversation
doc/techref/fonts.md
Outdated
| PyGMT supports the standard 35 PostScript fonts. The table below lists the 35 fonts with | ||
| font number and the font name. | ||
|
|
||
| | Font Number | Font Name | Font Number | Font Name | |
There was a problem hiding this comment.
The table is added so that users can directly copy the font name. The figure is added so that users can choose the suitable font visually.
|
Highly appreciate that the codes are now listed directly on the PyGMT site @seisman. |
Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com>
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
doc/techref/fonts.md
Outdated
| |-------------|----------------------------|-------------|----------------------------| | ||
| | 0 | Helvetica | 17 | Bookman-Demi | | ||
| | 1 | Helvetica-Bold | 18 | Bookman-DemiItalic | | ||
| | 2 | Helvetica-Oblique | 19 | Bookman-Light | | ||
| | 3 | Helvetica-BoldOblique | 20 | Bookman-LightItalic | | ||
| | 4 | Times-Roman | 21 | Helvetica-Narrow | | ||
| | 5 | Times-Bold | 22 | Helvetica-Narrow-Bold | | ||
| | 6 | Times-Italic | 23 | Helvetica-Narrow-Oblique | | ||
| | 7 | Times-BoldItalic | 24 | Helvetica-Narrow-BoldOblique | | ||
| | 8 | Courier | 25 | NewCenturySchlbk-Roman | | ||
| | 9 | Courier-Bold | 26 | NewCenturySchlbk-Italic | | ||
| | 10 | Courier-Oblique | 27 | NewCenturySchlbk-Bold | | ||
| | 11 | Courier-BoldOblique | 28 | NewCenturySchlbk-BoldItalic| | ||
| | 12 | Symbol | 29 | Palatino-Roman | | ||
| | 13 | AvantGarde-Book | 30 | Palatino-Italic | | ||
| | 14 | AvantGarde-BookOblique | 31 | Palatino-Bold | | ||
| | 15 | AvantGarde-Demi | 32 | Palatino-BoldItalic | | ||
| | 16 | AvantGarde-DemiOblique | 33 | ZapfChancery-MediumItalic | | ||
| | | | 34 | ZapfDingbats | |
There was a problem hiding this comment.
I'm unsure if I should change the table to display three fonts per row, to save some vertical spaces.
There was a problem hiding this comment.
Just changed my mind, and now I think two fonts per row matches the figure below and is better.
| For all supported octal codes and fonts see the GMT Technical Reference | ||
| :gmt-docs:`reference/octal-codes.html` and | ||
| :gmt-docs:`reference/postscript-fonts.html`. |
There was a problem hiding this comment.
I prefer to remove this sentence because this gallery example should focus on "Typesetting text like symbols".
There was a problem hiding this comment.
Maybe we can reduce the sentence to:
For all supported fonts see :doc:`/techref/fonts`.
and move it up:
(less than 256 characters). Optionally, you can append
**+f**\ *font,outlinecolor* to select a particular font [Default is
:gmt-term:`FONT_ANNOT_PRIMARY`] and outline color [Default is black] as well
as **+j**\ *justify* to change the justification [Default is CM]. For all supported
fonts see :doc:`/techref/fonts`. The fill color of the text symbols can be set with
the ``fill`` parameter, and the outline width can be customized with the ``pen``
parameter.
doc/techref/fonts.md
Outdated
| |-------------|----------------------------|-------------|----------------------------| | ||
| | 0 | Helvetica | 17 | Bookman-Demi | | ||
| | 1 | Helvetica-Bold | 18 | Bookman-DemiItalic | | ||
| | 2 | Helvetica-Oblique | 19 | Bookman-Light | | ||
| | 3 | Helvetica-BoldOblique | 20 | Bookman-LightItalic | | ||
| | 4 | Times-Roman | 21 | Helvetica-Narrow | | ||
| | 5 | Times-Bold | 22 | Helvetica-Narrow-Bold | | ||
| | 6 | Times-Italic | 23 | Helvetica-Narrow-Oblique | | ||
| | 7 | Times-BoldItalic | 24 | Helvetica-Narrow-BoldOblique | | ||
| | 8 | Courier | 25 | NewCenturySchlbk-Roman | | ||
| | 9 | Courier-Bold | 26 | NewCenturySchlbk-Italic | | ||
| | 10 | Courier-Oblique | 27 | NewCenturySchlbk-Bold | | ||
| | 11 | Courier-BoldOblique | 28 | NewCenturySchlbk-BoldItalic| | ||
| | 12 | Symbol | 29 | Palatino-Roman | | ||
| | 13 | AvantGarde-Book | 30 | Palatino-Italic | | ||
| | 14 | AvantGarde-BookOblique | 31 | Palatino-Bold | | ||
| | 15 | AvantGarde-Demi | 32 | Palatino-BoldItalic | | ||
| | 16 | AvantGarde-DemiOblique | 33 | ZapfChancery-MediumItalic | | ||
| | | | 34 | ZapfDingbats | |
There was a problem hiding this comment.
Just changed my mind, and now I think two fonts per row matches the figure below and is better.
Description of proposed changes
Add the table of standard 35 postscript fonts to the Technical Reference, so that we don't have to visit the GMT documentation.
Preview:
xref: #2834