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
ba660a47
Commit
ba660a47
authored
Feb 03, 2009
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: The MAT2 parameter of GetGlyphOutline is mandatory.
parent
f6230530
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
type1.c
dlls/wineps.drv/type1.c
+3
-3
No files found.
dlls/wineps.drv/type1.c
View file @
ba660a47
...
@@ -192,7 +192,7 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
...
@@ -192,7 +192,7 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
TTPOLYCURVE
*
ppc
;
TTPOLYCURVE
*
ppc
;
LOGFONTW
lf
;
LOGFONTW
lf
;
RECT
rc
;
RECT
rc
;
static
const
MAT2
identity
=
{
{
0
,
1
},{
0
,
0
},{
0
,
0
},{
0
,
1
}
};
static
const
char
glyph_def_begin
[]
=
static
const
char
glyph_def_begin
[]
=
"/%s findfont dup
\n
"
"/%s findfont dup
\n
"
"/Private get begin
\n
"
"/Private get begin
\n
"
...
@@ -226,11 +226,11 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
...
@@ -226,11 +226,11 @@ BOOL T1_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
unscaled_font
=
CreateFontIndirectW
(
&
lf
);
unscaled_font
=
CreateFontIndirectW
(
&
lf
);
old_font
=
SelectObject
(
physDev
->
hdc
,
unscaled_font
);
old_font
=
SelectObject
(
physDev
->
hdc
,
unscaled_font
);
len
=
GetGlyphOutlineW
(
physDev
->
hdc
,
index
,
GGO_GLYPH_INDEX
|
GGO_BEZIER
,
len
=
GetGlyphOutlineW
(
physDev
->
hdc
,
index
,
GGO_GLYPH_INDEX
|
GGO_BEZIER
,
&
gm
,
0
,
NULL
,
NULL
);
&
gm
,
0
,
NULL
,
&
identity
);
if
(
len
==
GDI_ERROR
)
return
FALSE
;
if
(
len
==
GDI_ERROR
)
return
FALSE
;
glyph_buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
glyph_buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
GetGlyphOutlineW
(
physDev
->
hdc
,
index
,
GGO_GLYPH_INDEX
|
GGO_BEZIER
,
GetGlyphOutlineW
(
physDev
->
hdc
,
index
,
GGO_GLYPH_INDEX
|
GGO_BEZIER
,
&
gm
,
len
,
glyph_buf
,
NULL
);
&
gm
,
len
,
glyph_buf
,
&
identity
);
SelectObject
(
physDev
->
hdc
,
old_font
);
SelectObject
(
physDev
->
hdc
,
old_font
);
DeleteObject
(
unscaled_font
);
DeleteObject
(
unscaled_font
);
...
...
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