mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
wordpad: Don't offer vertical fonts in the font dialog.
This commit is contained in:
parent
2f7a7caa92
commit
fb6b0f93c2
1 changed files with 3 additions and 1 deletions
|
@ -576,7 +576,7 @@ static void dialog_choose_font(void)
|
||||||
cf.lStructSize = sizeof(cf);
|
cf.lStructSize = sizeof(cf);
|
||||||
cf.hwndOwner = hMainWnd;
|
cf.hwndOwner = hMainWnd;
|
||||||
cf.lpLogFont = &lf;
|
cf.lpLogFont = &lf;
|
||||||
cf.Flags = CF_SCREENFONTS | CF_NOSCRIPTSEL | CF_INITTOLOGFONTSTRUCT | CF_EFFECTS;
|
cf.Flags = CF_SCREENFONTS | CF_NOSCRIPTSEL | CF_INITTOLOGFONTSTRUCT | CF_EFFECTS | CF_NOVERTFONTS;
|
||||||
|
|
||||||
ZeroMemory(&fmt, sizeof(fmt));
|
ZeroMemory(&fmt, sizeof(fmt));
|
||||||
fmt.cbSize = sizeof(fmt);
|
fmt.cbSize = sizeof(fmt);
|
||||||
|
@ -619,6 +619,8 @@ static int CALLBACK enum_font_proc(const LOGFONTW *lpelfe, const TEXTMETRICW *lp
|
||||||
{
|
{
|
||||||
HWND hListWnd = (HWND) lParam;
|
HWND hListWnd = (HWND) lParam;
|
||||||
|
|
||||||
|
if (lpelfe->lfFaceName[0] == '@') return 1; /* ignore vertical fonts */
|
||||||
|
|
||||||
if(SendMessageW(hListWnd, CB_FINDSTRINGEXACT, -1, (LPARAM)lpelfe->lfFaceName) == CB_ERR)
|
if(SendMessageW(hListWnd, CB_FINDSTRINGEXACT, -1, (LPARAM)lpelfe->lfFaceName) == CB_ERR)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue