add textScale global to CanvasAdapter - should replace 'dpi'
This commit is contained in:
parent
a86abf2921
commit
4ce228bdf2
@ -26,6 +26,7 @@ public abstract class CanvasAdapter {
|
|||||||
public static CanvasAdapter g;
|
public static CanvasAdapter g;
|
||||||
|
|
||||||
public static float dpi = 240;
|
public static float dpi = 240;
|
||||||
|
public static float textScale = 1;
|
||||||
|
|
||||||
public enum Color {
|
public enum Color {
|
||||||
BLACK, CYAN, TRANSPARENT, WHITE;
|
BLACK, CYAN, TRANSPARENT, WHITE;
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public class ThemeLoader {
|
|||||||
try {
|
try {
|
||||||
inputStream = theme.getRenderThemeAsStream();
|
inputStream = theme.getRenderThemeAsStream();
|
||||||
IRenderTheme t = RenderThemeHandler.getRenderTheme(inputStream);
|
IRenderTheme t = RenderThemeHandler.getRenderTheme(inputStream);
|
||||||
t.scaleTextSize(1 + (CanvasAdapter.dpi / 240 - 1) * 0.5f);
|
t.scaleTextSize(CanvasAdapter.textScale + (CanvasAdapter.dpi / 240 - 1) * 0.5f);
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user