From 8a40b03d55a6d9cde7db924b0b8627e41dbc1d08 Mon Sep 17 00:00:00 2001 From: Haibao Tang Date: Thu, 29 Feb 2024 22:44:04 -0800 Subject: [PATCH] Add "Liberation Sans" as a supported font (thanks @alpapan, #629) (#633) * Add genomepy as dep * Add "Liberation Sans" as a supported font (thanks @alpapan, #629) --- jcvi/apps/base.py | 9 ++++++++- setup.cfg | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/jcvi/apps/base.py b/jcvi/apps/base.py index b1734073..e68805ae 100644 --- a/jcvi/apps/base.py +++ b/jcvi/apps/base.py @@ -1,6 +1,7 @@ """ Basic support for running library as script """ + import errno import os import time @@ -539,7 +540,13 @@ def set_image_options( setup_theme, ) - allowed_fonts = ("Helvetica", "Palatino", "Schoolbook", "Arial") + allowed_fonts = ( + "Helvetica", + "Liberation Sans", + "Palatino", + "Schoolbook", + "Arial", + ) allowed_styles = ("darkgrid", "whitegrid", "dark", "white", "ticks") allowed_diverge = ( "BrBG", diff --git a/setup.cfg b/setup.cfg index ccff440e..af227ca2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,6 +42,7 @@ install_requires = ftpretty gffutils goatools + genomepy graphviz jinja2 matplotlib