Permalink
Browse files

Merge pull request #9 from wodesuck/float-point-size

Handle floating point font size (xft)
  • Loading branch information...
2 parents 54a51cd + 77fb033 commit 18a85738b8c6ee968fef3abd3408c5b35729c830 @majutsushi committed Dec 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 font-size
View
@@ -201,7 +201,7 @@ sub font_change_size_xft
my $new_size = 0;
foreach my $piece (@pieces) {
- if ($piece =~ /^(?:(?:pixel)?size=|[^=-]+-)(\d+)$/) {
+ if ($piece =~ /^(?:(?:pixel)?size=|[^=-]+-)(\d+(\.\d*)?)$/) {
$size = $1;
if ($basesize != 0) {

0 comments on commit 18a8573

Please sign in to comment.