Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bae6d23c
Commit
bae6d23c
authored
Jun 01, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jun 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: FreeType's idea of metrics has changed for bitmap fonts.
parent
ea501964
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
freetype.c
dlls/gdi/freetype.c
+7
-7
No files found.
dlls/gdi/freetype.c
View file @
bae6d23c
...
@@ -928,7 +928,7 @@ static void DumpFontList(void)
...
@@ -928,7 +928,7 @@ static void DumpFontList(void)
face
=
LIST_ENTRY
(
face_elem_ptr
,
Face
,
entry
);
face
=
LIST_ENTRY
(
face_elem_ptr
,
Face
,
entry
);
TRACE
(
"
\t
%s
\t
%08lx"
,
debugstr_w
(
face
->
StyleName
),
face
->
fs
.
fsCsb
[
0
]);
TRACE
(
"
\t
%s
\t
%08lx"
,
debugstr_w
(
face
->
StyleName
),
face
->
fs
.
fsCsb
[
0
]);
if
(
!
face
->
scalable
)
if
(
!
face
->
scalable
)
TRACE
(
" %
ld"
,
face
->
size
.
y_ppem
>>
6
);
TRACE
(
" %
d"
,
face
->
size
.
height
);
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
}
}
}
}
...
@@ -2440,12 +2440,12 @@ found:
...
@@ -2440,12 +2440,12 @@ found:
if
(
face
->
scalable
)
if
(
face
->
scalable
)
break
;
break
;
if
(
height
>
0
)
if
(
height
>
0
)
newdiff
=
height
-
(
signed
int
)(
face
->
size
.
y_ppem
>>
6
);
newdiff
=
height
-
(
signed
int
)(
face
->
size
.
height
);
else
else
newdiff
=
-
height
-
((
signed
int
)(
face
->
size
.
y_ppem
>>
6
)
-
face
->
size
.
internal_leading
);
newdiff
=
-
height
-
((
signed
int
)(
face
->
size
.
height
)
-
face
->
size
.
internal_leading
);
if
(
!
best
||
(
diff
>
0
&&
newdiff
<
diff
&&
newdiff
>=
0
)
||
if
(
!
best
||
(
diff
>
0
&&
newdiff
<
diff
&&
newdiff
>=
0
)
||
(
diff
<
0
&&
newdiff
>
diff
))
{
(
diff
<
0
&&
newdiff
>
diff
))
{
TRACE
(
"%
ld is better for %d diff was %d
\n
"
,
face
->
size
.
y_ppem
>>
6
,
height
,
diff
);
TRACE
(
"%
d is better for %d diff was %d
\n
"
,
face
->
size
.
height
,
height
,
diff
);
diff
=
newdiff
;
diff
=
newdiff
;
best
=
face
;
best
=
face
;
if
(
diff
==
0
)
if
(
diff
==
0
)
...
@@ -2464,12 +2464,12 @@ found:
...
@@ -2464,12 +2464,12 @@ found:
if
(
face
->
scalable
)
if
(
face
->
scalable
)
break
;
break
;
if
(
height
>
0
)
if
(
height
>
0
)
newdiff
=
height
-
(
signed
int
)(
face
->
size
.
y_ppem
>>
6
);
newdiff
=
height
-
(
signed
int
)(
face
->
size
.
height
);
else
else
newdiff
=
-
height
-
((
signed
int
)(
face
->
size
.
y_ppem
>>
6
)
-
face
->
size
.
internal_leading
);
newdiff
=
-
height
-
((
signed
int
)(
face
->
size
.
height
)
-
face
->
size
.
internal_leading
);
if
(
!
best
||
(
diff
>
0
&&
newdiff
<
diff
&&
newdiff
>=
0
)
||
if
(
!
best
||
(
diff
>
0
&&
newdiff
<
diff
&&
newdiff
>=
0
)
||
(
diff
<
0
&&
newdiff
>
diff
))
{
(
diff
<
0
&&
newdiff
>
diff
))
{
TRACE
(
"%
ld is better for %d diff was %d
\n
"
,
face
->
size
.
y_ppem
>>
6
,
height
,
diff
);
TRACE
(
"%
d is better for %d diff was %d
\n
"
,
face
->
size
.
height
,
height
,
diff
);
diff
=
newdiff
;
diff
=
newdiff
;
best
=
face
;
best
=
face
;
if
(
diff
==
0
)
if
(
diff
==
0
)
...
...
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