SVG仕様の実装状況

Antenna House Formatter V7.4 は、W3Cによる Scalable Vector Graphics (SVG) 2 を独自開発したエンジンにより描画します。そのため、PDF中への画像を高い解像度で描画することが可能です。 SVGの利用方法については、グラフィクスを参照してください。

以下に、SVGの各要素の実装状況を示します。基本的な描画要素を中心に実装されています。

  • ]は機能が実装されている要素/属性を表します。
  • ]は部分的実装要素/属性を表します。
  • ×]は未実装の要素/属性を表します。
要素属性・呈示属性実装状況備考
5.1 <svg> FO や HTML などの上位の XML 中で SVG が参照される場合、上位の XML で指定されている以下が引き継がれます。
  • font-family
  • font-size
  • font-weight
  • font-style
  • xml:lang
x
y
width width-height-as-presentation-attribute で呈示属性として処理するか、属性として処理するか選択できます。
height
viewBox
preserveAspectRatio
transform
aria attributes ×
conditional processing attributes
core attributes
document event attributes ×
global event attributes ×
document element event attributes ×
presentation attributes
5.2 <g>
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
5.4 <defs>
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
5.5 <symbol>
x
y
width width-height-as-presentation-attribute で呈示属性として処理するか、属性として処理するか選択できます。
height
viewBox
preserveAspectRatio
refX ×
refY ×
aria attributes ×
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
5.6 <use>
x
y
width width-height-as-presentation-attribute で呈示属性として処理するか、属性として処理するか選択できます。
height
href
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
deprecated xlink attributes
5.7.3 <switch>
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
5.8 <desc> ×
core attributes
global event attributes ×
document element event attributes ×
5.8 <title> ×
core attributes
global event attributes ×
document element event attributes ×
5.9 <metadata> ×
core attributes
global event attributes ×
document element event attributes ×
6.2 <style>
type type="text/css" のみに対応しています。
media ×
title ×
core attributes
global event attributes ×
document element event attributes ×
9.2 <path>
d
pathLength ×
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
10.2 <rect>
pathLength ×
x
y
width width-height-as-presentation-attribute で呈示属性として処理するか、属性として処理するか選択できます。
height
rx
ry
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
10.3 <circle>
pathLength ×
cx
cy
r
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
10.4 <ellipse>
pathLength ×
cx
cy
rx
ry
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
10.5 <line>
pathLength ×
x1
y1
x2
y2
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
10.6 <polyline>
pathLength ×
points
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
10.7 <polygon>
pathLength ×
points
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
11.2 <text>
x
y
dx
dy
rotate
textLength
lengthAdjust
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
11.2 <tspan>
x
y
dx
dy
rotate
textLength
lengthAdjust
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
deprecated <tref> SVG 2.0では廃止されましたがSVG 1.1の仕様に沿って処理されます。
xlink:href
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
11.8.1 <textPath> ×
12.3 <image> image-element-eval-as-svg20が true のとき、参照先を静的セキュアモードで処理します。なので参照先が他のSVGを参照している場合、そのSVGは評価されません。
x
y
width
height
preserveAspectRatio
href
crossorigin ×
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
deprecated xlink attributes
presentation attributes
12.5 <foreignObject> ×
13.7.1 <marker>
viewBox
preserveAspectRatio
refX
refY
markerUnits
markerWidth
markerHeight
orient
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
deprecated xlink attributes
presentation attributes
14.2.2 <linearGradient>
x1
y1
x2
y2
gradientUnits
gradientTransform
spreadMethod
href
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
deprecated xlink attributes
presentation attributes
14.2.3 <radialGradient> radial-gradient-eval-as-svg20が false のとき、SVG 1.1仕様のように終端円内に焦点円を切り詰めfrを無視します。
gradientTransform
cx
cy
r
fx
fy
fr
gradientUnits
gradientTransform
spreadMethod
href
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
deprecated xlink attributes
presentation attributes
14.2.4 <stop>
offset
core attributes
global event attributes ×
document element event attributes ×
presentation attributes
14.3 <pattern>
viewBox
preserveAspectRatio
x
y
width
height
patternUnits
patternContentUnits
patternTransform
href
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
deprecated xlink attributes
presentation attributes
15.10 <script> ×
16.2 <a>
href xlink:href には、リンクの作成にある #nameddest=Chapter6 などの書式も指定することができます。ホットスポットは矩形となります。GUI では機能しません。
target ×
download ×
ping ×
rel ×
hreflang ×
type ×
referrerpolicy ×
aria attributes ×
conditional processing attributes
core attributes
global event attributes ×
document element event attributes ×
deprecated xlink attributes
presentation attributes
16.3.3 <view> ×
5.1 <clipPath> CSS Masking Module Level 1
clipPathUnits
class
style
externalResourcesRequired ×
transform
Core Attributes
Conditional Processing Attributes
Presentation Attributes
6.1 <mask> CSS Masking Module Level 1
class
style
x
y
width
height
maskUnits
maskContentUnits
Core Attributes
Conditional Processing Attributes
Presentation Attributes
7 <filter> Filter Effects Module Level 1
class
style
externalResourcesRequired ×
x
y
width
height
filterUnits
primitivetUnits
Core Attributes
Conditional Processing Attributes
Presentation Attributes
9.5 <feBlend> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
in2
Core Attributes
Presentation Attributes
9.6 <feColorMatrix> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
type
value
Core Attributes
Presentation Attributes
9.7 <feComponentTransfer> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
Core Attributes
Presentation Attributes
9.7.1 <feFuncR>
9.7.2 <feFuncG>
9.7.3 <feFuncB>
9.7.4 <feFuncA>
Filter Effects Module Level 1
type
tableValues
slope
intercept
amplitude
exponent
offset
Core Attributes
9.8 <feComposite> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
in2
operator
k1
k2
k3
k4
Core Attributes
Presentation Attributes
9.9 <feConvolveMatrix> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
order
kernelMatrix
divisor
bias
targetX
targetY
edgeMode
kernelUnitLength
preserveAlpha
Core Attributes
Presentation Attributes
9.10 <feDiffuseLighting> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
surfaceScale
diffuseConstant
kernelUnitLength
Core Attributes
Presentation Attributes
9.11 <feDisplaceMap> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
in2
scale
xChannelSelector
yChannelSelector
Core Attributes
Presentation Attributes
9.12 <feDropShadow> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
stdDeviation
dx
dy
Core Attributes
Presentation Attributes
9.13 <feFlood> Filter Effects Module Level 1
class
style
x
y
width
height
result
Core Attributes
Presentation Attributes
9.14 <feGaussianBlur> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
stdDeviation
edgeMode
Core Attributes
Presentation Attributes
9.15 <feImage> Filter Effects Module Level 1
class
style
x
y
width
height
result
externalResourceRequired ×
preserveAspectRatio
xlink:href
href
crossorigin ×
Core Attributes
Presentation Attributes
9.16 <feMerge> Filter Effects Module Level 1
class
style
x
y
width
height
result
Core Attributes
Presentation Attributes
9.16.1 <feMergeNode> Filter Effects Module Level 1
in
Core Attributes
9.17 <feMorphology> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
operator
radius
Core Attributes
Presentation Attributes
9.18 <feOffset> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
dx
dy
Core Attributes
Presentation Attributes
9.19 <feSpecularLighting> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
surfaceScale
specularConstant
specularExponent
kernelUnitsLength
Core Attributes
Presentation Attributes
9.20 <feTile> Filter Effects Module Level 1
class
style
x
y
width
height
result
in
Core Attributes
Presentation Attributes
9.21 <feTurbulence> × Filter Effects Module Level 1
2.13 <animate> × SVG Animations Level 2
2.14 <set> × SVG Animations Level 2
2.15 <discard> × SVG Animations Level 2
2.16 <animateMotion> × SVG Animations Level 2
2.18 <animateTransfer> × SVG Animations Level 2
Core Attributes
id
tabindex ×
autofocus ×
xml:lang, lang
xml:space
class
style
Conditional Processing Attributes
requiredExtensions ×
systemLanguage
deprecated xlink attributes
xlink:href
xlink:target ×
Presentation Attributes
fill
transform ×
alignment-baseline ×
baseline-shift
clip-path
clip-rule
color
color-interpolation ×
color-interpolation-filters
cusor ×
direction
display
dominant-baseline ×
fill-opacity
fill-rule
filter
flood-color
flood-opacity
font-family
font-size
font-size-adjust ×
font-stretch
font-style
font-variant
font-weight
glyph-orientation-horizontal ×
glyph-orientation-vertical ×
image-rendering ×
letter-spacing
lighting-color
marker-end
marker-mid
maeker-start
mask <funciri> | none | inherit のみ許容します。
mask-type
opacity
overflow
paint-order
pointer-events ×
shape-rendering ×
stop-color
stop-opacity
stroke-dasharray
stroke-dashoffset
stroke-linecap
stroke-linejoin arcs未対応
stroke-miterlimit
stroke-opacity
stroke-width
text-anchor
text-decoration
text-overflow ×
text-rendering ×
transform-origin
unicode-bidi
vector-effect ×
visibility
white-space
word-spacing
writing-mode
6.7 Required properties 呈示属性に含まれないものを列挙
isolation Compositing and Blending Level 1
transform-box CSS Transforms Module Level 1
text-align × CSS Text Module Level 3
text-align-last × CSS Text Module Level 3
text-indent × CSS Text Module Level 3
vertical-align × CSS Inline Layout Module Level 3
text-orientation CSS Writing Modes Level 3
11.10.1.4 kerning ×
11.10.2.2 line-height
line-break axf:line-breakと同じ値を許容します。
word-break Allows the same values as axf:word-break.axf:word-breakと同じ値を許容します。
hyphenate hyphenateと同じ値を許容します。
word-wrap axf:word-wrapと同じ値を許容します。
overflow-wrap ×
max-height <svg> にのみ有効です。
max-width
min-height
min-width
その他のプロパティ
mix-blend-mode Compositing and Blending Level 1 ラスタ画像化された時はSVG画像の後景との混色は行われません。また最外縁の <svg>background が設定されていると、SVG と background とで混色が行われます。

