summaryrefslogtreecommitdiffstats
path: root/scribus/doc/it/scripterapi-font.html
diff options
context:
space:
mode:
authorcraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-04-25 20:57:24 +0000
committercraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-04-25 20:57:24 +0000
commit4669bb25fc218ac581eb9708e478cd40d3840a9b (patch)
treef8fb94d5ef8698eff014b890aca3689db602ad51 /scribus/doc/it/scripterapi-font.html
parenteb6b975c786f690ecf62fd44459b839aefabf563 (diff)
downloadscribus-4669bb25fc218ac581eb9708e478cd40d3840a9b.tar.gz
scribus-4669bb25fc218ac581eb9708e478cd40d3840a9b.tar.xz
scribus-4669bb25fc218ac581eb9708e478cd40d3840a9b.zip
Update Italian documentation
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17472 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/doc/it/scripterapi-font.html')
-rw-r--r--scribus/doc/it/scripterapi-font.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/scribus/doc/it/scripterapi-font.html b/scribus/doc/it/scripterapi-font.html
new file mode 100644
index 0000000..b6d9b92
--- /dev/null
+++ b/scribus/doc/it/scripterapi-font.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>Font Related Commands</title>
+</head>
+<body>
+<h2>Font Related Commands</h2>
+
+<dl>
+
+<dt><a name="-getFontNames"><strong>getFontNames</strong></a>(...)</dt>
+<dd><code>getFontNames() -&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>getXFontNames() -&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>renderFont("name", "filename", "sample", size, format="PPM") -&gt; bool</code>
+<p>Creates an image preview of font "name" with given text "sample" and size. If "filename" is not "", image is saved into "filename". Otherwise image data is returned as a string. The optional "format" argument specifies the image format to generate, and supports any format allowed by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM.</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>
+</body>
+</html>