Font   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
1
<?php
2
namespace nstdio\svg\font;
3
4
/**
5
 * Class Font
6
 * The ‘font’ element defines an SVG font. Each ‘font’ element must have a ‘font-face’ child element which describes
7
 * various characteristics of the font.
8
 *
9
 * @link    https://www.w3.org/TR/SVG11/fonts.html#FontElement
10
 * @property float horiz        -origin-x = "<number>" The X-coordinate in the font coordinate system of the origin of
11
 *           a glyph to be used when drawing horizontally oriented text. (Note that the origin applies to all glyphs in
12
 *           the font.) If the attribute is not specified, the effect is as if a value of '0' were specified.
13
 * @property float horizOriginY = "<number>" The Y-coordinate in the font coordinate system of the origin of a glyph
14
 *           to be used when drawing horizontally oriented text. (Note that the origin applies to all glyphs in the
15
 *           font.) If the attribute is not specified, the effect is as if a value of '0' were specified.
16
 * @property float horizAdvX    = "<number>" The default horizontal advance after rendering a glyph in horizontal
17
 *           orientation. Glyph widths are required to be non-negative, even if the glyph is typically rendered
18
 *           right-to-left, as in Hebrew and Arabic scripts.
19
 * @property float vertOriginX  = "<number>" The default X-coordinate in the font coordinate system of the origin of
20
 *           a glyph to be used when drawing vertically oriented text. If the attribute is not specified, the effect is
21
 *           as if the attribute were set to half of the effective value of attribute ‘horiz-adv-x’.
22
 * @property float vertOriginY  = "<number>" The default Y-coordinate in the font coordinate system of the origin of
23
 *           a glyph to be used when drawing vertically oriented text. If the attribute is not specified, the effect is
24
 *           as if the attribute were set to the position specified by the font's ‘ascent’ attribute.
25
 * @property float vertAdvY     = "<number>" The default vertical advance after rendering a glyph in vertical
26
 *           orientation. If the attribute is not specified, the effect is as if a value equivalent of one em were
27
 *           specified (see ‘units-per-em’).
28
 * @package nstdio\svg\font
29
 * @author  Edgar Asatryan <[email protected]>
30
 */
31
class Font extends BaseFont
32
{
33
    /**
34
     * @inheritdoc
35
     */
36 1
    public function getName()
37
    {
38 1
        return "font";
39
    }
40
41
}