Skip to content

Commit 49cc084

Browse files
committed
Use the system's fixed-width font in the **Memory Viewer** dialog for all platforms.
Previously, the system-defined, fixed-width font was used only for macOS; now the font is used on Windows and Linux too, as opposed to using some hardcoded font families that may not be available in the system.
1 parent 7e15e25 commit 49cc084

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Source/GUI/MemViewer/MemViewer.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,9 @@ void MemViewer::updateFontSize(int newSize)
372372
{
373373
m_memoryFontSize = newSize;
374374

375-
#ifdef __linux__
376-
setFont(QFont("Monospace", m_memoryFontSize));
377-
#elif _WIN32
378-
setFont(QFont("Courier New", m_memoryFontSize));
379-
#elif __APPLE__
380375
QFont fixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
381376
fixedFont.setPointSize(m_memoryFontSize);
382377
setFont(fixedFont);
383-
#endif
384378

385379
m_charWidthEm = fontMetrics().horizontalAdvance(QLatin1Char('M'));
386380
m_charHeight = fontMetrics().height();

0 commit comments

Comments
 (0)