https://git.reactos.org/?p=reactos.git;a=commitdiff;h=93757884c1eb393a9a05f…
commit 93757884c1eb393a9a05fe1fcffe04f2ed601fac
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Dec 6 09:32:02 2018 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Dec 6 09:32:02 2018 +0900
[WIN32SS][FONT] Improve FamilyUnknown Penalty (#1097)
CORE-15419
---
win32ss/gdi/ntgdi/freetype.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index e07606ab52..d6aafb5679 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -4581,12 +4581,13 @@ GetFontPenalty(const LOGFONTW * LogFont,
/* Requested a family, but the candidate's family is different. */
GOT_PENALTY("Family", 9000);
}
- if ((TM->tmPitchAndFamily & 0xF0) == FF_DONTCARE)
- {
- /* FamilyUnknown Penalty 8000 */
- /* Requested a family, but the candidate has no family. */
- GOT_PENALTY("FamilyUnknown", 8000);
- }
+ }
+
+ if ((TM->tmPitchAndFamily & 0xF0) == FF_DONTCARE)
+ {
+ /* FamilyUnknown Penalty 8000 */
+ /* Requested a family, but the candidate has no family. */
+ GOT_PENALTY("FamilyUnknown", 8000);
}
/* Is the candidate a non-vector font? */