Commit 52bbc64a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Handle zero specified weight as normal.

parent 1540a193
...@@ -1301,7 +1301,7 @@ void opentype_get_font_properties(struct file_stream_desc *stream_desc, struct d ...@@ -1301,7 +1301,7 @@ void opentype_get_font_properties(struct file_stream_desc *stream_desc, struct d
if (usWeightClass > DWRITE_FONT_WEIGHT_ULTRA_BLACK) if (usWeightClass > DWRITE_FONT_WEIGHT_ULTRA_BLACK)
props->weight = DWRITE_FONT_WEIGHT_ULTRA_BLACK; props->weight = DWRITE_FONT_WEIGHT_ULTRA_BLACK;
else else if (usWeightClass > 0)
props->weight = usWeightClass; props->weight = usWeightClass;
if (version >= 4 && (fsSelection & OS2_FSSELECTION_OBLIQUE)) if (version >= 4 && (fsSelection & OS2_FSSELECTION_OBLIQUE))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment