Lines Matching refs:family

579     public Font2DHandle getNewComposite(String family, int style,
589 if (family == null) {
590 family = oldFont.getFamilyName(null);
596 Font2D newFont = findFont2D(family, style, NO_FALLBACK);
683 FontFamily family = FontFamily.getFamily(f.familyName);
684 if (family == null) {
685 family = new FontFamily(f.familyName, true, rank);
687 family.setFont(f, f.style);
741 FontFamily family = FontFamily.getFamily(familyName);
742 if (family == null) {
743 family = new FontFamily(familyName, false, rank);
744 family.setFont(f, f.style);
746 family.setFont(f, f.style);
832 FontFamily family = FontFamily.getFamily(familyName);
833 if (family == null) {
834 family = new FontFamily(familyName, false, rank);
835 family.setFont(newFont, newFont.style);
837 family.setFont(newFont, newFont.style);
1263 * Map from lower-case font full name to the name of its font family
1269 * Map from a lower-case family name to a list of full names of
1455 ArrayList<String> family = familyToFontListMap.get(familyName);
1456 if (family != null) {
1457 if (family.size() <= 1) {
1530 String family = f.getFamilyName(null);
1531 String familyLC = family.toLowerCase();
1532 fontToFamilyNameMap2.put(fontName, family);
1592 * word in the name of the family as the key. In all the cases
1593 * we are using the family name is a single word, and as is
1594 * more or less required the family name is the initial sequence
1596 * then registers the whole family, returning the right font.
1640 * a full name, or the family name, to make sure its not
1758 * non-existent font, such as "Tahoma Italic", or a family name -
1759 * where family and full name of the plain font differ.
1760 * Fall back to finding the closest one in the family.
1817 logger.info("font="+keyName+" family="+
1821 logger.info("family="+keyName+ " fonts="+
1933 * lcName may be a full name, or a family name, and style may
1938 * so we register the entire family if we get a match here.
1957 ArrayList<String> family = null;
1962 family = familyToFontListMap.get
1965 family = familyToFontListMap.get(lcName); // is lcName is a family?
1966 if (family != null && family.size() > 0) {
1967 String lcFontName = family.get(0).toLowerCase(Locale.ENGLISH);
1973 if (family == null || familyName == null) {
1976 String [] fontList = family.toArray(STR_ARRAY);
1981 /* first check that for every font in this family we can find
1989 * if we all members of a family that we may end up mapping to
1999 fontList[f] + " in family " +familyName);
2014 /* Register all fonts in this family. */
2048 * The name could be a family name, or a full name.
2111 /* First see if its a family name. */
2112 FontFamily family = FontFamily.getFamily(name);
2113 if (family != null) {
2114 font = family.getFontWithExactStyleMatch(style);
2119 font = family.getFont(style);
2122 font = family.getClosestStyle(style);
2130 /* If it wasn't a family name, it should be a full name of
2154 * that family before trying to load all fonts, or applying a
2157 family = FontFamily.getFamily(font.getFamilyName(null));
2158 if (family != null) {
2159 Font2D familyFont = family.getFont(style|font.style);
2170 familyFont = family.getClosestStyle(style|font.style);
2176 * see if somehow some parts of the family are
2275 * Just as for installed fonts we check for family before fullname.
2301 family = familyTable.get(lowerCaseName);
2302 if (family != null) {
2303 font = family.getFontWithExactStyleMatch(style);
2305 font = family.getFont(style);
2308 font = family.getClosestStyle(style);
2354 * supporting returning names and family names for arbitrary locales,
2688 FontFamily family = FontFamily.getFamily(ttf.familyName);
2689 if (family != null) {
2690 FontFamily.addLocaleNames(family, ttf.getAllFamilyNames());
2720 /* First see if its a family name. */
2721 FontFamily family = FontFamily.getLocaleFamily(lowerCaseName);
2722 if (family != null) {
2723 font = family.getFont(style);
2725 font = family.getClosestStyle(style);
2732 /* If it wasn't a family name, it should be a full name. */
2740 family = FontFamily.getFamily(font.getFamilyName(null));
2741 if (family != null) {
2742 Font2D familyFont = family.getFont(style);
2747 familyFont = family.getClosestStyle(style);
2753 * see if somehow some parts of the family are
3014 * - family name is not that of an installed font
3016 * - family name is not the same as the full name of an installed font
3017 * - full name is not the same as the family name of an installed font
3021 * family name "Dialog.Plain" and full name of "Dialog".
3023 * application wants to supply a new member of an existing family
3067 FontFamily family = familyTable.get(familyName);
3068 if (family == null) {
3069 family = new FontFamily(font.getFamily(l));
3070 familyTable.put(familyName, family);
3074 * family member and then used it and is now registering a bold family
3075 * member, we need to remove all members of the family, so that the
3079 removeFromCache(family.getFont(Font.PLAIN));
3080 removeFromCache(family.getFont(Font.BOLD));
3081 removeFromCache(family.getFont(Font.ITALIC));
3082 removeFromCache(family.getFont(Font.BOLD|Font.ITALIC));
3085 family.setFont(font2D, style);
3758 /* Platform APIs may be used to get the set of available family
3764 /* Augment platform names with JRE font family names */
3778 // Add any native font family names here
3794 // Provides an aperture to add native font family names to the map
3809 /* Really we need only the JRE fonts family names, but there's little
3847 * important because Windows documents that the family
3918 protected FontUIResource getFontConfigFUIR(String family, int style,
3921 return new FontUIResource(family, style, size);