File tree Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ Files: src/qt/res/icons/proxy.png
87
87
Copyright: Cristian Mircea Messel
88
88
License: public-domain
89
89
90
+ Files: src/qt/fonts/RobotoMono-Bold.ttf
91
+ License: Apache-2.0
92
+ Comment: Site: https://fonts.google.com/specimen/Roboto+Mono
93
+
90
94
91
95
License: Expat
92
96
Permission is hereby granted, free of charge, to any person obtaining a
@@ -144,3 +148,14 @@ Comment:
144
148
145
149
License: public-domain
146
150
This work is in the public domain.
151
+
152
+ License: Apache-2.0
153
+ Licensed under the Apache License, Version 2.0 (the "License");
154
+ you may not use this file except in compliance with the License.
155
+ You may obtain a copy of the License at
156
+ http://www.apache.org/licenses/LICENSE-2.0
157
+ Unless required by applicable law or agreed to in writing, software
158
+ distributed under the License is distributed on an "AS IS" BASIS,
159
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
160
+ See the License for the specific language governing permissions and
161
+ limitations under the License.
Original file line number Diff line number Diff line change @@ -164,6 +164,9 @@ BITCOIN_QT_H = \
164
164
qt/walletview.h \
165
165
qt/winshutdownmonitor.h
166
166
167
+ RES_FONTS = \
168
+ qt/res/fonts/RobotoMono-Bold.ttf
169
+
167
170
RES_ICONS = \
168
171
qt/res/icons/add.png \
169
172
qt/res/icons/address-book.png \
@@ -290,7 +293,7 @@ qt_libbitcoinqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
290
293
qt_libbitcoinqt_a_OBJCXXFLAGS = $(AM_OBJCXXFLAGS) $(QT_PIE_FLAGS)
291
294
292
295
qt_libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
293
- $(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(RES_ICONS) $(RES_ANIMATION)
296
+ $(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(RES_FONTS) $( RES_ICONS) $(RES_ANIMATION)
294
297
if TARGET_DARWIN
295
298
qt_libbitcoinqt_a_SOURCES += $(BITCOIN_MM)
296
299
endif
@@ -361,7 +364,7 @@ $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
361
364
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
362
365
@rm $(@D)/temp_$(<F)
363
366
364
- $(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_ANIMATION)
367
+ $(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_FONTS) $( RES_ICONS) $(RES_ANIMATION)
365
368
@test -f $(RCC)
366
369
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin $< | \
367
370
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
Original file line number Diff line number Diff line change 44
44
45
45
#include < QApplication>
46
46
#include < QDebug>
47
+ #include < QFontDatabase>
47
48
#include < QLibraryInfo>
48
49
#include < QLocale>
49
50
#include < QMessageBox>
@@ -475,6 +476,7 @@ int GuiMain(int argc, char* argv[])
475
476
#endif
476
477
477
478
BitcoinApplication app;
479
+ QFontDatabase::addApplicationFont (" :/fonts/monospace" );
478
480
479
481
// / 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
480
482
// Command-line options take precedence:
Original file line number Diff line number Diff line change 83
83
<file alias="spinner-034">res/animation/spinner-034.png</file>
84
84
<file alias="spinner-035">res/animation/spinner-035.png</file>
85
85
</qresource>
86
+ <qresource prefix="/fonts">
87
+ <file alias="monospace">res/fonts/RobotoMono-Bold.ttf</file>
88
+ </qresource>
86
89
</RCC>
You can’t perform that action at this time.
0 commit comments