From d1601e51c9e21ca5d356d8c7fac16214421cbc5a Mon Sep 17 00:00:00 2001 From: "geortz@gmail.com" Date: Thu, 11 Sep 2014 20:36:28 +0000 Subject: [PATCH] updated styles git-svn-id: https://callirhoe.googlecode.com/svn/trunk@115 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df --- style/bw_sparse_gfs.py | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 style/bw_sparse_gfs.py diff --git a/style/bw_sparse_gfs.py b/style/bw_sparse_gfs.py new file mode 100644 index 0000000..ad06013 --- /dev/null +++ b/style/bw_sparse_gfs.py @@ -0,0 +1,53 @@ +# callirhoe - high quality calendar rendering +# Copyright (C) 2012 George M. Tzoumas + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/ + +# --- style.bw_sparse_gfs --- + +"""module defining Greek Font Society fonts for black & white sparse style""" + +import bw_sparse as base + +# day of week +class dow(base.dow): + font = "GFS Neohellenic" + +# day of month +class dom(base.dom): + font = "GFS Bodoni" + header_font = footer_font = "GFS Elpis" + +class dom_weekend(base.dom_weekend): + font = ("GFS Bodoni", 0, 1) + header_font = footer_font = "GFS Elpis" + +class dom_holiday(base.dom_holiday): + font = ("GFS Bodoni",) + header_font = footer_font = "GFS Elpis" + +class dom_weekend_holiday(base.dom_weekend_holiday): + font = "GFS Bodoni" + header_font = footer_font = "GFS Elpis" + +class dom_multi(base.dom_multi): + font = ("GFS Bodoni",) + header_font = footer_font = "GFS Elpis" + +class dom_weekend_multi(base.dom_weekend_multi): + font = "GFS Bodoni" + header_font = footer_font = "GFS Elpis" + +class month(base.month): + font = ("GFS Artemisia", 0, 1)