1 | | |
2 | | |
3 | | |
4 | | |
5 | | |
6 | | |
7 | | |
8 | | |
9 | | |
10 | | |
11 | | |
12 | | |
13 | | |
14 | | |
15 | | |
16 | | |
17 | | |
18 | | |
19 | | |
20 | | |
21 | | |
22 | | |
23 | | |
24 | | |
25 | | |
26 | | |
27 | | |
28 | | |
29 | | |
30 | | |
31 | | |
32 | | |
33 | | |
34 | | |
35 | | |
36 | | |
37 | | |
38 | | |
39 | | |
40 | | |
41 | | |
42 | | |
43 | | |
44 | | |
45 | | |
46 | | |
47 | | |
48 | | |
49 | | |
50 | | |
51 | | |
52 | | |
53 | | |
54 | | |
55 | | |
56 | | |
57 | | |
58 | | |
59 | | |
60 | | |
61 | | |
62 | | |
63 | | |
| #include <config.h> | constant cvs_version = "$Id: builtin.pike,v 1.2 2000/09/19 10:30:45 nilsson Exp $"; | | constant name = "Builtin fonts"; | constant doc = "Fonts included in pike (and roxen)"; | | inherit FontHandler; | | array available_fonts() | { | return ({ "pike builtin", "roxen builtin" }); | } | | array(mapping) font_information( string fnt ) | { | switch( replace(lower_case(fnt)," ","_")-"_" ) | { | case "pikebuiltin": | return ({ | ([ | "name":"pike builtin", | "family":"Pike builtin font", | "path":"-", | "style":"normal", | "format":"bitmap dump", | ]) | }); | case "roxenbuiltin": | return ({ | ([ | "name":"roxen builtin", | "family":"Roxen builtin font", | "path":"-", | "style":"normal", | "format":"scalable vector font", | ]) | }); | } | } | | array has_font( string name, int size ) | { | switch( replace(lower_case(name)," ","_")-"_" ) | { | case "pikebuiltin": | case "roxenbuiltin": | return ({ "nn" }); | } | return 0; | } | | Font open( string name, int size, int bold, int italic ) | { | switch( replace(lower_case(name)," ","_")-"_" ) | { | case "pikebuiltin": | return Image.Font(); | case "roxenbuiltin": | return Image.Font(); | } | } | | |
|