Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
965b2852
Commit
965b2852
authored
Dec 11, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Dec 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do conversions between the font size specified in points (or
decipoints) and height specified in logical units.
parent
32f296b6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
fontdlg.c
dlls/commdlg/fontdlg.c
+0
-0
fontdlg.h
dlls/commdlg/fontdlg.h
+3
-3
fontdlg16.c
dlls/commdlg/fontdlg16.c
+13
-2
No files found.
dlls/commdlg/fontdlg.c
View file @
965b2852
This diff is collapsed.
Click to expand it.
dlls/commdlg/fontdlg.h
View file @
965b2852
...
...
@@ -45,9 +45,9 @@ typedef struct
INT
AddFontFamily
(
const
LOGFONTA
*
lplf
,
UINT
nFontType
,
LPCHOOSEFONTA
lpcf
,
HWND
hwnd
,
LPCFn_ENUMSTRUCT
e
);
INT
AddFontStyle
(
const
ENUMLOGFONTEXA
*
lpElfex
,
UINT
nFontType
,
LPCHOOSEFONTA
lpcf
,
HWND
hcmb2
,
HWND
hcmb3
,
HWND
hDlg
,
BOOL
iswin16
);
INT
AddFontStyle
(
const
ENUMLOGFONTEXA
*
lpElfex
,
const
TEXTMETRICA
*
metrics
,
UINT
nFontType
,
LPCHOOSEFONTA
lpcf
,
HWND
hcmb2
,
HWND
hcmb3
,
HWND
hDlg
,
BOOL
iswin16
);
void
_dump_cf_flags
(
DWORD
cflags
);
LRESULT
CFn_WMInitDialog
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
,
...
...
dlls/commdlg/fontdlg16.c
View file @
965b2852
...
...
@@ -59,6 +59,14 @@ static void FONT_LogFont16To32A( const LPLOGFONT16 font16, LPLOGFONTA font32 )
lstrcpynA
(
font32
->
lfFaceName
,
font16
->
lfFaceName
,
LF_FACESIZE
);
};
static
void
FONT_Metrics16To32A
(
const
TEXTMETRIC16
*
pm16
,
TEXTMETRICA
*
pm32a
)
{
ZeroMemory
(
pm32a
,
sizeof
(
TEXTMETRICA
));
/* NOTE: only the fields used by AddFontStyle() are filled in */
pm32a
->
tmHeight
=
pm16
->
tmHeight
;
pm32a
->
tmExternalLeading
=
pm16
->
tmExternalLeading
;
};
static
void
CFn_CHOOSEFONT16to32A
(
LPCHOOSEFONT16
chf16
,
LPCHOOSEFONTA
chf32a
)
{
chf32a
->
lStructSize
=
sizeof
(
CHOOSEFONTA
);
...
...
@@ -117,10 +125,13 @@ INT16 WINAPI FontStyleEnumProc16( SEGPTR logfont, SEGPTR metrics,
HWND
hDlg
=
GetParent
(
hcmb3
);
LPCHOOSEFONT16
lpcf
=
(
LPCHOOSEFONT16
)
GetWindowLongA
(
hDlg
,
DWL_USER
);
LOGFONT16
*
lplf
=
MapSL
(
logfont
);
TEXTMETRIC16
*
lpmtrx16
=
MapSL
(
metrics
);
ENUMLOGFONTEXA
elf32a
;
TEXTMETRICA
mtrx32a
;
FONT_LogFont16To32A
(
lplf
,
&
(
elf32a
.
elfLogFont
));
return
AddFontStyle
(
&
elf32a
,
nFontType
,
(
LPCHOOSEFONTA
)
lpcf
->
lpTemplateName
,
hcmb2
,
hcmb3
,
hDlg
,
TRUE
);
FONT_Metrics16To32A
(
lpmtrx16
,
&
mtrx32a
);
return
AddFontStyle
(
&
elf32a
,
&
mtrx32a
,
nFontType
,
(
LPCHOOSEFONTA
)
lpcf
->
lpTemplateName
,
hcmb2
,
hcmb3
,
hDlg
,
TRUE
);
}
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment