"thin" fonts are B_LIGHT_FACE
In Noto fonts, "thin" is another level of "light" apparently (somewhere in between "extralight" and "medium"... lots of choice these days). Tell app_server about it so the proper font flags can be set. This may help avoid confusion, as Terminal (and FontDemo, in less predictable ways) tend to pick the "thin" variant of fonts even when "regular" is requested.
This commit is contained in:
parent
01ef811165
commit
1beeb1b002
|
@ -223,7 +223,8 @@ FontStyle::_TranslateStyleToFace(const char* name) const
|
|||
if (string.IFindFirst("condensed") >= 0)
|
||||
face |= B_CONDENSED_FACE;
|
||||
|
||||
if (string.IFindFirst("light") >= 0)
|
||||
if (string.IFindFirst("light") >= 0
|
||||
|| string.IFindFirst("thin") >= 0)
|
||||
face |= B_LIGHT_FACE;
|
||||
|
||||
if (string.IFindFirst("heavy") >= 0
|
||||
|
|
Loading…
Reference in New Issue