Skip to content

Commit

Permalink
Update font for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Jan 3, 2020
1 parent 611c90f commit c56254f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion colosseum/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys

from .validators import (ValidationError, is_color, is_font_family,
Expand Down Expand Up @@ -333,12 +334,16 @@ def __str__(self):

def available_font_families():
"""List available font family names."""
# TODO: for tests
if os.environ.get('GITHUB_ACTIONS', None) == 'true':
return ['Arial Black']

if sys.platform == 'darwin':
return _available_font_families_mac()
elif sys.platform.startswith('linux'):
return _available_font_families_unix()

return [] # TODO: for tests
return []


def _available_font_families_mac():
Expand Down

0 comments on commit c56254f

Please sign in to comment.