(@NotNull String[] families, @NotNull FontStyle style, @Nullable String[] bcp47, int character)
| 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. |
nothing calls this directly
no test coverage detected