font/opentype,text,widget: use clip.Op for text shapes, not a macro

This change avoids a macro wrapping every text shape, and prepares text
shaping for scoped clip operations.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-10-02 18:11:31 +02:00
parent cd5a78f3d8
commit c1298cd755
7 changed files with 26 additions and 29 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ type SelectEvent struct{}
type line struct {
offset image.Point
clip op.CallOp
clip clip.Op
selected bool
selectionYOffs int
selectionSize image.Point