summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rufl_init.c2
-rw-r--r--rufl_paint.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/rufl_init.c b/rufl_init.c
index a195cd9..9190d3e 100644
--- a/rufl_init.c
+++ b/rufl_init.c
@@ -299,7 +299,7 @@ rufl_code rufl_init_add_font(char *identifier)
family = identifier;
if (dot)
*dot = 0;
- while (dot && (!weight || !slant)) {
+ while (dot) {
part = dot + 1;
dot = strchr(part, '.');
if (dot)
diff --git a/rufl_paint.c b/rufl_paint.c
index 28144e1..3236e9e 100644
--- a/rufl_paint.c
+++ b/rufl_paint.c
@@ -204,7 +204,7 @@ rufl_code rufl_process(rufl_action action,
struct rufl_family_map_entry *e =
&rufl_family_map[family - rufl_family_list];
used_weight = weight;
- if (weight <= 4)
+ if (weight <= 2)
search_direction = -1;
else
search_direction = +1;