Allowing more text in previews.
This commit is contained in:
parent
ee89210e02
commit
4812fd2579
@ -104,15 +104,16 @@ sub _GenerateSVGPreview($self, $title, $content, $image_file, $image_bottom_prev
|
|||||||
$group->text(
|
$group->text(
|
||||||
x => 10,
|
x => 10,
|
||||||
y => $new_y,
|
y => $new_y,
|
||||||
style => { 'font-size' => 50 }
|
style => { 'font-size' => 42 }
|
||||||
)->cdata($title);
|
)->cdata($title);
|
||||||
|
|
||||||
my $n = 0;
|
my $n = 0;
|
||||||
for my $line (@content) {
|
for my $line (@content) {
|
||||||
|
next if $line =~ /^\s*$/;
|
||||||
$group->text(
|
$group->text(
|
||||||
x => 10,
|
x => 10,
|
||||||
y => $new_y + 40 + ( 30 * $n ),
|
y => $new_y + 40 + ( 30 * $n ),
|
||||||
style => { 'font-size' => 38 }
|
style => { 'font-size' => 32 }
|
||||||
)->cdata($line);
|
)->cdata($line);
|
||||||
$n++;
|
$n++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user