gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 0d0e0006d1982132612a112aab6bac09692a337a
parent 5518b75f85e0d737e60975e0613a6e71fa1f0e09
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 15 Mar 2022 21:01:24 +0100

support bold & italic font styles

Diffstat:
Msource/jucePlugin/genericUI/uiObjectStyle.cpp | 5+++++
Msource/jucePlugin/genericUI/uiObjectStyle.h | 2++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/source/jucePlugin/genericUI/uiObjectStyle.cpp b/source/jucePlugin/genericUI/uiObjectStyle.cpp @@ -70,6 +70,9 @@ namespace genericUI } m_align = m_align.getFlags() | a.getFlags(); } + + m_bold = _object.getPropertyInt("bold") != 0; + m_italic = _object.getPropertyInt("italic") != 0; } juce::Font UiObjectStyle::getComboBoxFont(juce::ComboBox& _comboBox) @@ -104,5 +107,7 @@ namespace genericUI { if(m_textHeight) _font.setHeight(static_cast<float>(m_textHeight)); + _font.setBold(m_bold); + _font.setItalic(m_italic); } } diff --git a/source/jucePlugin/genericUI/uiObjectStyle.h b/source/jucePlugin/genericUI/uiObjectStyle.h @@ -33,5 +33,7 @@ namespace genericUI std::string m_text; juce::Colour m_color = juce::Colour(0xffffffff); juce::Justification m_align = 0; + bool m_bold = false; + bool m_italic = false; }; }