Skip to content

Commit 43d4d3d

Browse files
authored
Merge pull request #390 from veraPDF/about_panel
GUI. Update text rendering on about panel
2 parents 078ea52 + 47c288b commit 43d4d3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gui/src/main/java/org/verapdf/gui/PartnersPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class PartnersPanel extends JPanel {
6565
this.consortium.setFont(new Font(this.consortium.getFont().getName(), this.consortium.getFont().getStyle(),
6666
(int) (this.consortium.getFont().getSize() * GUIConstants.CONSORTIUM_FONT_SCALE)));
6767
Rectangle2D rec = new TextLayout(GUIConstants.CONSORTIUM_TEXT, this.consortium.getFont(),
68-
new FontRenderContext(null, true, true)).getBounds();
68+
new FontRenderContext(null, true, false)).getBounds();
6969
this.consortium.setSize((int) (rec.getWidth()) + GUIConstants.BORDER_WIDTH * 4,
7070
(int) (rec.getHeight() + GUIConstants.BORDER_WIDTH));
7171

@@ -77,7 +77,7 @@ class PartnersPanel extends JPanel {
7777
this.preforma.setFont(new Font(this.preforma.getFont().getName(), this.preforma.getFont().getStyle(),
7878
(int) (this.preforma.getFont().getSize() * GUIConstants.PREFORMA_FUNDED_FONT_SCALE)));
7979
Rectangle2D rec2 = new TextLayout(GUIConstants.PREFORMA_FUNDED_TEXT, this.preforma.getFont(),
80-
new FontRenderContext(null, true, true)).getBounds();
80+
new FontRenderContext(null, true, false)).getBounds();
8181
this.preforma.setSize((int) (rec2.getWidth()) + GUIConstants.BORDER_WIDTH * 2,
8282
(int) (rec2.getHeight() + GUIConstants.BORDER_WIDTH));
8383

@@ -91,7 +91,7 @@ class PartnersPanel extends JPanel {
9191

9292
this.version.setHorizontalTextPosition(SwingConstants.CENTER);
9393
Rectangle2D recVer = new TextLayout(versionText, this.version.getFont(),
94-
new FontRenderContext(null, true, true)).getBounds();
94+
new FontRenderContext(null, true, false)).getBounds();
9595
this.version.setSize((int) (recVer.getWidth() + GUIConstants.BORDER_WIDTH * 2),
9696
(int) (recVer.getHeight() + GUIConstants.BORDER_WIDTH));
9797
add(this.version);

0 commit comments

Comments
 (0)