summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-24 00:31:57 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-24 00:31:57 +0000
commitc2457cbc9315371f712321e7d0263883151eb196 (patch)
treebbd1189f7a484bdcaaccd2d38e1f32552bc43958 /crawl-ref/source/initfile.cc
parent01b9f925de89c9c68dc845da151011414e57cc92 (diff)
downloadcrawl-ref-c2457cbc9315371f712321e7d0263883151eb196.tar.gz
crawl-ref-c2457cbc9315371f712321e7d0263883151eb196.zip
More configurable fonts for Tiles.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6654 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc37
1 files changed, 37 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index b07a088383..0b1594d947 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -851,6 +851,18 @@ void game_options::reset_options()
tile_excluded_col = MAP_DKCYAN;
tile_excl_centre_col = MAP_DKBLUE;
tile_window_col = MAP_YELLOW;
+
+ // font selection
+ tile_font_crt_file = "VeraMono.ttf";
+ tile_font_crt_size = 15;
+ tile_font_stat_file = "VeraMono.ttf";
+ tile_font_stat_size = 16;
+ tile_font_msg_file = "VeraMono.ttf";
+ tile_font_msg_size = 14;
+ tile_font_tip_file = "VeraMono.ttf";
+ tile_font_tip_size = 15;
+ tile_font_lbl_file = "Vera.ttf";
+ tile_font_lbl_size = 14;
#endif
#ifdef WIN32TILES
@@ -2943,6 +2955,31 @@ void game_options::read_option_line(const std::string &str, bool runscript)
tile_window_col =
_str_to_tile_colour(field);
}
+ else if (key == "tile_font_crt_file")
+ {
+ tile_font_crt_file = field;
+ }
+ else INT_OPTION(tile_font_crt_size, 1, INT_MAX);
+ else if (key == "tile_font_msg_file")
+ {
+ tile_font_msg_file = field;
+ }
+ else INT_OPTION(tile_font_msg_size, 1, INT_MAX);
+ else if (key == "tile_font_stat_file")
+ {
+ tile_font_stat_file = field;
+ }
+ else INT_OPTION(tile_font_stat_size, 1, INT_MAX);
+ else if (key == "tile_font_tip_file")
+ {
+ tile_font_tip_file = field;
+ }
+ else INT_OPTION(tile_font_tip_size, 1, INT_MAX);
+ else if (key == "tile_font_lbl_file")
+ {
+ tile_font_lbl_file = field;
+ }
+ else INT_OPTION(tile_font_lbl_size, 1, INT_MAX);
#endif
#ifdef WIN32TILES