~ubuntu-branches/debian/squeeze/mplayer/squeeze

« back to all changes in this revision

Viewing changes to DOCS/HTML/it/skin-fonts.html

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2010-07-31 23:44:52 UTC
  • mfrom: (1.1.4 upstream) (8.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100731234452-j7yyrgsh1wustazr
Tags: 2:1.0~rc3++final.dfsg1-1
* upload to unstable
* enable mencoder and mplayer-gui package
* build again against the system FFmpeg 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>B.3. Fonts</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="MPlayer - Il Visualizzatore di film"><link rel="up" href="skin.html" title="Appendice B. MPlayer skin format"><link rel="prev" href="skin-file.html" title="B.2. The skin file"><link rel="next" href="skin-gui.html" title="B.4. GUI messages"><link rel="preface" href="howtoread.html" title="Come leggere questa documentazione"><link rel="chapter" href="intro.html" title="Capitolo 1. Introduzione"><link rel="chapter" href="install.html" title="Capitolo 2. Installazione"><link rel="chapter" href="usage.html" title="Capitolo 3. Utilizzo"><link rel="chapter" href="cd-dvd.html" title="Capitolo 4. Utilizzo CD/DVD"><link rel="chapter" href="tv.html" title="Capitolo 5. TV"><link rel="chapter" href="radio.html" title="Capitolo 6. Radio"><link rel="chapter" href="video.html" title="Capitolo 7. Dispositivi di uscita video"><link rel="chapter" href="ports.html" title="Capitolo 8. Ports"><link rel="chapter" href="mencoder.html" title="Capitolo 9. Utilizzo base di MEncoder"><link rel="chapter" href="encoding-guide.html" title="Capitolo 10. La codifica con MEncoder"><link rel="chapter" href="faq.html" title="Capitolo 11. Frequently Asked Questions"><link rel="appendix" href="bugreports.html" title="Appendice A. Come segnalare i bug (errori)"><link rel="appendix" href="skin.html" title="Appendice B. MPlayer skin format"><link rel="subsection" href="skin-fonts.html#skin-fonts-symbols" title="B.3.1. Symbols"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">B.3. Fonts</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="skin-file.html">Indietro</a> </td><th width="60%" align="center">Appendice B. <span class="application">MPlayer</span> skin format</th><td width="20%" align="right"> <a accesskey="n" href="skin-gui.html">Avanti</a></td></tr></table><hr></div><div class="sect1" title="B.3. Fonts"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="skin-fonts"></a>B.3. Fonts</h2></div></div></div><p>
 
2
As mentioned in the section about the parts of a skin, a font is defined by an
 
3
image and a description file. You can place the characters anywhere in the
 
4
image, but make sure that their position and size is given in the description
 
5
file exactly.
 
6
</p><p>
 
7
The font description file (with <tt class="filename">.fnt</tt> extension) can have
 
8
comment lines starting with '<code class="literal">;</code>'. The file must have a line
 
9
in the form
 
10
<a name="skin-font-image"></a>
 
11
</p><pre class="programlisting">image = <em class="replaceable"><code>image</code></em></pre><p>
 
12
Where <code class="literal"><em class="replaceable"><code>image</code></em></code> is the name of the
 
13
image file to be used for the font (you do not have to specify the extension).
 
14
<a name="skin-font-char"></a>
 
15
</p><pre class="programlisting">"char" = X, Y, width, height</pre><p>
 
16
Here <code class="literal">X</code> and <code class="literal">Y</code> specify the position of the
 
17
<code class="literal">char</code> character in the image (<code class="literal">0,0</code> is the
 
18
upper left corner). <code class="literal">width</code> and <code class="literal">height</code> are
 
19
the dimensions of the character in pixels.
 
20
</p><p>
 
21
This example defines the A, B, C characters using <tt class="filename">font.png</tt>.
 
22
</p><pre class="programlisting">
 
23
; Can be "font" instead of "font.png".
 
24
image = font.png
 
25
 
 
26
; Three characters are enough for demonstration purposes :-)
 
27
"A" =  0,0, 7,13
 
28
"B" =  7,0, 7,13
 
29
"C" = 14,0, 7,13
 
30
</pre><p>
 
31
</p><div class="sect2" title="B.3.1. Symbols"><div class="titlepage"><div><div><h3 class="title"><a name="skin-fonts-symbols"></a>B.3.1. Symbols</h3></div></div></div><p>
 
32
Some characters have special meanings when returned by some of the variables
 
33
used in <a class="link" href="skin-file.html#skin-dlabel">dlabel</a>. These characters are meant
 
34
to be shown as symbols so that things like a nice DVD logo can be displayed
 
35
instead of the character '<code class="literal">d</code>' for a DVD stream.
 
36
</p><p>
 
37
The following table lists all the characters that can be used to display
 
38
symbols (and thus require a different font).
 
39
</p><div class="informaltable"><table border="1"><colgroup><col><col></colgroup><thead><tr><th>Character</th><th>Symbol</th></tr></thead><tbody><tr><td><span class="keycap"><b>p</b></span></td><td>play</td></tr><tr><td><span class="keycap"><b>s</b></span></td><td>stop</td></tr><tr><td><span class="keycap"><b>e</b></span></td><td>pause</td></tr><tr><td><span class="keycap"><b>n</b></span></td><td>no sound</td></tr><tr><td><span class="keycap"><b>m</b></span></td><td>mono sound</td></tr><tr><td><span class="keycap"><b>t</b></span></td><td>stereo sound</td></tr><tr><td><span class="keycap"><b>f</b></span></td><td>stream is a file</td></tr><tr><td><span class="keycap"><b>v</b></span></td><td>stream is a Video CD</td></tr><tr><td><span class="keycap"><b>d</b></span></td><td>stream is a DVD</td></tr><tr><td><span class="keycap"><b>u</b></span></td><td>stream is a URL</td></tr></tbody></table></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="skin-file.html">Indietro</a> </td><td width="20%" align="center"><a accesskey="u" href="skin.html">Risali</a></td><td width="40%" align="right"> <a accesskey="n" href="skin-gui.html">Avanti</a></td></tr><tr><td width="40%" align="left" valign="top">B.2. The skin file </td><td width="20%" align="center"><a accesskey="h" href="index.html">Partenza</a></td><td width="40%" align="right" valign="top"> B.4. GUI messages</td></tr></table></div></body></html>