Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Try handling fonts without specified size, closes #5

  • Loading branch information...
commit 3abbfec5658510b8e9a18e8e4820635a52110b92 1 parent e81c916
@majutsushi authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 font-size
View
4 font-size
@@ -231,6 +231,10 @@ sub font_change_size_xlfd
$fontstring =~ s/^-//; # Strip leading - before split
@font{@fields} = split(/-/, $fontstring);
+ if ($font{pixelSize} eq '*') {
+ $term->scr_add_lines("\r\nWarning: Font size undefined, assuming 12.\r\nPlease set the 'URxvt.font' resource to a font with a concrete size.");
+ $font{pixelSize} = '12'
+ }
if ($font{registry} eq '*') {
$font{registry} ='iso8859';
}
Please sign in to comment.
Something went wrong with that request. Please try again.