feat(字体渲染): 修复字体引用与渲染
build.yaml / build (push) Successful in 50s

This commit is contained in:
xiaoqidun committed 2026-10-10 15:52:36 +08:00
1 parent 04058ce76a
commit a5f51294eb
9 files changed
+50 -13

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ func (r *Renderer) PositionText(object TextObject, state RenderState) (*Position
italic = italic || defaults.Italic
}
bold := weight >= 700
if definition := r.Reader.fontCache[id]; definition != nil {
if definition := r.Reader.fontDefinition(id); definition != nil {
bold = bold && !definition.Bold
if definition.FontFile == "" && fontNoSyntheticBold(definition.FontName, definition.FamilyName) {
bold = false