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
d4114e4c
Commit
d4114e4c
authored
Feb 25, 2005
by
TANABE Hiroshi
Committed by
Alexandre Julliard
Feb 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove (buf && !buflen) checking.
Fixed outline rendering with GGO_GRAY?_BITMAP option. Improved fixed-pitch fonts detection.
parent
6cf1b31d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
freetype.c
dlls/gdi/freetype.c
+9
-9
No files found.
dlls/gdi/freetype.c
View file @
d4114e4c
...
...
@@ -2385,10 +2385,6 @@ DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format,
if
(
format
==
GGO_METRICS
)
return
1
;
/* FIXME */
if
(
buf
&&
!
buflen
){
return
GDI_ERROR
;
}
if
(
ft_face
->
glyph
->
format
!=
ft_glyph_format_outline
&&
format
!=
GGO_BITMAP
)
{
TRACE
(
"loaded a bitmap
\n
"
);
return
GDI_ERROR
;
...
...
@@ -2467,14 +2463,16 @@ DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format,
pFT_Outline_Translate
(
&
ft_face
->
glyph
->
outline
,
-
left
,
-
bottom
);
memset
(
ft_bitmap
.
buffer
,
0
,
buflen
);
pFT_Outline_Get_Bitmap
(
library
,
&
ft_face
->
glyph
->
outline
,
&
ft_bitmap
);
if
(
format
==
GGO_GRAY2_BITMAP
)
mult
=
5
;
mult
=
4
;
else
if
(
format
==
GGO_GRAY4_BITMAP
)
mult
=
1
7
;
mult
=
1
6
;
else
if
(
format
==
GGO_GRAY8_BITMAP
)
mult
=
6
5
;
mult
=
6
4
;
else
if
(
format
==
WINE_GGO_GRAY16_BITMAP
)
break
;
else
{
...
...
@@ -2486,7 +2484,7 @@ DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format,
for
(
row
=
0
;
row
<
height
;
row
++
)
{
ptr
=
start
;
for
(
col
=
0
;
col
<
width
;
col
++
,
ptr
++
)
{
*
ptr
=
(
*
(
unsigned
int
*
)
ptr
*
mult
+
128
)
/
256
;
*
ptr
=
(
((
int
)
*
ptr
)
*
mult
+
128
)
/
256
;
}
start
+=
pitch
;
}
...
...
@@ -2903,7 +2901,9 @@ UINT WineEngGetOutlineTextMetrics(GdiFont font, UINT cbSize,
TM
.
tmStruckOut
=
font
->
strikeout
;
/* Yes TPMF_FIXED_PITCH is correct; braindead api */
if
(
!
FT_IS_FIXED_WIDTH
(
ft_face
))
if
(
!
FT_IS_FIXED_WIDTH
(
ft_face
)
&&
(
pOS2
->
version
==
0xFFFFU
||
pOS2
->
panose
[
PAN_PROPORTION_INDEX
]
!=
PAN_PROP_MONOSPACED
))
TM
.
tmPitchAndFamily
=
TMPF_FIXED_PITCH
;
else
TM
.
tmPitchAndFamily
=
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