From c5668d9300a78fb7d459b53fb2f9d03a418fd63b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 29 Oct 2018 21:20:16 -0700 Subject: GLK: Further configuration fixes --- engines/gargoyle/conf.cpp | 2 +- engines/gargoyle/fonts.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/gargoyle/conf.cpp b/engines/gargoyle/conf.cpp index 553f02cb07..7e11a2f295 100644 --- a/engines/gargoyle/conf.cpp +++ b/engines/gargoyle/conf.cpp @@ -89,7 +89,7 @@ Conf::Conf() { get("propi", _propI); get("propz", _propZ); get("propfont", _propFont, "Linux Libertine O"); - get("leading", _leading, 20); + get("leading", _leading, 8); get("baseline", _baseLine, 15); get("rows", _rows, 25); get("cols", _cols, 60); diff --git a/engines/gargoyle/fonts.cpp b/engines/gargoyle/fonts.cpp index bcb129ccc7..307144b1b2 100644 --- a/engines/gargoyle/fonts.cpp +++ b/engines/gargoyle/fonts.cpp @@ -65,6 +65,9 @@ Fonts::Fonts(Graphics::ManagedSurface *surface) : _surface(surface) { _fontTable[5] = loadFont(PROPB, propSize, propAspect, FONTB); _fontTable[6] = loadFont(PROPI, propSize, propAspect, FONTI); _fontTable[7] = loadFont(PROPZ, propSize, propAspect, FONTZ); + + g_conf->_cellW = _fontTable[0]->getStringWidth("0"); + g_conf->_cellH = _fontTable[0]->getFontHeight(); } Fonts::~Fonts() { -- cgit v1.2.3