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
0c2c43d3
Commit
0c2c43d3
authored
Mar 16, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Correctly set the pitch and family for a font when reading an RTF stream.
parent
a86d7bdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
editor.c
dlls/riched20/editor.c
+1
-1
reader.c
dlls/riched20/reader.c
+2
-2
No files found.
dlls/riched20/editor.c
View file @
0c2c43d3
...
...
@@ -420,7 +420,7 @@ static void ME_RTFCharAttrHook(RTF_Info *info)
fmt
.
szFaceName
[
sizeof
(
fmt
.
szFaceName
)
/
sizeof
(
WCHAR
)
-
1
]
=
'\0'
;
fmt
.
bCharSet
=
f
->
rtfFCharSet
;
fmt
.
dwMask
=
CFM_FACE
|
CFM_CHARSET
;
fmt
.
bPitchAndFamily
=
DEFAULT_PITCH
|
FF_DONTCARE
;
fmt
.
bPitchAndFamily
=
f
->
rtfFPitch
|
(
f
->
rtfFFamily
<<
4
)
;
}
}
break
;
...
...
dlls/riched20/reader.c
View file @
0c2c43d3
...
...
@@ -857,9 +857,9 @@ static void ReadFontTbl(RTF_Info *info)
fp
->
rtfFName
=
NULL
;
fp
->
rtfFAltName
=
NULL
;
fp
->
rtfFNum
=
-
1
;
fp
->
rtfFFamily
=
0
;
fp
->
rtfFFamily
=
FF_DONTCARE
;
fp
->
rtfFCharSet
=
DEFAULT_CHARSET
;
/* 1 */
fp
->
rtfFPitch
=
0
;
fp
->
rtfFPitch
=
DEFAULT_PITCH
;
fp
->
rtfFType
=
0
;
fp
->
rtfFCodePage
=
CP_ACP
;
...
...
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