aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiButton.cpp
diff options
context:
space:
mode:
authorv-rob <robinsonvincent89@gmail.com>2020-07-12 00:48:50 -0700
committerGitHub <noreply@github.com>2020-07-12 09:48:50 +0200
commit2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8 (patch)
tree591ae4dcce087d2fa2f4f295bdc2e4ab3725694d /src/gui/guiButton.cpp
parent1dd6c8ed7fc8b56385546437baa54d53b43a385f (diff)
downloadminetest-2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8.tar.gz
minetest-2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8.tar.bz2
minetest-2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8.zip
Add FormSpec font styling options (#9763)
* Add FormSpec font styling options * Change multiplication to stof * Remove extraneous check
Diffstat (limited to 'src/gui/guiButton.cpp')
-rw-r--r--src/gui/guiButton.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/guiButton.cpp b/src/gui/guiButton.cpp
index 6732a9233..e0d6337cd 100644
--- a/src/gui/guiButton.cpp
+++ b/src/gui/guiButton.cpp
@@ -788,6 +788,7 @@ void GUIButton::setFromStyle(const StyleSpec& style)
setNotClipped(style.getBool(StyleSpec::NOCLIP, false));
setDrawBorder(style.getBool(StyleSpec::BORDER, true));
setUseAlphaChannel(style.getBool(StyleSpec::ALPHA, true));
+ setOverrideFont(style.getFont());
if (style.isNotDefault(StyleSpec::BGIMG)) {
video::ITexture *texture = style.getTexture(StyleSpec::BGIMG,