mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-4154 - Theming - Fixed font issues; updated font usage with attributes
This commit is contained in:
parent
c5bad0a88f
commit
b586d65a3b
91 changed files with 1309 additions and 1191 deletions
|
@ -33,7 +33,6 @@ import resources.ResourceManager;
|
|||
public class RepositoryCustomScreenShots extends GhidraScreenShotGenerator {
|
||||
|
||||
public RepositoryCustomScreenShots() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -127,8 +126,6 @@ public class RepositoryCustomScreenShots extends GhidraScreenShotGenerator {
|
|||
int y = p.y - radius;
|
||||
g.fillOval(x, y, radius * 2, 2 * radius);
|
||||
|
||||
Font f = g.getFont().deriveFont(12f);
|
||||
g.setFont(f);
|
||||
FontMetrics metrics = g.getFontMetrics();
|
||||
int height = metrics.getHeight();
|
||||
g.setColor(Palette.BLACK);
|
||||
|
@ -154,8 +151,6 @@ public class RepositoryCustomScreenShots extends GhidraScreenShotGenerator {
|
|||
BasicStroke stroke = new BasicStroke(1);
|
||||
g.setStroke(stroke);
|
||||
|
||||
Font f = g.getFont().deriveFont(12f);
|
||||
g.setFont(f);
|
||||
FontMetrics metrics = g.getFontMetrics();
|
||||
int margin = 5;
|
||||
int height = metrics.getHeight() * text.length + 2 * margin;
|
||||
|
@ -189,8 +184,6 @@ public class RepositoryCustomScreenShots extends GhidraScreenShotGenerator {
|
|||
Graphics2D g = ((BufferedImage) image).createGraphics();
|
||||
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
|
||||
|
||||
Font f = g.getFont().deriveFont(12f);
|
||||
g.setFont(f);
|
||||
FontMetrics metrics = g.getFontMetrics();
|
||||
// int margin = 5;
|
||||
int height = metrics.getHeight() * text.length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue