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
2b98f325
Commit
2b98f325
authored
Dec 21, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fully initialize NEWTEXTMETRICEXW structure for bitmap fonts.
parent
7cb43c9d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
font.c
dlls/gdi/font.c
+1
-1
freetype.c
dlls/gdi/freetype.c
+8
-7
No files found.
dlls/gdi/font.c
View file @
2b98f325
...
...
@@ -126,7 +126,7 @@ typedef struct
*/
#define FS(x) {{0,0,0,0},{0x1<<(x),0}}
#define MAXTCIINDEX 32
static
CHARSETINFO
FONT_tci
[
MAXTCIINDEX
]
=
{
static
const
CHARSETINFO
FONT_tci
[
MAXTCIINDEX
]
=
{
/* ANSI */
{
ANSI_CHARSET
,
1252
,
FS
(
0
)},
{
EASTEUROPE_CHARSET
,
1250
,
FS
(
1
)},
...
...
dlls/gdi/freetype.c
View file @
2b98f325
...
...
@@ -2032,17 +2032,17 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
if
(
!
(
ptm
->
tmPitchAndFamily
&
TMPF_VECTOR
))
*
ptype
|=
RASTER_FONTTYPE
;
if
(
potm
)
{
pntm
->
ntmTm
.
ntmFlags
=
ptm
->
tmItalic
?
NTM_ITALIC
:
0
;
if
(
ptm
->
tmWeight
>
550
)
pntm
->
ntmTm
.
ntmFlags
|=
NTM_BOLD
;
if
(
pntm
->
ntmTm
.
ntmFlags
==
0
)
pntm
->
ntmTm
.
ntmFlags
=
NTM_REGULAR
;
pntm
->
ntmTm
.
ntmSizeEM
=
potm
->
otmEMSquare
;
pntm
->
ntmTm
.
ntmCellHeight
=
0
;
pntm
->
ntmTm
.
ntmAvgWidth
=
0
;
pntm
->
ntmTm
.
ntmCellHeight
=
pntm
->
ntmTm
.
tmHeight
;
pntm
->
ntmTm
.
ntmAvgWidth
=
pntm
->
ntmTm
.
tmAveCharWidth
;
memset
(
&
pntm
->
ntmFontSig
,
0
,
sizeof
(
FONTSIGNATURE
));
if
(
potm
)
{
pntm
->
ntmTm
.
ntmSizeEM
=
potm
->
otmEMSquare
;
strncpyW
(
pelf
->
elfLogFont
.
lfFaceName
,
(
WCHAR
*
)((
char
*
)
potm
+
(
ptrdiff_t
)
potm
->
otmpFamilyName
),
LF_FACESIZE
);
...
...
@@ -2053,7 +2053,10 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
(
WCHAR
*
)((
char
*
)
potm
+
(
ptrdiff_t
)
potm
->
otmpStyleName
),
LF_FACESIZE
);
HeapFree
(
GetProcessHeap
(),
0
,
potm
);
}
else
{
pntm
->
ntmTm
.
ntmSizeEM
=
pntm
->
ntmTm
.
tmHeight
-
pntm
->
ntmTm
.
tmInternalLeading
;
strncpyW
(
pelf
->
elfLogFont
.
lfFaceName
,
face
->
family
->
FamilyName
,
LF_FACESIZE
);
strncpyW
(
pelf
->
elfFullName
,
face
->
family
->
FamilyName
,
LF_FACESIZE
);
pelf
->
elfStyle
[
0
]
=
'\0'
;
...
...
@@ -2061,9 +2064,7 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
pelf
->
elfScript
[
0
]
=
'\0'
;
/* This will get set in WineEngEnumFonts */
HeapFree
(
GetProcessHeap
(),
0
,
potm
);
free_font
(
font
);
return
;
}
/*************************************************************
...
...
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