Skip to content

Commit

Permalink
font: removes resizing of font on simulator for better fidelity acros…
Browse files Browse the repository at this point in the history
…s platforms (#323)

fixes #293
  • Loading branch information
ricardobna authored Apr 6, 2021
1 parent 59db5b9 commit 633ebbb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion TotalCrossSDK/src/main/java/totalcross/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,6 @@ public UserFont getFont(totalcross.ui.font.Font f, char c) {
// verify if its in the cache.
String fontName = f.name;
int size = (int) (Math.max(f.size, totalcross.ui.font.Font.MIN_FONT_SIZE) * Settings.screenDensity); // guich@tc122_15: don't check for the maximum font size here
size += ((int) (size * 0.15)) * 3;

char faceType = c < 0x3000 && f.style == 1 ? 'b' : 'p';
int uIndex = ((int) c >> 8) << 8;
Expand Down

0 comments on commit 633ebbb

Please sign in to comment.