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
c66b6112
Commit
c66b6112
authored
Oct 18, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Chain to the next driver when not using a device font.
parent
f0076780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
builtin.c
dlls/wineps.drv/builtin.c
+15
-3
No files found.
dlls/wineps.drv/builtin.c
View file @
c66b6112
...
...
@@ -264,7 +264,11 @@ BOOL PSDRV_GetTextMetrics(PHYSDEV dev, TEXTMETRICW *metrics)
{
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
assert
(
physDev
->
font
.
fontloc
==
Builtin
);
if
(
physDev
->
font
.
fontloc
==
Download
)
{
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGetTextMetrics
);
return
dev
->
funcs
->
pGetTextMetrics
(
dev
,
metrics
);
}
memcpy
(
metrics
,
&
(
physDev
->
font
.
fontinfo
.
Builtin
.
tm
),
sizeof
(
physDev
->
font
.
fontinfo
.
Builtin
.
tm
));
...
...
@@ -322,7 +326,11 @@ BOOL PSDRV_GetTextExtentExPoint(PHYSDEV dev, LPCWSTR str, INT count,
float
width
=
0
.
0
;
float
scale
;
assert
(
physDev
->
font
.
fontloc
==
Builtin
);
if
(
physDev
->
font
.
fontloc
==
Download
)
{
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGetTextExtentExPoint
);
return
dev
->
funcs
->
pGetTextExtentExPoint
(
dev
,
str
,
count
,
maxExt
,
lpnFit
,
alpDx
,
size
);
}
TRACE
(
"%s %i
\n
"
,
debugstr_wn
(
str
,
count
),
count
);
...
...
@@ -357,7 +365,11 @@ BOOL PSDRV_GetCharWidth(PHYSDEV dev, UINT firstChar, UINT lastChar, LPINT buffer
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
UINT
i
;
assert
(
physDev
->
font
.
fontloc
==
Builtin
);
if
(
physDev
->
font
.
fontloc
==
Download
)
{
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGetCharWidth
);
return
dev
->
funcs
->
pGetCharWidth
(
dev
,
firstChar
,
lastChar
,
buffer
);
}
TRACE
(
"U+%.4X U+%.4X
\n
"
,
firstChar
,
lastChar
);
...
...
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