Skip to content
Browse files

Replace x11 with xlfd

  • Loading branch information...
1 parent ace6d6e commit 8442c987569d09b164bfa05af96e4fe8ec7e97fd @majutsushi committed Nov 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 font-size
View
6 font-size
@@ -154,7 +154,7 @@ sub handle_font
if ($font =~ /^\s*(\[.*\])?xft:/) {
($newfont, $newsize) = font_change_size_xft($term, $font, $change, $basesize);
} elsif ($font =~ /^\s*-/) {
- ($newfont, $newsize) = font_change_size_x11($term, $font, $change, $basesize);
+ ($newfont, $newsize) = font_change_size_xlfd($term, $font, $change, $basesize);
} else {
# check whether the font is a valid alias and if yes resolve it to the
# actual font
@@ -171,7 +171,7 @@ sub handle_font
my $fontinfo = (split(/\n/, $lsfinfo))[-1];
my ($fontfull) = ($fontinfo =~ /\s+([-a-z0-9]+$)/);
- ($newfont, $newsize) = font_change_size_x11($term, $fontfull, $change, $basesize);
+ ($newfont, $newsize) = font_change_size_xlfd($term, $fontfull, $change, $basesize);
}
# $term->scr_add_lines("\r\nNew font is $newfont\n");
@@ -218,7 +218,7 @@ sub font_change_size_xft
}
}
-sub font_change_size_x11
+sub font_change_size_xlfd
{
my ($term, $fontstring, $change, $basesize) = @_;

0 comments on commit 8442c98

Please sign in to comment.
Something went wrong with that request. Please try again.