mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 09:37:26 +08:00
1 parent
04058ce76a
commit
a5f51294eb
9 files changed
+50
-13
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user