Skip to content

Commit ac528a8

Browse files
committed
render: Rework bearer bars to use fill
1 parent 0b9995a commit ac528a8

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
XXXX-XX-XX
2+
3+
* The bearer bars were reworked to render as filled paths rather than stroked lines, matching the border and the data bars for consistent rendering at small scales.
4+
5+
16
2026-05-31
27

38
* The PDF417, MicroPDF417 and Aztec Code encoding was optimised.

src/render.ps.src

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,17 +1090,24 @@ begin
10901090
%
10911091
showbearer {
10921092
borderwidth inkspread gt {
1093+
/hw borderwidth inkspread sub 2 div def
10931094
gsave
10941095
newpath
1095-
bl aload pop moveto br aload pop lineto
1096-
tl aload pop moveto tr aload pop lineto
1096+
bl aload pop hw sub moveto
1097+
br aload pop hw sub lineto
1098+
br aload pop hw add lineto
1099+
bl aload pop hw add lineto closepath
1100+
tl aload pop hw sub moveto
1101+
tr aload pop hw sub lineto
1102+
tr aload pop hw add lineto
1103+
tl aload pop hw add lineto closepath
10971104
bordercolor (unset) ne {
10981105
bordercolor //setanycolor exec not {
10991106
grestore
11001107
/bwipp.renderBadBorderColor (Invalid border color) false exit
11011108
} if
11021109
} if
1103-
borderwidth inkspread sub setlinewidth stroke
1110+
fill
11041111
grestore
11051112
} if
11061113
} if

0 commit comments

Comments
 (0)