aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/element/font-face-src/index.html
blob: 40e4c5efdf7224218b90f9fb521e52c94c5ad31a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: font-face-src
slug: Web/SVG/Element/font-face-src
tags:
  - SVG
  - SVG字体
  - 元素
  - 参考
  - 需要兼容性表
  - 需要示例
translation_of: Web/SVG/Element/font-face-src
---
<div>{{SVGRef}}</div>

<p><code>font-face-src</code>元素相当于CSS规范中的@font-face属性。它可以作为{{ SVGElement("font-face-name") }}元素的容器使用,指向本地安装的字体副本,{{ SVGElement("font-face-uri") }}元素则是利用远程定义字体。</p>

<h2 id="用法">用法</h2>

<p>{{svginfo}}</p>

<h2 id="示例">示例</h2>

<h2 id="属性">属性</h2>

<h3 id="全局属性">全局属性</h3>

<ul>
 <li><a href="/en/SVG/Attribute#Core" title="en/SVG/Attribute#Core">核心属性</a> »</li>
</ul>

<h3 id="专有属性">专有属性</h3>

<p><em></em></p>

<h2 id="DOM_接口">DOM 接口</h2>

<p>该元素实现了<code><a href="/en/DOM/SVGFontFaceSrcElement" title="en/DOM/SVGFontFaceSrcElement">SVGFontFaceSrcElement</a></code>接口。</p>

<h2 id="相关内容">相关内容</h2>

<ul>
 <li>{{ SVGElement("font-face") }}</li>
 <li><a href="/en/SVG/Tutorial/SVG_fonts" title="en/SVG/Tutorial/SVG_Fonts">SVG教程:SVG字体</a></li>
</ul>