mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Font size fix code app
This commit is contained in:
@@ -58,7 +58,7 @@ void EditorView::GutterView::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
|
||||
ctx->fillRect(rect, backgroundColor);
|
||||
|
||||
KDSize glyphSize = Poincare::Preferences::sharedPreferences()->KDPythonFont()->glyphSize();
|
||||
KDSize glyphSize = m_font->glyphSize();
|
||||
|
||||
KDCoordinate firstLine = m_offset / glyphSize.height();
|
||||
KDCoordinate firstLinePixelOffset = m_offset - firstLine * glyphSize.height();
|
||||
@@ -72,7 +72,7 @@ void EditorView::GutterView::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
ctx->drawString(
|
||||
lineNumber,
|
||||
KDPoint(k_margin + leftPadding, i*glyphSize.height() - firstLinePixelOffset),
|
||||
Poincare::Preferences::sharedPreferences()->KDPythonFont(),
|
||||
m_font,
|
||||
textColor,
|
||||
backgroundColor
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user