- Fix prevent issue for wrong operator used (FT_STYLE_FLAG_ITALIC/BOLD)
Change-Id: I90fb7e7561c898287f13babc957b21c5bce155f9
description.family = FontFamily( ftFace->family_name );
// Note FreeType doesn't give too much info to build a proper font style.
- if( ftFace->style_flags | FT_STYLE_FLAG_ITALIC )
+ if( ftFace->style_flags & FT_STYLE_FLAG_ITALIC )
{
description.slant = FontSlant::ITALIC;
}
- if( ftFace->style_flags | FT_STYLE_FLAG_BOLD )
+ if( ftFace->style_flags & FT_STYLE_FLAG_BOLD )
{
description.weight = FontWeight::BOLD;
}