mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
This commit is contained in:
1 parent
e488d25775
commit
ad00e95ae6
3 files changed
+28
-1
No files matched your search
@@ -396,6 +396,11 @@ func (r *Renderer) renderText(ctx *canvas.Context, obj TextObject, pageH float64
|
||||
scaleX = advanceLimit / glyphWidth
|
||||
}
|
||||
textWidth = glyphWidth * scaleX
|
||||
if face.FauxBold != 0 {
|
||||
if renderer, ok := ctx.Renderer.(*pdfRenderer); ok {
|
||||
glyphPath = renderer.glyphPath(glyphPath, ctx.View().Scale(scaleX, 1))
|
||||
}
|
||||
}
|
||||
if scaleX != 1 {
|
||||
ctx.Push()
|
||||
ctx.Translate(x, y)
|
||||
|
||||
Reference in new issue
Block a user