Defines the font that will be used to visualize the LCD value
if the gauge has a LCD display.
The values are STANDARD, LCD, SLIM, DIGITAL_BOLD, ELEKTRA

@param FONT
556547
public void setLcdFont(final LcdFont FONT) {
        if (null == lcdFont) {
            _lcdFont = null == FONT ? LcdFont.DIGITAL_BOLD : FONT;
            fireUpdateEvent(RESIZE_EVENT);
        } else {
            lcdFont.set(FONT);
        }
    }
201632
private static int fontStyleToInt(FontStyle style) {
        switch (style) {
        case PLAIN:
            return java.awt.Font.PLAIN;
        case BOLD:
            return java.awt.Font.BOLD;
        case ITALIC:
            return java.awt.Font.ITALIC;
        default:
            return java.awt.Font.PLAIN;
        }
    }
586190
def set_font(self, font):
        """"""
        self.shellwidget._control.setFont(font)
        self.shellwidget.font = font
222348
public static void apply(@NonNull TextView textView, @NonNull String fontPath) {
        if (!textView.isInEditMode()) {
            setTypeface(textView, getFontFromString
                    (textView.getContext().getAssets(), fontPath, true));
        }
    }
403200
public static PDFont chooseMatchingTimes(Font font) {
		if ((font.getStyle() & (Font.ITALIC | Font.BOLD)) == (Font.ITALIC | Font.BOLD))
			return PDType1Font.TIMES_BOLD_ITALIC;
		if ((font.getStyle() & Font.ITALIC) == Font.ITALIC)
			return PDType1Font.TIMES_ITALIC;
		if ((font.getStyle() & Font.BOLD) == Font.BOLD)
			return PDType1Font.TIMES_BOLD;
		return PDType1Font.TIMES_ROMAN;
	}
1244025
public void addSubstitutionFont(BaseFont font) {
        if (substitutionFonts == null)
            substitutionFonts = new ArrayList();
        substitutionFonts.add(font);
    }
1358937
public void setDefaultDialogFont(Font newFont) {
        Font oldFont = defaultDialogFont; // Don't use the getter
        defaultDialogFont = newFont;
        clearCache();
        firePropertyChange(PROPERTY_DEFAULT_DIALOG_FONT, oldFont, newFont);
    }
287448
@BindingAdapter("bind:tv_typeface")
    public static void setCustomTypeface(TypefaceTextView textView, String type) {
        textView.mCurrentTypeface = TypefaceType.getTypeface(type != null ? type : "");
        Typeface typeface = getFont(textView.getContext(), textView.mCurrentTypeface.getAssetFileName());
        textView.setTypeface(typeface);
    }
1248812
private void showText2(String text) {
        if (state.fontDetails == null)
            throw new NullPointerException("Font and size must be set before writing any text");
        byte b[] = state.fontDetails.convertToBytes(text);
        escapeString(b, content);
    }
1310251
private static int getStyle(TextStyle style)
    {
        final int value;
        if (TextStyle.NORMAL == style)
        {
            value = Font.TRUETYPE_FONT;
        }
        else if (TextStyle.BOLD == style)
        {
            value = Font.BOLD;
        }
        else if (TextStyle.ITALIC == style)
        {
            value = Font.ITALIC;
        }
        else
        {
            throw new LionEngineException(style);
        }
        return value;
    }
393478
protected Label layoutText (Graphics2D gfx, Font font, String text)
    {
        Label label = _logic.createLabel(text);
        label.setFont(font);

        // layout in one line
        Rectangle vbounds = _target.getViewBounds();
        label.setTargetWidth(vbounds.width - PAD * 2);
        label.layout(gfx);
        Dimension d = label.getSize();

        // if the label is wide enough, try to split the text into multiple
        // lines
        if (d.width > MINIMUM_SPLIT_WIDTH) {
            int targetheight = getGoldenLabelHeight(d);
            if (targetheight > 1) {
                label.setTargetHeight(targetheight * d.height);
                label.layout(gfx);
            }
        }
        return label;
    }
669908
@Nonnull
  public ExcelStyle setFont (@Nonnull final Font aFont)
  {
    ValueEnforcer.notNull (aFont, "Font");
    return setFontIndex (aFont.getIndexAsInt ());
  }
270683
protected void setGreekFont() {
		float fontsize = symbol.getFont().getSize();
		symbol.setFont(FontFactory.getFont(FontFactory.SYMBOL, fontsize, Font.NORMAL));
	}
243328
public void setFont(Font font) {
		if (days != null) {
			for (int i = 0; i < 49; i++) {
				days[i].setFont(font);
			}
		}
		if (weeks != null) {
			for (int i = 0; i < 7; i++) {
				weeks[i].setFont(font);
			}
		}
	}
510218
public static void setStyle() {

        int style = Font.PLAIN;

        if (ckbbold.isSelected()) {
            style |= Font.BOLD;
        }

        if (ckbitalic.isSelected()) {
            style |= Font.ITALIC;
        }

        fOwner.tTree.setFont(fOwner.txtCommand.getFont().deriveFont(style));
        fOwner.txtCommand.setFont(
            fOwner.txtCommand.getFont().deriveFont(style));
        fOwner.txtResult.setFont(
            fOwner.txtResult.getFont().deriveFont(style));
    }
469041
public static PDFont mapDefaultFonts(Font font) {
		/*
		 * Map default font names to the matching families.
		 */
		if (fontNameEqualsAnyOf(font, Font.SANS_SERIF, Font.DIALOG, Font.DIALOG_INPUT, "Arial", "Helvetica"))
			return chooseMatchingHelvetica(font);
		if (fontNameEqualsAnyOf(font, Font.MONOSPACED, "courier", "courier new"))
			return chooseMatchingCourier(font);
		if (fontNameEqualsAnyOf(font, Font.SERIF, "Times", "Times New Roman", "Times Roman"))
			return chooseMatchingTimes(font);
		if (fontNameEqualsAnyOf(font, "Symbol"))
			return PDType1Font.SYMBOL;
		if (fontNameEqualsAnyOf(font, "ZapfDingbats", "Dingbats"))
			return PDType1Font.ZAPF_DINGBATS;
		return null;
	}
224402
private void updateFont(Font font) {
        StyledDocument doc = (StyledDocument)getComponent().getDocument();
        Style style = doc.getStyle(StyleContext.DEFAULT_STYLE);

        if (style == null) {
            return;
        }

        if (font == null) {
            style.removeAttribute(StyleConstants.FontFamily);
            style.removeAttribute(StyleConstants.FontSize);
            style.removeAttribute(StyleConstants.Bold);
            style.removeAttribute(StyleConstants.Italic);
        } else {
            StyleConstants.setFontFamily(style, font.getName());
            StyleConstants.setFontSize(style, font.getSize());
            StyleConstants.setBold(style, font.isBold());
            StyleConstants.setItalic(style, font.isItalic());
        }
    }