}
sub filter_text () {
+ open ADJ, "src/SVG_FONT_Y_ADJUST_OF_FONT_SIZE.txt" or die $!;
+ my $adj = <ADJ> // die $!;
+ $adj =~ m/\d/ or die $!;
+
+ die unless $node->getAttribute('x') eq '0';
+ my $font_size = $node->getAttribute('font-size');
+ die unless $font_size =~ s/px$//;
+ my $got_y = $node->getAttribute('y');
+ my $exp_y = $adj * $font_size;
+ die "$got_y != $exp_y" unless $got_y == $exp_y;
+
filter_element('text', qw(x y font-family text-align text-anchor));
$node->setAttribute('font-size', "{{ label_options.size }}px");
$node->setAttribute('y', "{{ label_y_adjust }}");