上の表中にない要素、属性には対応していません。

gzip圧縮されたSVGにも対応しています。

制限事項

  • <style> には CSS のみを記述できます。CSS2 のセレクタと一部のCSS3 のセレクタを評価しますが、以下の制約があります。 外部の CSS も同様です。
    • 以下の@ルールのみが評価されます。他は無視されます。
      • @namespace
      • @import
      • @font-face
    • 擬似要素の含まれるセレクタにはマッチしません。
    • 以下の擬似クラスに対応しています。他の擬似クラスの含まれるセレクタにはマッチしません。
      • :root
      • :first-child
      • :last-child
      • :only-child
      • :first-of-type
      • :last-of-type
      • :only-of-type
      • :nth-child()
      • :nth-last-child()
      • :nth-of-type()
      • :nth-last-of-type()
      • :empty
      • :not()
      • :target
    • 属性セレクタ [attr=val] では、文字列の一致性のみが評価されます。例えば、[x="1"] というセレクタに対して、x="1.0" という属性はマッチしません。 以下の形式に対応しています。
      • E[foo]
      • E[foo="bar"]
      • E[foo~="bar"]
      • E[foo^="bar"]
      • E[foo$="bar"]
      • E[foo*="bar"]
      • E[foo|="bar"]
    • 以下の関数が利用できます。他の関数は利用できません。
    • 文法違反があると、それ以降は評価されません。
    • inline svg の場合、最外縁のsvgの親・兄弟のノードはないものとしてセレクタが処理されます。また、最外縁のsvgは:rootにマッチしないように処理されます。
  • 外部のCSSを参照するには、<?xml-stylesheet?> を利用して次のようにしてください。
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/css" href="foobar.css"?>
    <svg xmlns="http://www.w3.org/2000/svg">
    ...
    
  • stop-opacity は PDF 出力にのみ対応しています。
  • 複雑(3色以上、repeat、reflect)なグラデーションのストロークは PDF・SVG 出力以外では無効です。
  • PDF1.3 では透明度は無効です。
  • filter・mask プロパティが存在するとき、SVG画像はラスタ画像として出力されます。このとき出力先カラースペースに合わせた変換は行われません。
  • バウンディングボックスの算出にclipPathは考慮されません。
  • ラスタ画像化されるとき、埋め込み禁止フォントが使われているテキストは描写されません。