1
<html><head><TITLE>AFont</TITLE></head>
3
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A> class AFont </H2><BLOCKQUOTE>
4
An abstract font class.
8
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
9
<param name=classes value="CAFont,MAFont.html,CXFont,MXFont.html">
10
<param name=before value="M,M^_">
11
<param name=after value="M,M">
12
<param name=indent value="0,0">
13
<param name=arrowdir value="down">
19
<DT><h3>Public Fields</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.4.1"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>HELVETICA</B> <br>
20
<I> Helvetica font family.</I>
21
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.2"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>TIMESROMAN</B> <br>
22
<I> Times Roman font family.</I>
23
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.3"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>COURIER</B> <br>
24
<I> Courier (fixed width) font family.</I>
25
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.4"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>NEWCENTURYSCHLBK</B> <br>
26
<I> New century schoolbook font family.</I>
27
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.5"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>SYMBOL</B> <br>
28
<I> Symbol font family.</I>
29
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.6"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>PLAIN</B> <br>
30
<I> Plain style constant. Can be mixed with other style constants.</I>
31
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.7"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>BOLD</B> <br>
32
<I> Bold style constant. Can be mixed with other style constants.</I>
33
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.8"> <IMG BORDER=0 SRC=icon1.gif></A> static const int </TD><TD><B>ITALIC</B> <br>
34
<I> Italicized style constant. Can be mixed with other style constants.</I>
35
</TD></TR></TABLE><TABLE>
36
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.4.9"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>AFont</B> (const <!1><A HREF="string.html">string</A>* <!2><A HREF="AFont.html#DOC.4.24">foundry</A>, int name, int <!2><A HREF="AFont.html#DOC.4.26">style</A>, int <!2><A HREF="AFont.html#DOC.4.27">size</A>, bool <!2><A HREF="AFont.html#DOC.4.28">scalable</A>)<br>
37
<I> Creates new font with the specified name, style and point size.</I>
38
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.10"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetFamily</B> ()<br>
39
<I> Gets the family name of the font.</I>
40
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.11"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetStyle</B> ()<br>
41
<I> Gets the style of the font.</I>
42
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.12"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetSize</B> ()<br>
43
<I> Gets the point size of the font.</I>
44
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.13"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsScalable</B> ()<br>
45
<I> Is the font scalable.</I>
46
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.14"> <IMG BORDER=0 SRC=icon1.gif></A> const <!1><A HREF="string.html">string</A>* </TD><TD><B>GetFoundry</B> ()<br>
48
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.15"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetScalable</B> (bool b)<br>
50
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.16"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsUnderlined</B> ()<br>
51
<I> Is the font underlined.</I>
52
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.17"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetUnderlined</B> (bool b)<br>
53
<I> Set/Unset font underlined option</I>
54
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.18"> <IMG BORDER=0 SRC=icon1.gif></A> double </TD><TD><B>GetFactor</B> ()<br>
55
<I> The factor with which a scalable font is scaled.</I>
56
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.19"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetFactor</B> (double d)<br>
58
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.20"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsPlain</B> ()<br>
59
<I> Returns true if the font is plain.</I>
60
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.21"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsBold</B> ()<br>
61
<I> Returns true if the font is bold.</I>
62
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.4.22"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsItalic</B> ()<br>
63
<I> Returns true if the font is italic.</I>
64
</TD></TR></TABLE></DL>
67
<h2> Documentation </h2>
69
An abstract font class.
76
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int HELVETICA</B></TT>
77
<DD> Helvetica font family.
81
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int TIMESROMAN</B></TT>
82
<DD> Times Roman font family.
86
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int COURIER</B></TT>
87
<DD> Courier (fixed width) font family.
89
<A NAME="NEWCENTURYSCHLBK">
91
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int NEWCENTURYSCHLBK</B></TT>
92
<DD> New century schoolbook font family.
96
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int SYMBOL</B></TT>
97
<DD> Symbol font family.
101
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int PLAIN</B></TT>
102
<DD> Plain style constant. Can be mixed with other style constants.
106
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int BOLD</B></TT>
107
<DD> Bold style constant. Can be mixed with other style constants.
111
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> static const int ITALIC</B></TT>
112
<DD> Italicized style constant. Can be mixed with other style constants.
116
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> AFont(const <!1><A HREF="string.html">string</A>* <!2><A HREF="AFont.html#DOC.4.24">foundry</A>, int name, int <!2><A HREF="AFont.html#DOC.4.26">style</A>, int <!2><A HREF="AFont.html#DOC.4.27">size</A>, bool <!2><A HREF="AFont.html#DOC.4.28">scalable</A>)</B></TT>
117
<DD> Creates new font with the specified name, style and point size.
121
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetFamily()</B></TT>
122
<DD> Gets the family name of the font.
126
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetStyle()</B></TT>
127
<DD> Gets the style of the font.
131
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetSize()</B></TT>
132
<DD> Gets the point size of the font.
134
<A NAME="IsScalable">
136
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsScalable()</B></TT>
137
<DD> Is the font scalable.
139
<A NAME="GetFoundry">
141
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const <!1><A HREF="string.html">string</A>* GetFoundry()</B></TT>
143
<A NAME="SetScalable">
145
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetScalable(bool b)</B></TT>
147
<A NAME="IsUnderlined">
149
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsUnderlined()</B></TT>
150
<DD> Is the font underlined.
152
<A NAME="SetUnderlined">
154
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetUnderlined(bool b)</B></TT>
155
<DD> Set/Unset font underlined option
159
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> double GetFactor()</B></TT>
160
<DD> The factor with which a scalable font is scaled.
164
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetFactor(double d)</B></TT>
168
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsPlain()</B></TT>
169
<DD> Returns true if the font is plain.
173
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsBold()</B></TT>
174
<DD> Returns true if the font is bold.
178
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsItalic()</B></TT>
179
<DD> Returns true if the font is italic.
182
<DL><DT><B>Direct child classes:
183
</B><DD><A HREF="XFont.html"> XFont </A><br>
185
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I> <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
186
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
187
<P Align=Center><I>this page has been generated automatically by doc++</I>
188
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte Zöckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>