|
@@ -1398,7 +1398,7 @@ resizePageAndReflow(pages, pageIndex, itemValue) {
|
|
|
* @param {number} maxLines - 最大显示行数(超出显示省略号)
|
|
* @param {number} maxLines - 最大显示行数(超出显示省略号)
|
|
|
* @param {string} font - 字体样式(如 '16px Microsoft Yahei')
|
|
* @param {string} font - 字体样式(如 '16px Microsoft Yahei')
|
|
|
*/
|
|
*/
|
|
|
- drawCenteredTextWithEllipsis(ctx, text, x, y, lineHeight, maxLines, font = '14pt 宋体') {
|
|
|
|
|
|
|
+ drawCenteredTextWithEllipsis(ctx, text, x, y, lineHeight, maxLines, font = '16pt 仿宋_GB2312') {
|
|
|
// 1. 设置字体样式(必须先设置,否则measureText计算不准确)
|
|
// 1. 设置字体样式(必须先设置,否则measureText计算不准确)
|
|
|
let maxWidth = this.rqWidth - 20
|
|
let maxWidth = this.rqWidth - 20
|
|
|
ctx.font = font;
|
|
ctx.font = font;
|