|
|
@@ -42,6 +42,8 @@ import java.text.StringCharacterIterator;
|
|
|
|
|
|
import javax.swing.JComponent;
|
|
|
|
|
|
+import com.uas.report.util.ReportConstants;
|
|
|
+
|
|
|
import net.sourceforge.barbecue.env.EnvironmentFactory;
|
|
|
import net.sourceforge.barbecue.env.HeadlessEnvironment;
|
|
|
import net.sourceforge.barbecue.output.GraphicsOutput;
|
|
|
@@ -85,7 +87,7 @@ public abstract class Barcode extends JComponent implements Printable {
|
|
|
} else {
|
|
|
this.barHeight = Barcode.DEFAULT_BAR_HEIGHT;
|
|
|
}
|
|
|
- this.font = new Font("Microsoft YaHei UI", Font.PLAIN, 28);
|
|
|
+ this.font = new Font(ReportConstants.MICROSOFT_YAHEI_UI_FONT_NAME, Font.PLAIN, 28);
|
|
|
this.drawingText = true;
|
|
|
setBackground(Color.white);
|
|
|
setForeground(Color.black);
|