Apply the specified TypeFace to the date font
OPTIONAL

@param fontName Name of the date font to be generated
516981
public void setDateTypeFace(String fontName) {
        mDateTypeFace = Typeface.createFromAsset(mContext.getAssets(), "fonts/" + fontName);
        mDateTypeFaceSet = true;
    }
677182
public void setFont(Font font) {
		if (isInitialized) {
			dateEditor.getUiComponent().setFont(font);
			jcalendar.setFont(font);
		}
		super.setFont(font);
	}
1361770
public void registerFont (String name, java.awt.Font font) {
    if (font == null) throw new NullPointerException();
    fonts.put(name, font);
  }
1212033
public static Font setFontStyle(Font font, short color, short fontSize, String fontName) {
		if(color > 0) {
			font.setColor(color);
		}
		if(fontSize > 0) {
			font.setFontHeightInPoints(fontSize);
		}
		if(StrUtil.isNotBlank(fontName)) {
			font.setFontName(fontName);
		}
		return font;
	}
537946
public final void setTypeName(final String typeName) {
        if (typeName == null) {
            type = LOOKING_AT;
        } else if (typeName.equalsIgnoreCase(TYPES[0])) {
            type = MATCHES;
        } else if (typeName.equalsIgnoreCase(TYPES[1])) {
            type = LOOKING_AT;
        } else if (typeName.equalsIgnoreCase(TYPES[2])) {
            type = FIND;
        }
    }
1113081
public void setFontOptions(FontOptions fontOptions)
	{
		checkNotNull(fontOptions);
		buildLines = this.fontOptions.isBold() != fontOptions.isBold() || this.fontOptions.getFontScale() != fontOptions.getFontScale();
		this.fontOptions = fontOptions;
	}
1202351
public static FontData getPlain(String familyName) {
		FontData data = (FontData) plain.get(familyName);
		
		return data;
	}
520192
private void updateFontButton(@Nonnull final JButton button, @Nonnull final Font font) {
    final String strStyle;
    if (font.isBold()) {
      strStyle = font.isItalic() ? "bolditalic" : "bold"; //NOI18N
    } else {
      strStyle = font.isItalic() ? "italic" : "plain"; //NOI18N
    }

    button.setText(font.getName() + ", " + strStyle + ", " + font.getSize()); //NOI18N
  }
447308
private static void applyTypeface(ViewGroup viewGroup, TypefaceCollection typefaceCollection) {

		for (int i = 0; i < viewGroup.getChildCount(); i++) {
			View childView = viewGroup.getChildAt(i);
			if (childView instanceof ViewGroup) {
				applyTypeface((ViewGroup) childView, typefaceCollection);
			} else {
				applyForView(childView, typefaceCollection);
			}
		}
	}
877741
public static void styleEditable(@NonNull Context ctx,
                                     @Nullable HashMap<String, ITypeface> fonts,
                                     @NonNull Editable textSpanned,
                                     @Nullable List<CharacterStyle> styles,
                                     @Nullable HashMap<String, List<CharacterStyle>> stylesFor) {
        fonts = init(ctx, fonts);

        //find all icons which should be replaced with the iconFont
        List<StyleContainer> styleContainers = IconicsUtils.findIconsFromEditable(textSpanned, fonts);

        //set all the icons and styles
        IconicsUtils.applyStyles(ctx, textSpanned, styleContainers, styles, stylesFor);
    }
1312966
protected void setFontVariant(String newFontVariant)
    {
        if (fontVariant == null || !fontVariant.equals(newFontVariant))
        {
            FontVariant val[] = FontVariant.values();

            for (FontVariant aVal : val)
            {
                if (aVal.toString().equals(newFontVariant))
                {
                    fontVariant = newFontVariant;
                    invalidateCache();
                    return;
                }
            }

        }
    }
1244025
public void addSubstitutionFont(BaseFont font) {
        if (substitutionFonts == null)
            substitutionFonts = new ArrayList();
        substitutionFonts.add(font);
    }
1085340
public StyleSet setFont(short color, short fontSize, String fontName, boolean ignoreHead) {
		final Font font = StyleUtil.createFont(this.workbook, color, fontSize, fontName);
		return setFont(font, ignoreHead);
	}
1030549
private void processFont() {
		this.fontName = this.fontName.trim();
		if(fontName.length() == 0) return;
		if(fontNr.length() == 0) return;
		
		if(fontName.length()>0 && fontName.indexOf(';') >= 0) {
			fontName = fontName.substring(0,fontName.indexOf(';'));
		}

		if(this.rtfParser.isImport()) {
			//TODO: If primary font fails, use the alternate
				//TODO: Problem: RtfFont defaults family to \froman and doesn't allow any other family.
				// if you set the family, it changes the font name and not the family in the Font.java class.
				
	//			if(this.fontFamily.length() > 0) {
	//				if(this.importHeader.importFont(this.fontNr, this.fontName, this.fontFamily, Integer.parseInt(this.charset)) == false) {
	//					if(this.falt.length() > 0) {
	//						this.importHeader.importFont(this.fontNr, this.falt, this.fontFamily, Integer.parseInt(this.charset));
	//					}
	//				}
	//			} else {
					if(!this.importHeader.importFont(this.fontNr, this.fontName, Integer.parseInt("".equals(this.charset)?CHARSET_DEFAULT:this.charset))) {
						if(this.falt.length() > 0) {
							this.importHeader.importFont(this.fontNr, this.falt, Integer.parseInt("".equals(this.charset)?CHARSET_DEFAULT:this.charset));
						}
					}
	//			}
			}
		if(this.rtfParser.isConvert()) {
			// This could probably be written as a better font matching function
			
			String fName = this.fontName;	// work variable for trimming name if needed.
			Font f1 = createfont(fName);
			if(f1.getBaseFont() == null && this.falt.length()>0)
				f1 = createfont(this.falt);
			
			if(f1.getBaseFont() == null) {
				// Did not find a font, let's try a substring of the first name.
				if(FontFactory.COURIER.indexOf(fName) > -1 ) {
					f1 = FontFactory.getFont(FontFactory.COURIER);
				} else if(FontFactory.HELVETICA.indexOf(fName) > -1 ) {
					f1 = FontFactory.getFont(FontFactory.HELVETICA);
				} else if(FontFactory.TIMES.indexOf(fName) > -1 ) {
					f1 = FontFactory.getFont(FontFactory.TIMES);
				} else if(FontFactory.SYMBOL.indexOf(fName) > -1 ) {
					f1 = FontFactory.getFont(FontFactory.SYMBOL);
				} else if(FontFactory.ZAPFDINGBATS.indexOf(fName) > -1 ) {
					f1 = FontFactory.getFont(FontFactory.ZAPFDINGBATS);
				} else {
					// we did not find a matching font in any form.
					// default to HELVETICA for now.
					f1 = FontFactory.getFont(FontFactory.HELVETICA);
				}
			}
			fontMap.put(this.fontNr, f1);
			//System.out.println(f1.getFamilyname());
		}
		this.setToDefaults();
	}
13256
public static void apply(@NonNull TextView textView, @StringRes int fontStringId) {
        apply(textView, textView.getContext().getString(fontStringId));
    }
1368938
public static boolean registerFont(@NonNull ITypeface font) {
        validateFont(font);

        FONTS.put(font.getMappingPrefix(), font);
        return true;
    }
1299580
public void setTextFontFamilyName(byte[] fields, String[] fontFamilies) {
		if (fontFamilies == null)
			fontFamilies = new String[0];
        for (byte field : fields) {
            getFieldInfos(field).m_fontFamilyNames = fontFamilies;
        }
		notifyListeners();
	}