Permalink
Browse files

Added Oxygen Regular font

  • Loading branch information...
1 parent e21bd7a commit 683731fa6138fc2fa3ba6faa87b16a2f363f8c16 @tkrajina committed Apr 14, 2012
View
@@ -10,14 +10,14 @@
import utils as mod_utils
# use a truetype font
-DEFAULT_FONT_NAME = 'LiberationSansNarrow-Bold.ttf'
+DEFAULT_FONT_NAME = 'Oxygen-Regular.ttf'
# Remove main.py from package to get package location:
package_location = mod_main.__file__[ : mod_main.__file__.rfind( '/' ) ]
DEFAULT_FONT_LOCATION = package_location + mod_os.sep + 'fonts' + mod_os.sep + DEFAULT_FONT_NAME
-DEFAULT_FONT_SIZE = 11
+DEFAULT_FONT_SIZE = 10
class Axis( mod_main.CoordinateSystemElement ):
"""
Binary file not shown.
Binary file not shown.
@@ -1 +1,3 @@
-The Liberation Font is taken from: https://fedorahosted.org/liberation-fonts/
+The Oxygen font (Licenced under SIL Open Font License, 1.1 -- http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL) is taken from https://projects.kde.org/projects/playground/artwork/oxygen-fonts
+
+A TrueType font is needed because otherwise PIL can't scale the font to a arbitrary size. It is used for antialiasing.

0 comments on commit 683731f

Please sign in to comment.