Skip to content

Commit

Permalink
eating up space no more on GUI fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed May 31, 2015
1 parent 4a341cb commit 09506ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Prima/PS/Drawable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,10 @@ sub useDeviceFonts
}
$_[0]-> {useDeviceFonts} = $_[1] unless $_[0]-> get_paint_state;
$_[0]-> {useDeviceFonts} = 1 if $_[0]-> {useDeviceFontsOnly};
if ( !$::application && !$_[1] ) {
warn "warning: ignored .useDeviceFonts(0) because Prima::Application is not instantiated\n";
$_[0]->{useDeviceFonts} = 1;
}
}

sub useDeviceFontsOnly
Expand Down Expand Up @@ -1017,6 +1021,8 @@ sub text_out
$self-> emit( $pg);
$self-> emit(";");
$advance = $a + $b + $c;
} elsif ( defined $a ) {
$advance = $a + $b + $c;
} else {
$advance = $$nd[1] + $$nd[2] + $$nd[3];
}
Expand Down Expand Up @@ -1511,7 +1517,7 @@ sub place_glyph
"$scalex $scaley scale $b $bby true [$b 0 0 -$bby 0 $bby] <$cdz> imagemask",
$a, $b, $c;
}
return '';
return '', $a, $b, $c;
}

sub get_rmap
Expand Down

0 comments on commit 09506ad

Please sign in to comment.