Skip to content

Commit

Permalink
Rendering: Join and Cap styles have to be flat for Higlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
bordaigorl committed Mar 30, 2023
1 parent d07b736 commit b13632c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions remy/remarkable/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ def __init__(
else:
pen.setColor(color)

# JOIN/CAP STYLE
if tool == rm.HIGHLIGHTER_TOOL:
pen.setCapStyle(Qt.FlatCap)
pen.setJoinStyle(Qt.BevelJoin)
else:
pen.setCapStyle(Qt.RoundCap)
pen.setJoinStyle(Qt.RoundJoin)

# WIDTH CALCULATION
if tool == rm.PENCIL_TOOL:
if pencil_resolution > 0:
Expand Down

0 comments on commit b13632c

Please sign in to comment.