mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
875de1cea8
commit
c68bf1f3c9
2 files changed
+1
-2
No files matched your search
+1
-1
@@ -569,7 +569,7 @@ func shouldBuildCmapFormat12(mapping map[rune]uint16) bool {
|
|||||||
glyphIDCount++
|
glyphIDCount++
|
||||||
prev = curr
|
prev = curr
|
||||||
}
|
}
|
||||||
segCount++ // sentinel segment
|
segCount++
|
||||||
length := 16 + segCount*8 + glyphIDCount*2
|
length := 16 + segCount*8 + glyphIDCount*2
|
||||||
return length > 0xFFFF
|
return length > 0xFFFF
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ func (r *Renderer) renderCompositeGraphicUnit(ctx *canvas.Context, cgu Composite
|
|||||||
currentCTM := boundaryCTM.Multiply(NewMatrix(cgu.CTM))
|
currentCTM := boundaryCTM.Multiply(NewMatrix(cgu.CTM))
|
||||||
clips, clipCTM := cgu.Clips, currentCTM
|
clips, clipCTM := cgu.Clips, currentCTM
|
||||||
if clips != nil && clips.TransFlag != nil && !*clips.TransFlag {
|
if clips != nil && clips.TransFlag != nil && !*clips.TransFlag {
|
||||||
// 不参与对象CTM的裁剪仍位于对象边界及父级坐标系中
|
|
||||||
clipCopy := *clips
|
clipCopy := *clips
|
||||||
clipCopy.TransFlag = nil
|
clipCopy.TransFlag = nil
|
||||||
clips, clipCTM = &clipCopy, boundaryCTM
|
clips, clipCTM = &clipCopy, boundaryCTM
|
||||||
|
|||||||
Reference in new issue
Block a user