Skip to content

Commit

Permalink
updated utilityfunctions as the function used to list fonts is deprec…
Browse files Browse the repository at this point in the history
…ated
  • Loading branch information
KatyBrown committed May 13, 2024
1 parent 9ee480c commit 9b9dd11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CIAlign/utilityFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
except ImportError:
import palettes
matplotlib.use('Agg')

import logging
logging.getLogger('matplotlib.font_manager').disabled = True

def replaceUbyT(arr, rev):
'''
Expand Down Expand Up @@ -422,7 +423,8 @@ def listFonts(outfile):
matplotlib.font_manager._rebuild()
except AttributeError:
pass
flist = matplotlib.font_manager.get_fontconfig_fonts()
flist = matplotlib.font_manager.findSystemFonts(
fontpaths=None, fontext='ttf')
flist2 = set()
checkglyphs = [108, 112, 65, 71, 84, 67]
for fname in flist:
Expand Down

0 comments on commit 9b9dd11

Please sign in to comment.