[apps/code] Add PythonFont preferences as the python font size in code

This commit is contained in:
AD Simmons
2019-12-29 16:24:23 -05:00
parent d702978eba
commit cdfb1f724b
7 changed files with 17 additions and 17 deletions

View File

@@ -5,6 +5,7 @@
#include <apps/i18n.h>
#include <assert.h>
#include <escher/metric.h>
#include <poincare/preferences.h>
#include "../apps_container.h"
extern "C" {
@@ -27,7 +28,7 @@ ConsoleController::ConsoleController(Responder * parentResponder, App * pythonDe
TextFieldDelegate(),
MicroPython::ExecutionEnvironment(),
m_pythonDelegate(pythonDelegate),
m_rowHeight(k_font->glyphSize().height()),
m_rowHeight(Poincare::Preferences::sharedPreferences()->KDPythonFont()->glyphSize().height()),
m_importScriptsWhenViewAppears(false),
m_selectableTableView(this, this, this, this),
m_editCell(this, pythonDelegate, this),