{ fontName = new StringChoiceInput("FontName", "Key Inputs", defFont); fontName.setChoices(validFontNames); this.addInput(fontName, true); fontColor = new ColourInput("FontColour", "Key Inputs", ColourInput.BLACK); this.addInput(fontColor, true, "FontColor"); fontStyle = new StringListInput("FontStyle", "Key Inputs", new StringVector()); fontStyle.setValidOptions(validStyles); fontStyle.setCaseSensitive(false); this.addInput(fontStyle, true); dropShadow = new BooleanInput("DropShadow", "Key Inputs", false); this.addInput(dropShadow, true); dropShadowColor = new ColourInput("DropShadowColour", "Key Inputs", ColourInput.BLACK); this.addInput(dropShadowColor, true, "DropShadowColor"); dropShadowOffset = new Vec3dInput("DropShadowOffset", "Key Inputs", new Vec3d(-0.1d, -0.1d, -0.001d)); this.addInput(dropShadowOffset, true); style = Font.PLAIN; }
public TessFontKey getTessFontKey() { return new TessFontKey(fontName.getChoice(), style); }