横向泳池泳道生成的图片标题错位问题,同时阶段也存在该问题

This commit is contained in:
446052889@qq.com 2025-04-22 16:29:19 +08:00
parent 037824201a
commit c7e2048703
2 changed files with 2 additions and 1 deletions

View File

@ -1008,7 +1008,8 @@ public class ChartGraphics {
// 使用缓存测量
TextMeasureResult result = measureText(tx, ty, tw, th, text, fontFamily, fontSize, tw, th, vAlign);
List<String> lines = result.lines;
double y = ty + result.offsetY + fontSize;
double y = result.offsetY + fontSize;
// double y = ty + result.offsetY + fontSize;
Color fontColor = getColor(fontStyle.getString("color"));
graphics.setPaint(fontColor);