15#include <AUI/Common/AMap.h>
56 if (
auto& f = get(NORMAL, italic)) {
62 template<
bool italicPrefer>
63 _<AFont> getEitherWeightItalicPreferred() {
64 if (
auto f = getEitherWeight<italicPrefer>()) {
67 return getEitherWeight<!italicPrefer>();
71 _<AFont>& get(Weight weight,
bool isItalic) {
72 auto& r = mFonts[weight];
73 return isItalic ? r.italic : r.nonItalic;
82 if (italicPreferred) {
83 return getEitherWeightItalicPreferred<true>();
85 return getEitherWeightItalicPreferred<false>();
Definition: AFontFamily.h:19
_< AFont > getEither(bool italicPreferred=false)
Definition: AFontFamily.h:81
An std::weak_ptr with AUI extensions.
Definition: SharedPtrTypes.h:177