| Index: ui/gfx/font_render_params_linux.cc
|
| diff --git a/ui/gfx/font_render_params_linux.cc b/ui/gfx/font_render_params_linux.cc
|
| index 526c19d0188c64eb0f426e260eae620a8758840f..6b8f98baa23e79028beaf6f154984c7d01f4d932 100644
|
| --- a/ui/gfx/font_render_params_linux.cc
|
| +++ b/ui/gfx/font_render_params_linux.cc
|
| @@ -116,7 +116,9 @@ bool QueryFontconfig(const FontRenderParamsQuery& query,
|
| FcPatternAddInteger(query_pattern.get(), FC_SLANT,
|
| (query.style & Font::ITALIC) ? FC_SLANT_ITALIC : FC_SLANT_ROMAN);
|
| FcPatternAddInteger(query_pattern.get(), FC_WEIGHT,
|
| - (query.style & Font::BOLD) ? FC_WEIGHT_BOLD : FC_WEIGHT_NORMAL);
|
| + (query.weight == Font::Weight::INVALID)
|
| + ? static_cast<int>(Font::Weight::NORMAL)
|
| + : static_cast<int>(query.weight));
|
| }
|
|
|
| FcConfigSubstitute(NULL, query_pattern.get(), FcMatchPattern);
|
|
|