MCPcopy Create free account
hub / github.com/HumbleUI/Skija / matchFamiliesStyleCharacter

Method matchFamiliesStyleCharacter

shared/java/FontMgr.java:118–128  ·  view source on GitHub ↗
(@NotNull String[] families, @NotNull FontStyle style, @Nullable String[] bcp47, int character)

Source from the content-addressed store, hash-verified

116 }
117
118 @Nullable
119 public Typeface matchFamiliesStyleCharacter(@NotNull String[] families, @NotNull FontStyle style, @Nullable String[] bcp47, int character) {
120 assert Arrays.stream(bcp47).allMatch(Objects::nonNull) : "Can't matchFamiliesStyleCharacter with null bcp47 elements";
121 for (String family: families) {
122 Typeface typeface = matchFamilyStyleCharacter(family, style, bcp47, character);
123 if (typeface != null) {
124 return typeface;
125 }
126 }
127 return null;
128 }
129
130 /**
131 * Create a typeface for the specified file name or null if the data is not recognized.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected