1 """
2 * Copyright 2007 Google Inc.
3 # Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http:#www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 """
17
18
19 """*
20 * Font size enumeration. Represents the seven basic HTML font sizes, as
21 * defined in CSS.
22 """
24
25
28
29
30 """*
31 * Gets the HTML font number associated with this font size.
32 *
33 * @return an integer from 1 to 7 inclusive
34 """
37
39 return str(self.number)
40
41
42 """*
43 * Represents an XX-Small font.
44 """
45 XX_SMALL = FontSize(1)
46
47 """*
48 * Represents an X-Small font.
49 """
50 X_SMALL = FontSize(2)
51
52 """*
53 * Represents a Small font.
54 """
55 SMALL = FontSize(3)
56
57 """*
58 * Represents a Medium font.
59 """
60 MEDIUM = FontSize(4)
61
62 """*
63 * Represents a Large font.
64 """
65 LARGE = FontSize(5)
66
67 """*
68 * Represents an X-Large font.
69 """
70 X_LARGE = FontSize(6)
71
72 """*
73 * Represents an XX-Large font.
74 """
75 XX_LARGE = FontSize(7)
76