DroidFish: Better font for figurine notation. From Leo Mayer.

This commit is contained in:
Peter Osterlund
2012-08-28 17:34:57 +00:00
parent 37610d8297
commit b0a2f9f317
2 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@@ -204,7 +204,7 @@ public class DroidFish extends Activity implements GUIInterface {
private WakeLock wakeLock = null;
private boolean useWakeLock = false;
// private Typeface figNotation;
private Typeface figNotation;
private Typeface defaultMoveListTypeFace;
private Typeface defaultThinkingListTypeFace;
@@ -785,7 +785,7 @@ public class DroidFish extends Activity implements GUIInterface {
setWakeLock(useWakeLock);
int fontSize = getIntSetting("fontSize", 12);
// figNotation = Typeface.createFromAsset(getAssets(), "fonts/DroidFishChessNotationDark.otf");
figNotation = Typeface.createFromAsset(getAssets(), "fonts/DroidFishChessNotationDark.otf");
status.setTextSize(fontSize);
moveList.setTextSize(fontSize);
thinking.setTextSize(fontSize);
@@ -852,17 +852,17 @@ public class DroidFish extends Activity implements GUIInterface {
* Change the Pieces into figurine or regular (i.e. letters) display
*/
private void setFigurineNotation(boolean displayAsFigures, int fontSize) {
/* if (displayAsFigures) {
if (displayAsFigures) {
// increase the font cause it has different kerning and looks small
float increaseFontSize = fontSize * 1.1f;
moveList.setTypeface(figNotation);
moveList.setTextSize(increaseFontSize);
thinking.setTypeface(figNotation);
thinking.setTextSize(increaseFontSize);
} else { */
} else {
moveList.setTypeface(defaultMoveListTypeFace);
thinking.setTypeface(defaultThinkingListTypeFace);
// }
}
}
private void updateButtons() {