| 1 | package SVG::DOM2::Element::Shape::Font; | ||
| 2 | =head1 NAME | ||
| 3 | |||
| 4 | SVG::DOM2::Element::Shape::Font | ||
| 5 | |||
| 6 | =head1 DESCRIPTION | ||
| 7 | |||
| 8 | Extend a shape element with font attributes | ||
| 9 | |||
| 10 | =cut | ||
| 11 | |||
| 12 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | sub stroke | ||
| 16 | 0 | ▶ | { |
|
Subroutine
stroke: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 17 | 0 | my ($self, $p) = @_; | |
| 18 | 0 | my %result; | |
| 19 | 0 | $result{'family'} = $self->font_family($p); | |
| 20 | 0 | $result{'size'} = $self->font_size($p); | |
| 21 | 0 | return \%result; | |
| 22 | } | ||
| 23 | |||
| 24 | 0 | ▶ | sub font_family { shift->_style('font-family', 'font-family', @_); } |
|
Subroutine
font_family: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 25 | 0 | ▶ | sub font_size { shift->_style('font-size', 'font-size', @_); } |
|
Subroutine
font_size: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | 0 | ▶ | sub font_weight { shift->_style('font-weight', 'font-weight', @_); } |
|
Subroutine
font_weight: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 27 | 0 | ▶ | sub font_style { shift->_style('font-style', 'font-style', @_); } |
|
Subroutine
font_style: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 28 | |||
| 29 | 0 | ▶ | sub text_align { shift->_style('text-align', 'text-align', @_); } |
|
Subroutine
text_align: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 30 | |||
| 31 | 1 | return 1; | |