Commit 18117e1a by 王祖波

字体更换

parent 897a1469
......@@ -83,11 +83,11 @@ public class ImageCombined {
private static final int QR_WIDTH_REFERENCE = 136;
private static final String LARGE_IMAGE_URL = "https://revan-1251519181.cos.ap-shanghai.myqcloud.com/image/material_content-29dd73e4f9fb4a9eaf38ae1a3158bc91.jpg?imageView2/2/w/1080/h/10800/format/jpg";
private static final String LARGE_IMAGE_URL = "https://aumam-1251519181.cos.ap-shanghai.myqcloud.com/image/material_content-0ac283c9ed334ce894fe6bbcb9161408.jpg?imageView2/2/w/1080/h/10800/format/jpg";
private static final String QR_CODE_URL = "https://gicinner-1251519181.cos.ap-shanghai.myqcloud.com/image/material_content-4ffc77073ca1476fb264bf1be9f11383.png";
private static final String STORE_NAME = "杭州大厦";
private static final String GUIDE_NAME = "翁坚鹏为您推荐";
private static final String OUTPUT_PATH = "/Users/wang/Downloads/output_image6.jpg";
private static final String OUTPUT_PATH = "/Users/wang/Downloads/output_image17.jpg";
static {
ImageIO.scanForPlugins(); // 初始化图像插件
......@@ -241,12 +241,12 @@ public class ImageCombined {
// 添加门店名称,距底部88px
g.setColor(new Color(36, 40, 53));
g.setFont(new Font("Arial", Font.PLAIN, 30));
g.setFont(new Font("Microsoft YaHei", Font.PLAIN, 30));
drawSingleLineText(g, lineOne, 30, finalHeight - WHITE_SPACE_HEIGHT + 72, width - 196); // 留出左右边距
// 添加推荐人信息,距底部40px
g.setColor(new Color(151, 155, 165));
g.setFont(new Font("Arial", Font.PLAIN, 26));
g.setFont(new Font("Microsoft YaHei", Font.PLAIN, 26));
drawSingleLineText(g, lineTwo, 30, finalHeight - WHITE_SPACE_HEIGHT + 120, width - 196); // 留出左右边距
// 添加二维码,距底部12px
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment