Skip to content

Commit

Permalink
Increased layout lines' thikness
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg committed Mar 21, 2019
1 parent 3a84465 commit 2db0004
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/ru/ras/iph/impose/ImposeonA3.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class ImposeonA3 {
static int a5Width = Math.round(PageSize.A5.getWidth());
static int a4Height = Math.round(PageSize.A4.getHeight());
static int a4Width = Math.round(PageSize.A4.getWidth());
static float lineThickness = 2f;

/**
* Main method.
Expand Down Expand Up @@ -364,6 +365,7 @@ private static void drawSerifs2(PdfContentByte canvas, int layout) {
int position = (layout / 2) % countSpaces;
int countSerifs = layout / (2 * countSpaces);
for (int i = 0; i <= countSerifs; i++) {
canvas.setLineWidth(lineThickness);
canvas.moveTo(startX - position * spacing - i * inc, yt);
canvas.lineTo(startX - position * spacing - i * inc, yb);
}
Expand Down Expand Up @@ -399,6 +401,7 @@ private static void drawSerifs4(PdfContentByte canvas, int layout) {
int position = (layout / 2) % countSpaces;
int countSerifs = layout / (2 * countSpaces);
for (int i = 0; i <= countSerifs; i++) {
canvas.setLineWidth(lineThickness);
canvas.moveTo(xl, startY - position * spacing - i * inc);
canvas.lineTo(xr, startY - position * spacing - i * inc);
}
Expand Down

0 comments on commit 2db0004

Please sign in to comment.