Skip to content

Commit

Permalink
Specify Ludica Console, a monospace font, so the numbers don't jump, …
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 14, 2018
1 parent 001b402 commit 3db452e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions js/TimerReadoutNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ define( require => {
const Util = require( 'DOT/Util' );

// constants
const DEFAULT_LARGE_FONT = new PhetFont( 20 );
const DEFAULT_SMALL_FONT = new PhetFont( 15 );

// Try for a monospace font so that the numbers don't change alignment. Fallback to Arial as determined in
// https://github.com/phetsims/wave-interference/issues/239
const FONT_FAMILY = '"Lucida Console", Arial';
const DEFAULT_LARGE_FONT = new PhetFont( {
size: 20,
family: FONT_FAMILY
} );
const DEFAULT_SMALL_FONT = new PhetFont( {
size: 15,
family: FONT_FAMILY
} );

class TimerReadoutNode extends Rectangle {

Expand Down

0 comments on commit 3db452e

Please sign in to comment.