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>();