~ubuntu-branches/ubuntu/lucid/ming/lucid

« back to all changes in this revision

Viewing changes to docs/perl/SWF::Font.html

  • Committer: Bazaar Package Importer
  • Author(s): Ilya Barygin
  • Date: 2010-02-11 10:57:41 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100211105741-lzpmxc0703c4bo1w
Tags: 1:0.4.3-1ubuntu1
* Merge from Debian unstable (LP: #192664), remaining changes:
  - Python 2.6 transition:
    - debian/rules:
      + Include /usr/share/python/python.mk.
      + Add py_setup_install_args macro to setup.py install.
      + Installed modules differ between python versions and can't be shared,
        use DH_PYCENTRAL=nomove.
    - Remove unnecessary debian/python-ming.{dirs,files}, Python 2.3 is not
      supported anymore.
* debian/control: separate dependencies by commas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml">
 
4
<head>
 
5
<title>SWF::Font - SWF Font class</title>
 
6
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
7
<link rev="made" href="mailto:feedback@suse.de" />
 
8
</head>
 
9
 
 
10
<body style="background-color: white">
 
11
 
 
12
 
 
13
<!-- INDEX BEGIN -->
 
14
<div name="index">
 
15
<p><a name="__index__"></a></p>
 
16
 
 
17
<ul>
 
18
 
 
19
        <li><a href="#name">NAME</a></li>
 
20
        <li><a href="#synopsis">SYNOPSIS</a></li>
 
21
        <li><a href="#description">DESCRIPTION</a></li>
 
22
        <li><a href="#notes">NOTES</a></li>
 
23
        <li><a href="#methods">METHODS</a></li>
 
24
        <li><a href="#author">AUTHOR</a></li>
 
25
        <li><a href="#see_also">SEE ALSO</a></li>
 
26
</ul>
 
27
 
 
28
<hr name="index" />
 
29
</div>
 
30
<!-- INDEX END -->
 
31
 
 
32
<p>
 
33
</p>
 
34
<h1><a name="name">NAME</a></h1>
 
35
<p>SWF::Font - SWF Font class</p>
 
36
<p>
 
37
</p>
 
38
<hr />
 
39
<h1><a name="synopsis">SYNOPSIS</a></h1>
 
40
<pre>
 
41
        use SWF::Font;
 
42
        $font = new SWF::Font();</pre>
 
43
<p>
 
44
</p>
 
45
<hr />
 
46
<h1><a name="description">DESCRIPTION</a></h1>
 
47
<p>Font object for later usage in Text and TextField objects.</p>
 
48
<p>
 
49
</p>
 
50
<hr />
 
51
<h1><a name="notes">NOTES</a></h1>
 
52
<p>Ming 0.3's old getShape($font, $code) has been removed from interface.
 
53
For getting details of glyph information you could draw a character 
 
54
into a shape and call <code>dumpOutline()</code> method, just like</p>
 
55
<pre>
 
56
        $sh=new SWF::Shape();
 
57
        $sh-&gt;drawGlyph($font, $char_nr);
 
58
        print $sh-&gt;dumpOutline();</pre>
 
59
<p>
 
60
</p>
 
61
<hr />
 
62
<h1><a name="methods">METHODS</a></h1>
 
63
<dl>
 
64
<dt><strong><a name="font" class="item">new SWF::Font($filename)</a></strong>
 
65
 
 
66
<dd>
 
67
<p>Creates a Font object. $filename selects either True-Type Font '(ttf')
 
68
file or Font Definition Block ('fdb') file as written by makefdb tool.</p>
 
69
</dd>
 
70
</li>
 
71
<dt><strong><a name="getstringwidth" class="item">$font-&gt;<code>getStringWidth($string)</code></a></strong>
 
72
 
 
73
<dt><strong><a name="getutf8stringwidth" class="item">$font-&gt;getUTF8StringWidth($UTF8string)</a></strong>
 
74
 
 
75
<dd>
 
76
<p>Returns width of given string in pixels.</p>
 
77
</dd>
 
78
</li>
 
79
<dt><strong><a name="getascent" class="item">$font-&gt;<code>getAscent()</code></a></strong>
 
80
 
 
81
<dd>
 
82
<p>Returns the ascent of the current font, or 0 if not available.</p>
 
83
</dd>
 
84
</li>
 
85
<dt><strong><a name="getdescent" class="item">$font-&gt;<code>getDescent()</code></a></strong>
 
86
 
 
87
<dd>
 
88
<p>Returns the descent of the current font, or 0 if not available.</p>
 
89
</dd>
 
90
</li>
 
91
<dt><strong><a name="getleading" class="item">$font-&gt;<code>getLeading()</code></a></strong>
 
92
 
 
93
<dd>
 
94
<p>Returns the leading of the current font, or 0 if not available.</p>
 
95
</dd>
 
96
</li>
 
97
<dt><strong><a name="getname" class="item">$font-&gt;<code>getName()</code></a></strong>
 
98
 
 
99
<dd>
 
100
<p>Returns the name of the current font, do not confuse with font filename.</p>
 
101
</dd>
 
102
</li>
 
103
<dt><strong><a name="getglyphcount" class="item">$font-&gt;<code>getGlyphCount()</code></a></strong>
 
104
 
 
105
<dd>
 
106
<p>Returns the glyph count of the current font.</p>
 
107
</dd>
 
108
</li>
 
109
</dl>
 
110
<p>
 
111
</p>
 
112
<hr />
 
113
<h1><a name="author">AUTHOR</a></h1>
 
114
<p>developers of ming
 
115
ming.sourceforge.net</p>
 
116
<p>
 
117
</p>
 
118
<hr />
 
119
<h1><a name="see_also">SEE ALSO</a></h1>
 
120
<p>SWF, SWF::BrowserFont, SWF::Text, SWF::TextField, SWF::Shape, ISO 10646 (Unicode)</p>
 
121
 
 
122
</body>
 
123
 
 
124
</html>