Commits

Herbert Breunung  committed 41b358f

better fonts

  • Participants
  • Parent commits 1e0209a
  • Branches sp2

Comments (0)

Files changed (2)

File lib/Kephra/App/Editor.pm

 	my ($self, $font) = @_;
 	my ( $fontweight, $fontstyle ) = ( &Wx::wxNORMAL, &Wx::wxNORMAL );
 	$font = {
-		family => 'Andale Mono', # old default
+		family => $^O eq 'darwin' ? 'Andale Mono' : 'Courier New', # old default
 		#family => 'DejaVu Sans Mono', # new
-		size => 11,
+		size => $^O eq 'darwin' ? 13 : 11,
 		style => 'normal',
 		weight => 'normal',    
 	} unless defined $font;
 	#my $font = _config()->{font};
-	$font->{'size'} += 2 if $^O eq 'darwin';
 	$fontweight = &Wx::wxLIGHT  if $font->{weight} eq 'light';
 	$fontweight = &Wx::wxBOLD   if $font->{weight} eq 'bold';
 	$fontstyle  = &Wx::wxSLANT  if $font->{style}  eq 'slant';
 			default       { $event->Skip }
 		}
 	});
-	open_file(__FILE__); #say $Kephra::API::VERSION;
+	open_file(__FILE__);
 	return $self;
 }
 
 }
 # autosave
 # status line
-# how insert edit functions
-# use keymap
+# ted: # how insert edit functions