Lines Matching defs:locales
1334 * the order those locales appear in the list is considered for deciding the font.
1341 * system locales. This assumes that the text to be rendered will most likely be in the user's
1347 * the text locale here. Specifying the text locales just helps it do a better
1350 * @param locales the paint's locale list for drawing text, must not be null or empty.
1352 public void setTextLocales(@NonNull @Size(min=1) LocaleList locales) {
1353 if (locales == null || locales.isEmpty()) {
1354 throw new IllegalArgumentException("locales cannot be null or empty");
1356 if (locales.equals(mLocales)) return;
1357 mLocales = locales;
2791 private static native int nSetTextLocales(long paintPtr, String locales);