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
56a41706
Commit
56a41706
authored
Apr 23, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Setup a better font size for the richedit rendering.
parent
bfa999ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
hlpfile.c
programs/winhelp/hlpfile.c
+5
-3
winhelp.c
programs/winhelp/winhelp.c
+5
-1
No files found.
programs/winhelp/hlpfile.c
View file @
56a41706
...
...
@@ -1113,13 +1113,15 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, BYTE
case
0x80
:
{
unsigned
font
=
GET_USHORT
(
format
,
1
);
unsigned
fs
;
attributes
.
wFont
=
font
;
WINE_TRACE
(
"Changing font to %d
\n
"
,
attributes
.
wFont
);
format
+=
3
;
fs
=
(
4
*
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
-
3
)
/
5
;
/* FIXME: missing at least colors, also bold attribute looses information */
sprintf
(
tmp
,
"
\\
f%d
\\
cf%d
\\
fs%d%s%s%s%s"
,
font
,
font
+
2
,
-
2
*
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
,
font
,
font
+
2
,
fs
,
page
->
file
->
fonts
[
font
].
LogFont
.
lfWeight
>
400
?
"
\\
b"
:
"
\\
b0"
,
page
->
file
->
fonts
[
font
].
LogFont
.
lfItalic
?
"
\\
i"
:
"
\\
i0"
,
page
->
file
->
fonts
[
font
].
LogFont
.
lfUnderline
?
"
\\
ul"
:
"
\\
ul0"
,
...
...
@@ -1530,7 +1532,7 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile)
flag
=
ref
[
dscr_offset
+
i
*
11
+
0
];
family
=
ref
[
dscr_offset
+
i
*
11
+
2
];
hlpfile
->
fonts
[
i
].
LogFont
.
lfHeight
=
-
ref
[
dscr_offset
+
i
*
11
+
1
]
/
2
-
3
;
hlpfile
->
fonts
[
i
].
LogFont
.
lfHeight
=
ref
[
dscr_offset
+
i
*
11
+
1
]
;
hlpfile
->
fonts
[
i
].
LogFont
.
lfWidth
=
0
;
hlpfile
->
fonts
[
i
].
LogFont
.
lfEscapement
=
0
;
hlpfile
->
fonts
[
i
].
LogFont
.
lfOrientation
=
0
;
...
...
programs/winhelp/winhelp.c
View file @
56a41706
...
...
@@ -1803,7 +1803,11 @@ static BOOL WINHELP_SplitLines(HWND hWnd, LPSIZE newsize)
HLPFILE
*
hlpfile
=
win
->
page
->
file
;
if
(
!
hlpfile
->
fonts
[
p
->
u
.
text
.
wFont
].
hFont
)
hlpfile
->
fonts
[
p
->
u
.
text
.
wFont
].
hFont
=
CreateFontIndirect
(
&
hlpfile
->
fonts
[
p
->
u
.
text
.
wFont
].
LogFont
);
{
LOGFONT
lf
=
hlpfile
->
fonts
[
p
->
u
.
text
.
wFont
].
LogFont
;
lf
.
lfHeight
=
-
lf
.
lfHeight
/
2
-
3
;
hlpfile
->
fonts
[
p
->
u
.
text
.
wFont
].
hFont
=
CreateFontIndirect
(
&
lf
);
}
hFont
=
hlpfile
->
fonts
[
p
->
u
.
text
.
wFont
].
hFont
;
color
=
hlpfile
->
fonts
[
p
->
u
.
text
.
wFont
].
color
;
}
...
...
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