Searched hist:"7 a8d5a2db3214be378c4450bd94e07db75d5e240" (Results 1 – 1 of 1) sorted by relevance
/haiku/src/servers/app/font/ |
H A D | GlyphLayoutEngine.h | 290fd41d06d2ba7228ea11bd44ecee5c9a4dc0f4 Thu Jun 04 18:15:57 UTC 2020 Pascal Abresch <nep@packageloss.eu> app_server: Fall back into non-matching font variants if necessary.
7a8d5a2db3214be378c4450bd94e07db75d5e240 introduced that the fallback tries to match the style instead of using regular, the fallback was broken in a different way until commit 4dcd8c81b12790b0ad7661f3ab8742ae619996be fixed the remaining issue, this commit makes the fallback first try the matching style and afterwards try the regular style (so as to improve above falling back to regular in every case).
Fixes #16189.
Change-Id: Iee956c4c1461794b4836c94e09d66d8cbf196678 Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com> Style fixes and use of BAutolock by me. Also changed the style fallback to use style 0 instead of "Regular". (cherry picked from commit 3c6422ea0fd90e002ae9f78b1ca3e67766cb3551) Reviewed-on: https://review.haiku-os.org/c/haiku/+/2877 7a8d5a2db3214be378c4450bd94e07db75d5e240 Sat Feb 29 18:59:58 UTC 2020 Pascal Abresch <nep@packageloss.eu> app_server: fix fallback for fonts where the variants match.
This does not produce a satisfactory fallback if i.e "extrabold" is selected since the CJK font does not have that, probably need to figure out a way to change the font style so that it renders correctly (render cjk as bold when display is at extrabold or so).
Fixes #15751.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
|