Files
QieKan-3.0/app
HapeLee ce22b9f20e fix: 高亮规则 fontPath 排版测量与绘制字体不一致导致行首行尾标点错位
排版阶段始终用默认字体测宽和断行,但绘制阶段才切换高亮规则字体,
导致不同字体的标点 advance 差异引起首尾符号错位。

- TextLine.addColumn(): 把 fontPath.isNotEmpty() 纳入 onlyTextColumn 判断,
  防止仅改字体的规则被 fastDrawTextLine 跳过
- TextColumn: 新增 internal getTypeface() 让排版阶段复用 typeface 缓存
- TextChapterLayout: 在 applyHighlightRules 后用 remeasureWithHighlightFonts()
  按字符/cluster 使用对应 fontPath 的 TextPaint 重新测宽,
  确保 ZhLayout 断行、desiredWidth、TextColumn.start/end 全部基于正确字体度量
2026-06-11 01:36:05 +08:00
..
2022-01-03 23:59:44 +08:00
2025-07-11 02:36:16 +08:00
2026-05-22 02:49:29 +08:00