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
e8eb6d1b
Commit
e8eb6d1b
authored
Aug 05, 2008
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Set correct font size while generating rtf stream.
parent
6e63953b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
hlpfile.c
programs/winhlp32/hlpfile.c
+5
-3
No files found.
programs/winhlp32/hlpfile.c
View file @
e8eb6d1b
...
@@ -1290,12 +1290,14 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd,
...
@@ -1290,12 +1290,14 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd,
WINE_TRACE
(
"Changing font to %d
\n
"
,
font
);
WINE_TRACE
(
"Changing font to %d
\n
"
,
font
);
format
+=
3
;
format
+=
3
;
/* Font size in hlpfile is given in the same units as
rtf control word \fs uses (half-points). */
switch
(
rd
->
font_scale
)
switch
(
rd
->
font_scale
)
{
{
case
0
:
fs
=
(
4
*
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
-
13
)
/
5
;
break
;
case
0
:
fs
=
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
-
4
;
break
;
default:
default:
case
1
:
fs
=
(
4
*
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
-
3
)
/
5
;
break
;
case
1
:
fs
=
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
;
break
;
case
2
:
fs
=
(
4
*
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
+
17
)
/
5
;
break
;
case
2
:
fs
=
page
->
file
->
fonts
[
font
].
LogFont
.
lfHeight
+
4
;
break
;
}
}
/* FIXME: missing at least colors, also bold attribute looses information */
/* FIXME: missing at least colors, also bold attribute looses information */
...
...
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