/usr/share/doc/appstream/html/sect-Metadata-Fonts.html is in appstream-doc 0.9.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 45 46 47 48 49 50 51 52 53 54 55 56 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title xmlns:d="http://docbook.org/ns/docbook">2.4. Fonts</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta xmlns:d="http://docbook.org/ns/docbook" name="generator" content="publican v4.3.2" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="AppStream-AppStream-0.9-en-US-0.0-0" /><link rel="home" href="index.html" title="AppStream" /><link rel="up" href="chap-Metadata.html" title="Chapter 2. Upstream Metadata" /><link rel="prev" href="sect-Metadata-Addon.html" title="2.3. Addons" /><link rel="next" href="sect-Metadata-Codec.html" title="2.5. Codecs" /></head><body><p id="title"><a class="left" href="http://www.freedesktop.org/wiki/Distributions/AppStream/"><img alt="Product Site" src="Common_Content/images//image_left.png" /></a><a class="right" href="http://www.freedesktop.org/software/appstream/docs/"><img alt="Documentation Site" src="Common_Content/images//image_right.png" /></a></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="sect-Metadata-Addon.html"><strong>Prev</strong></a></li><li class="home">AppStream</li><li class="next"><a accesskey="n" href="sect-Metadata-Codec.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" lang="en-US"><div class="titlepage"><div><div><h2 class="title"><a id="sect-Metadata-Fonts">
</a>2.4. Fonts</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-fontdata-introduction">
</a>2.4.1. Introduction</h3></div></div></div><div class="para">
A software center can allow users to install additional fonts using font metadata. Also, applications can use font metadata to find missing fonts (e.g. a special methematical font is needed) in the distribution's software sources. This meta-info specification describes how metadata for fonts / font collections should be structured.
</div><div class="para">
Font packages can ship one or more files in <code class="filename">/usr/share/metainfo/%{id}.metainfo.xml</code>.
</div><div class="para">
Font metadata files can - just likle all other metainfo files - be translated. See the section about translation for more information about that.
</div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-fontdata-example">
</a>2.4.2. Example file</h3></div></div></div><div class="para">
A minimal font metainfo file can look like this:
</div><pre class="programlisting"><span xmlns="" class="line"></span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword"><?xml</span> version="1.0" encoding="UTF-8"<span xmlns="" class="perl_Keyword">?></span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword"><component</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"font"</span><span xmlns="" class="perl_Keyword">></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"><id></span>LinuxLibertine.font<span xmlns="" class="perl_Keyword"></id></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"><metadata_license></span>CC0<span xmlns="" class="perl_Keyword"></metadata_license></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"><name></span>Linux Libertine<span xmlns="" class="perl_Keyword"></name></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"><summary></span>Linux Libertine fonts<span xmlns="" class="perl_Keyword"></summary></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"><provides></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"><font</span><span xmlns="" class="perl_Others"> file=</span><span xmlns="" class="perl_String">"LinLibertine_R.otf"</span><span xmlns="" class="perl_Keyword">></span>Linux Libertine O<span xmlns="" class="perl_Keyword"></font></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"><font</span><span xmlns="" class="perl_Others"> file=</span><span xmlns="" class="perl_String">"LinLibertine_M.otf"</span><span xmlns="" class="perl_Keyword">></span>Linux Libertine Mono<span xmlns="" class="perl_Keyword"></font></span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword"></provides></span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword"></component></span></pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-fontdata-filespec">
</a>2.4.3. File specification</h3></div></div></div><div class="para">
Note that the XML root must have the <code class="literal">type</code> property set to <code class="code">font</code>. This clearly identified this metainfo document as describing a font.
</div><div class="variablelist"><dl class="variablelist"><dt><span class="term"><id/></span></dt><dd><div class="para">
For fonts, the <code class="literal">%{id}</code> must be the name of the font or font bundle without whitespaces, and must be suffixed with <code class="code">.font</code>.
</div></dd><dt><span class="term"><metadata_license/></span></dt><dd><div class="para">
The <code class="code"><metadata_license/></code> tag is required. See <a class="xref" href="chap-Metadata.html#tag-metadata_license"><metadata_license/></a> for a description of this tag.
</div></dd><dt><span class="term"><name/></span></dt><dd><div class="para">
Set a name for your font or font collection.
</div></dd><dt><span class="term"><summary/></span></dt><dd><div class="para">
A short description of the font described in this metainfo file.
</div></dd><dt><span class="term"><description/></span></dt><dd><div class="para">
Add a long description of your font. Some rules apply (will soon be split out to a "description guidelines" section).
</div><div class="para">
Do not assume the format is HTML. Only paragraph, ordered list and unordered list are supported at this time.
</div><div class="para">
See the generic component <a class="xref" href="chap-Metadata.html#tag-description"><description/></a> for a detailed description of this tag.
</div></dd><dt><span class="term"><screenshots/></span></dt><dd><div class="para">
A screenshot presents your font to the outside world.
</div><div class="para">
If the font metadata does not define an own screenshot, the AppStream generator is supposed to render one or multiple sample images using the respective font.
</div><div class="para">
See the generic component <a class="xref" href="chap-Metadata.html#tag-screenshots"><screenshots/></a> for a detailed description of this tag.
</div></dd><dt><span class="term"><url/></span></dt><dd><div class="para">
This is a recommended tag for links of type <code class="code">homepage</code>. Links of type <code class="code">homepage</code> should be a link to the upstream homepage for the application. See the generic component <a class="xref" href="chap-Metadata.html#tag-url"><url/></a> for a description of this tag.
</div></dd><dt><a id="tag-font-provides">
</a><span class="term"><provides/> ↪ <font/></span></dt><dd><div class="para">
This tag is described in detail for generic components at <a class="xref" href="chap-Metadata.html#tag-provides"><provides/></a>.
</div><div class="para">
You should add one or more children of type <code class="code"><font/></code> to make the font filenames and names known to the system. If this tag is not present, the <code class="literal">name</code> and <code class="literal">id</code> tag values can be used by the distribution's AppStream-generator to recreate this tag.
</div></dd></dl></div><div class="para">
For a component of type <code class="literal">font</code>, the following tags are required and must be present: <a class="xref" href="chap-Metadata.html#tag-id-generic"><id/></a>, <a class="xref" href="chap-Metadata.html#tag-name"><name/></a>, <a class="xref" href="chap-Metadata.html#tag-summary"><summary/></a>, <a class="xref" href="chap-Metadata.html#tag-metadata_license"><metadata_license/></a>.
</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="sect-Metadata-Addon.html"><strong>Prev</strong>2.3. Addons</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="sect-Metadata-Codec.html"><strong>Next</strong>2.5. Codecs</a></li></ul></body></html>
|