diff --git a/pygal/css/base.css b/pygal/css/base.css index af27119..dd380b2 100644 --- a/pygal/css/base.css +++ b/pygal/css/base.css @@ -23,32 +23,32 @@ */ {{ id }}.title { - font-family: monospace; + font-family: {{ style.font_family }}; font-size: {{ font_sizes.title }}; } {{ id }}.legends .legend text { - font-family: monospace; + font-family: {{ style.font_family }}; font-size: {{ font_sizes.legend }}; } {{ id }}.axis text { - font-family: monospace; + font-family: {{ style.font_family }}; font-size: {{ font_sizes.label }}; } {{ id }}.axis text.major { - font-family: monospace; + font-family: {{ style.font_family }}; font-size: {{ font_sizes.major_label }}; } {{ id }}.series text { - font-family: monospace; + font-family: {{ style.font_family }}; font-size: {{ font_sizes.value }}; } {{ id }}.tooltip text { - font-family: monospace; + font-family: {{ style.font_family }}; font-size: {{ font_sizes.tooltip }}; } diff --git a/pygal/style.py b/pygal/style.py index 379256d..d56a5c0 100644 --- a/pygal/style.py +++ b/pygal/style.py @@ -35,6 +35,7 @@ class Style(object): foreground='#999', foreground_light='#eee', foreground_dark='#555', + font_family='monospace', opacity='.8', opacity_hover='.9', transition='250ms',