Debian Codegraph @

opcodes/flsetfont.xml

raw symbols SCIP
1
2 <refentry id="FLsetFont">
3 <indexterm id="IndexFLsetFont"><primary>FLsetFont</primary></indexterm>
4 <refentryinfo><title>FLTK:Appearance</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLsetFont</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>FLsetFont</refname>
13 <refpurpose>
14 Sets the font type of a FLTK widget.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac.
22 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
23 <para>
24 <emphasis>FLsetFont</emphasis> sets the font type of the target widget.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis><command>FLsetFont</command> ifont, ihandle</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>ifont</emphasis> -- sets the the font type of the label of a widget.
37 </para>
38
39 <para>
40 Legal values for ifont argument are:
41
42 <itemizedlist>
43 <listitem><para>1 - Helvetica (same as Arial under Windows)</para></listitem>
44 <listitem><para>2 - Helvetica Bold</para></listitem>
45 <listitem><para>3 - Helvetica Italic</para></listitem>
46 <listitem><para>4 - Helvetica Bold Italic</para></listitem>
47 <listitem><para>5 - Courier</para></listitem>
48 <listitem><para>6 - Courier Bold</para></listitem>
49 <listitem><para>7 - Courier Italic</para></listitem>
50 <listitem><para>8 - Courier Bold Italic</para></listitem>
51 <listitem><para>9 - Times</para></listitem>
52 <listitem><para>10 - Times Bold</para></listitem>
53 <listitem><para>11 - Times Italic</para></listitem>
54 <listitem><para>12 - Times Bold Italic</para></listitem>
55 <listitem><para>13 - Symbol</para></listitem>
56 <listitem><para>14 - Screen</para></listitem>
57 <listitem><para>15 - Screen Bold</para></listitem>
58 <listitem><para>16 - Dingbats</para></listitem>
59 </itemizedlist>
60 </para>
61
62 <para>
63 <emphasis>ihandle</emphasis> -- an integer number (used as unique identifier) taken from the output of a previously located widget opcode (which corresponds to the target widget). It is used to unequivocally identify the widget when modifying its appearance with this class of opcodes. The user must not set the <emphasis>ihandle</emphasis> value directly, otherwise a Csound crash will occur.
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>See Also</title>
69 <para>
70 <link linkend="FLcolor2"><citetitle>FLcolor2</citetitle></link>,
71 <link linkend="FLhide"><citetitle>FLhide</citetitle></link>,
72 <link linkend="FLlabel"><citetitle>FLlabel</citetitle></link>,
73 <link linkend="FLsetAlign"><citetitle>FLsetAlign</citetitle></link>,
74 <link linkend="FLsetBox"><citetitle>FLsetBox</citetitle></link>,
75 <link linkend="FLsetColor"><citetitle>FLsetColor</citetitle></link>,
76 <link linkend="FLsetColor2"><citetitle>FLsetColor2</citetitle></link>,
77 <link linkend="FLsetFont"><citetitle>FLsetFont</citetitle></link>,
78 <link linkend="FLsetPosition"><citetitle>FLsetPosition</citetitle></link>,
79 <link linkend="FLsetSize"><citetitle>FLsetSize</citetitle></link>,
80 <link linkend="FLsetText"><citetitle>FLsetText</citetitle></link>,
81 <link linkend="FLsetTextColor"><citetitle>FLsetTextColor</citetitle></link>,
82 <link linkend="FLsetTextSize"><citetitle>FLsetTextSize</citetitle></link>,
83 <link linkend="FLsetTextType"><citetitle>FLsetTextType</citetitle></link>,
84 <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link>,
85 <link linkend="FLsetVal"><citetitle>FLsetVal</citetitle></link>,
86 <link linkend="FLshow"><citetitle>FLshow</citetitle></link>
87 </para>
88 </refsect1>
89
90 <refsect1>
91 <title>Credits</title>
92 <para>Author: &namegabriel;</para>
93 <para>New in version 4.22</para>
94 </refsect1>
95 </refentry>