diff options
Diffstat (limited to 'src/haiku_font_support.cc')
-rw-r--r-- | src/haiku_font_support.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/haiku_font_support.cc b/src/haiku_font_support.cc index 9acdd652e34..95a0db8ae68 100644 --- a/src/haiku_font_support.cc +++ b/src/haiku_font_support.cc @@ -294,6 +294,9 @@ font_style_to_flags (char *st, struct haiku_font_pattern *pattern) char *token; int tok = 0; + if (!style) + return; + pattern->weight = NO_WEIGHT; pattern->width = NO_WIDTH; pattern->slant = NO_SLANT; @@ -804,3 +807,11 @@ be_evict_font_cache (void) font_object_cache[i] = NULL; } } + +void +be_font_style_to_flags (char *style, struct haiku_font_pattern *pattern) +{ + pattern->specified = 0; + + font_style_to_flags (style, pattern); +} |