Lines Matching defs:family

227             // family is FontFamilyFilesResourceEntry
465 * Sets a fallback family name.
467 * By specifying a fallback family name, a fallback Typeface will be returned if the
469 * family will be resolved with the provided weight and italic information specified by
472 * If {@link #setWeight} is not called, the fallback family keeps the default weight.
473 * Similary, if {@link #setItalic} is not called, the fallback family keeps the default
481 * @param familyName A family name to be used for fallback if the provided font can not be
665 * Create a typeface object given a family name, and option style information.
670 * @param familyName May be null. The name of the font family.
685 * style from the same family of an existing typeface object. If family is
686 * null, this selects from the default font's family.
688 * @param family May be null. The name of the existing type face.
693 public static Typeface create(Typeface family, int style) {
698 if (family != null) {
700 if (family.mStyle == style) {
701 return family;
704 ni = family.native_instance;
728 public static Typeface createFromTypefaceWithVariation(@Nullable Typeface family,
730 final long ni = family == null ? 0 : family.native_instance;
855 * @param weight the weight for this family. {@link RESOLVE_BY_FONT_TABLE} can be used. In that
856 * case, the table information in the first family's font is used. If the first
857 * family has multiple fonts, the closest to the regular weight and upright font
859 * @param italic the italic information for this family. {@link RESOLVE_BY_FONT_TABLE} can be
860 * used. In that case, the table information in the first family's font is used.
861 * If the first family has multiple fonts, the closest to the regular weight and
888 private static FontFamily makeFamilyFromParsed(FontConfig.Family family,
890 FontFamily fontFamily = new FontFamily(family.getLanguage(), family.getVariant());
891 for (FontConfig.Font font : family.getFonts()) {
913 Log.e(TAG, "Unable to load Family: " + family.getName() + ":" + family.getLanguage());
940 FontFamily family = makeFamilyFromParsed(f, bufferForPath);
941 if (family != null) {
942 familyList.add(family);
982 Log.w(TAG, "Didn't create default family (most likely, non-Minikin build)", e);