Commits

Herbert Breunung  committed e40b97a

move font to courier new

  • Participants
  • Parent commits 8c6b5d4
  • Branches sp2

Comments (0)

Files changed (2)

File lib/Kephra/App/Editor.pm

 
 sub set_tab_size {
 	my ($self, $size) = @_;
-	$size *= 2 if $^O eq 'darwin';
+	#$size *= 2 if $^O eq 'darwin';
 	$self->SetTabWidth($size);
 	$self->SetIndent($size);
 	$self->SetHighlightGuide($size);
 	my ($self, $font) = @_;
 	my ( $fontweight, $fontstyle ) = ( &Wx::wxNORMAL, &Wx::wxNORMAL );
 	$font = {
-		#family => 'Courier New', # old default
-		family => 'DejaVu Sans Mono',
-		size => 10,
+		family => 'Courier New', # old default
+		#family => 'DejaVu Sans Mono', # new
+		size => 11,
 		style => 'normal',
 		weight => 'normal',    
 	} unless defined $font;
 	#my $font = _config()->{font};
-	$font->{'size'} += 3 if $^O eq 'darwin';
+	$font->{'size'} += 4 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';
 	Wx::Event::EVT_KEY_DOWN($ed , sub {
 		my ($ed, $event) = @_;
 		my $def = Kephra::API::KeyMap::definition_from_event($event);
-say $event->GetUnicodeKey;
 		if    ($def eq 'ctrl+o'){ open_file( Kephra::App::Dialog::get_file_open() ) }
 		elsif ($def eq 'ctrl+q'){ $self->Close }
 		elsif ($def eq 'ctrl+s'){