"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:
Adrien Destugues 2017-10-08 21:22:31 +02:00
parent 01ef811165
commit 1beeb1b002
1 changed files with 2 additions and 1 deletions

View File

@ -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