Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 428de282 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ignore missing target font family during alias registration"

parents a279cb64 3fea923b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1075,6 +1075,11 @@ public class Typeface {
                continue; // If alias and named family are conflict, use named family.
            }
            final Typeface base = systemFontMap.get(alias.getToName());
            if (base == null) {
                // The missing target is a valid thing, some configuration don't have font files,
                // e.g. wear devices. Just skip this alias.
                continue;
            }
            final int weight = alias.getWeight();
            final Typeface newFace = weight == 400 ? base :
                    new Typeface(nativeCreateWeightAlias(base.native_instance, weight));