diff options
author | v-rob <robinsonvincent89@gmail.com> | 2020-07-12 00:48:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 09:48:50 +0200 |
commit | 2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8 (patch) | |
tree | 591ae4dcce087d2fa2f4f295bdc2e4ab3725694d /src/gui/guiButton.cpp | |
parent | 1dd6c8ed7fc8b56385546437baa54d53b43a385f (diff) | |
download | minetest-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.cpp | 1 |
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,
|