File: scripterapi-font.html

package info (click to toggle)
scribus-doc 1.2.1-2
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 2,920 kB
  • ctags: 374
  • sloc: makefile: 387; xml: 110
file content (21 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<qt>
<title>Font Related Commands</title>
<h2>Font Related Commands</h2>

<dl>

<dt><a name="-getFontNames"><strong>getFontNames</strong></a>(...)</dt>
<dd><code><a href="#-getFontNames">getFontNames</a>() -&gt; list</code>
<p>Returns a list with the names of all available fonts.</p></dd>
	
<dt><a name="-getXFontNames"><strong>getXFontNames</strong></a>(...)</dt>
<dd><code><a href="#-getXFontNames">getXFontNames</a>() -&gt; list of tuples</code>
<p>Returns a larger font info. It's a list of the tuples with: [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ]</p></dd></dl>
	
<dt><a name="-renderFont"><strong>renderFont</strong></a>(...)</dt>
<dd><code>rendeFont("name", "filename", "sample", size) -&gt; bool</code>
<p>Creates an image preview of font "name" with given text "sample" and size. Image is saved into "filename". Returns true when success.</p>
<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the specified font can't be found. May raise ValueError if an empty sample or filename is passed.</p></dd></dl>

</dl>
</qt>