Alexandre Julliard : wineconsole: Don' t offer vertical fonts in the font dialog.

Alexandre Julliard julliard at winehq.org
Tue Jun 25 14:41:24 CDT 2013


Module: wine
Branch: master
Commit: ed853f93d40d342cc8cf33f7fe61a9739f36d294
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ed853f93d40d342cc8cf33f7fe61a9739f36d294

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 25 18:07:24 2013 +0200

wineconsole: Don't offer vertical fonts in the font dialog.

---

 programs/wineconsole/user.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c
index 9b8ad15..5c8c2c0 100644
--- a/programs/wineconsole/user.c
+++ b/programs/wineconsole/user.c
@@ -357,6 +357,7 @@ BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONTW* lf)
 {
     return (lf->lfPitchAndFamily & 3) == FIXED_PITCH &&
         /* (lf->lfPitchAndFamily & 0xF0) == FF_MODERN && */
+        lf->lfFaceName[0] != '@' &&
         (lf->lfCharSet == DEFAULT_CHARSET || lf->lfCharSet == g_uiDefaultCharset);
 }
 




More information about the wine-cvs mailing list