Skip to content

Commit

Permalink
Don't provide fallback families.
Browse files Browse the repository at this point in the history
Pango seems to do a better job at this.
  • Loading branch information
jrfonseca committed Nov 23, 2024
1 parent d4785bb commit e640618
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions xdot/ui/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,43 +107,43 @@ def get_text(self):
# easy way to do that
fontname_map = {
# PostScript Level 1
'Courier': 'Courier,monospace',
'Courier-Bold': 'Courier,monospace Bold',
'Courier-Oblique': 'Courier,monospace Oblique',
'Courier-BoldOblique': 'Courier,monospace Bold Oblique',
'Helvetica': 'Helvetica,sans',
'Helvetica-Bold': 'Helvetica,sans Bold',
'Helvetica-Oblique': 'Helvetica,sans Oblique',
'Helvetica-BoldOblique': 'Helvetica,sans Bold Oblique',
'Times-Roman': 'Times,serif Roman',
'Times-Bold': 'Times,serif Bold',
'Times-Italic': 'Times,serif Italic',
'Times-BoldItalic': 'Times,serif Bold Italic',
'Symbol': 'Symbol,fantasy',
'Courier': 'Courier',
'Courier-Bold': 'Courier Bold',
'Courier-Oblique': 'Courier Oblique',
'Courier-BoldOblique': 'Courier Bold Oblique',
'Helvetica': 'Helvetica',
'Helvetica-Bold': 'Helvetica Bold',
'Helvetica-Oblique': 'Helvetica Oblique',
'Helvetica-BoldOblique': 'Helvetica Bold Oblique',
'Times-Roman': 'Times Roman',
'Times-Bold': 'Times Bold',
'Times-Italic': 'Times Italic',
'Times-BoldItalic': 'Times Bold Italic',
'Symbol': 'Symbol',

# PostScript Level 2
'AvantGarde-Book': 'AvantGarde,sans Book',
'AvantGarde-BookOblique': 'AvantGarde,sans Book Oblique',
'AvantGarde-Demi': 'AvantGarde,sans Demi',
'AvantGarde-DemiOblique': 'AvantGarde,sans Demi Oblique',
'Bookman-Demi': 'Bookman,serif Demi',
'Bookman-DemiItalic': 'Bookman,serif Demi Italic',
'Bookman-Light': 'Bookman,serif Light',
'Bookman-LightItalic': 'Bookman,serif Light Italic',
'Helvetica-Narrow': 'Helvetica,sans Condensed',
'Helvetica-Narrow-Bold': 'Helvetica,sans Condensed Bold',
'Helvetica-Narrow-Oblique': 'Helvetica,sans Condensed Oblique',
'Helvetica-Narrow-BoldOblique': 'Helvetica,sans Condensed Bold Oblique',
'NewCenturySchlbk-Bold': 'NewCenturySchlbk,serif Bold',
'NewCenturySchlbk-BoldItalic': 'NewCenturySchlbk,serif Bold Italic',
'NewCenturySchlbk-Italic': 'NewCenturySchlbk,serif Italic',
'NewCenturySchlbk-Roman': 'NewCenturySchlbk,serif Roman',
'Palatino-Bold': 'Palatino,serif Bold',
'Palatino-BoldItalic': 'Palatino,serif Bold Italic',
'Palatino-Italic': 'Palatino,serif Italic',
'Palatino-Roman': 'Palatino,serif Roman',
'AvantGarde-Book': 'AvantGarde Book',
'AvantGarde-BookOblique': 'AvantGarde Book Oblique',
'AvantGarde-Demi': 'AvantGarde Demi',
'AvantGarde-DemiOblique': 'AvantGarde Demi Oblique',
'Bookman-Demi': 'Bookman Demi',
'Bookman-DemiItalic': 'Bookman Demi Italic',
'Bookman-Light': 'Bookman Light',
'Bookman-LightItalic': 'Bookman Light Italic',
'Helvetica-Narrow': 'Helvetica Condensed',
'Helvetica-Narrow-Bold': 'Helvetica Condensed Bold',
'Helvetica-Narrow-Oblique': 'Helvetica Condensed Oblique',
'Helvetica-Narrow-BoldOblique': 'Helvetica Condensed Bold Oblique',
'NewCenturySchlbk-Bold': 'NewCenturySchlbk Bold',
'NewCenturySchlbk-BoldItalic': 'NewCenturySchlbk Bold Italic',
'NewCenturySchlbk-Italic': 'NewCenturySchlbk Italic',
'NewCenturySchlbk-Roman': 'NewCenturySchlbk Roman',
'Palatino-Bold': 'Palatino Bold',
'Palatino-BoldItalic': 'Palatino Bold Italic',
'Palatino-Italic': 'Palatino Italic',
'Palatino-Roman': 'Palatino Roman',
'ZapfChancery-MediumItalic': 'ZapfChancery Medium Italic',
'ZapfDingbats': 'ZapfDingbats,fantasy',
'ZapfDingbats': 'ZapfDingbats',
}


Expand Down

0 comments on commit e640618

Please sign in to comment.