Roxen.git/
server/
modules/
graphics/
graphic_text.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1997-09-01
1997-09-01 01:44:21 by Per Hedbor <ph@opera.com>
9e0c5f0f94b05a170a9f9663fb9261a4388d11ed (
9
lines) (+
4
/-
5
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed default font handling
Rev: server/modules/graphics/graphic_text.pike:1.60
1:
-
constant cvs_version="$Id: graphic_text.pike,v 1.
59
1997/09/01 01:
38
:
58
per Exp $";
+
constant cvs_version="$Id: graphic_text.pike,v 1.
60
1997/09/01 01:
44
:
21
per Exp $";
constant thread_safe=1; #include <module.h>
162:
if ((!name)||(name == "")) {
-
return get_font("default",
(int)args->font_size||
32,0,0,
-
lower_case(
args->
justification||"left"),
+
return get_font("default",32,0,0,lower_case(justification||"left"),
(float)xs, (float)ys); } else if(sscanf(name, "%*s/%*s") != 2) { name=QUERY(default_size)+"/"+name;
175:
{ report_debug("Failed to load the compatibility font "+name+ ", using the default font.\n");
-
return get_font("default",
(int)args->font_size||
32,0,0,
-
lower_case(
args->
justification||"left"),
+
return get_font("default",32,0,0,lower_case(justification||"left"),
(float)xs, (float)ys); } catch