feat(renderer): update font to CrimsonText-Regular in theme factory beans and adjust font leading
This commit is contained in:
BIN
data/renderer/CrimsonText-Regular.ttf
Normal file
BIN
data/renderer/CrimsonText-Regular.ttf
Normal file
Binary file not shown.
@@ -27,7 +27,7 @@ public class G2DDrawFont extends G2DAbstractRenderingBo implements DrawFontRende
|
|||||||
|
|
||||||
public final static int FONT_SIZE_DEFAULT = 18;
|
public final static int FONT_SIZE_DEFAULT = 18;
|
||||||
|
|
||||||
public final static double FONT_LEADING = 1.6;
|
public final static double FONT_LEADING = 1.75;
|
||||||
|
|
||||||
private static final AtomicReference<Font> cachedFontRef = new AtomicReference<>();
|
private static final AtomicReference<Font> cachedFontRef = new AtomicReference<>();
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ public class DreamThemeFactoryBean implements FactoryBean<Theme> {
|
|||||||
public Theme getObject() {
|
public Theme getObject() {
|
||||||
return Theme.builder()
|
return Theme.builder()
|
||||||
.name("Dream")
|
.name("Dream")
|
||||||
.font("EBGaramond-Regular.ttf")
|
.font("CrimsonText-Regular.ttf")
|
||||||
.patternRendererName("dreamPatternRenderer")
|
.patternRendererName("dreamPatternRenderer")
|
||||||
.borderOuter(new HSBColor(0.74f, 0.22f, 0.80f))
|
.borderOuter(new HSBColor(0.74f, 0.22f, 0.80f))
|
||||||
.borderInner(new HSBColor(0.83f, 0.18f, 0.95f))
|
.borderInner(new HSBColor(0.83f, 0.18f, 0.95f))
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ public class FantasyThemeFactoryBean implements FactoryBean<Theme> {
|
|||||||
public Theme getObject() {
|
public Theme getObject() {
|
||||||
return Theme.builder()
|
return Theme.builder()
|
||||||
.name("Fantasy")
|
.name("Fantasy")
|
||||||
.font("EBGaramond-Regular.ttf")
|
.font("CrimsonText-Regular.ttf")
|
||||||
.patternRendererName("fantasyPatternRenderer")
|
.patternRendererName("fantasyPatternRenderer")
|
||||||
.borderOuter(new HSBColor(0.12f, 0.55f, 0.48f))
|
.borderOuter(new HSBColor(0.12f, 0.55f, 0.48f))
|
||||||
.borderInner(new HSBColor(0.14f, 0.25f, 0.72f))
|
.borderInner(new HSBColor(0.14f, 0.25f, 0.72f))
|
||||||
|
|||||||
Reference in New Issue
Block a user