|
@@ -235,7 +235,7 @@ export default class Draw {
|
|
|
let pt = coordinate.getScreenXY({ x: geometry.center.x, y: geometry.center.y })
|
|
|
const fontWidth1 = geometry.sideWidth
|
|
|
//let dy = (points[3].y - points[0].y)/fontInfo.textValues.length/2
|
|
|
- let dy = geometry.sideThickness/fontInfo.height/2
|
|
|
+ let dy = geometry.sideThickness/fontInfo.height/2*coordinate.ratio
|
|
|
for(let i=0;i<fontInfo.textValues.length;++i){
|
|
|
// const line1 = mathUtil.createLine1({ x: (points[0].x + points[3].x) / 2, y: (points[0].y + points[3].y) / 2 }, { x: (points[2].x + points[1].x) / 2, y: (points[2].y + points[1].y) / 2 })
|
|
|
// const fontStart1 = mathUtil.getDisPointsLine(line1, pt, fontWidth1 / 2, fontWidth1 / 2)
|