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
b66f187e
Commit
b66f187e
authored
Apr 04, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use scaled font size in glyph run analysis.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da697572
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
font.c
dlls/dwrite/font.c
+3
-4
No files found.
dlls/dwrite/font.c
View file @
b66f187e
...
...
@@ -170,7 +170,6 @@ struct dwrite_glyphrunanalysis {
DWRITE_TEXTURE_TYPE
texture_type
;
/* derived from rendering mode specified on creation */
DWRITE_GLYPH_RUN
run
;
/* glyphAdvances and glyphOffsets are not used */
DWRITE_MATRIX
m
;
FLOAT
ppdip
;
UINT16
*
glyphs
;
D2D_POINT_2F
*
origins
;
...
...
@@ -4820,7 +4819,7 @@ static void glyphrunanalysis_get_texturebounds(struct dwrite_glyphrunanalysis *a
memset
(
&
glyph_bitmap
,
0
,
sizeof
(
glyph_bitmap
));
glyph_bitmap
.
fontface
=
fontface
;
glyph_bitmap
.
emsize
=
analysis
->
run
.
fontEmSize
*
analysis
->
ppdip
;
glyph_bitmap
.
emsize
=
analysis
->
run
.
fontEmSize
;
glyph_bitmap
.
nohint
=
is_natural_rendering_mode
(
analysis
->
rendering_mode
);
if
(
analysis
->
flags
&
RUNANALYSIS_USE_TRANSFORM
)
glyph_bitmap
.
m
=
&
analysis
->
m
;
...
...
@@ -4912,7 +4911,7 @@ static HRESULT glyphrunanalysis_render(struct dwrite_glyphrunanalysis *analysis)
memset
(
&
glyph_bitmap
,
0
,
sizeof
(
glyph_bitmap
));
glyph_bitmap
.
fontface
=
fontface
;
glyph_bitmap
.
emsize
=
analysis
->
run
.
fontEmSize
*
analysis
->
ppdip
;
glyph_bitmap
.
emsize
=
analysis
->
run
.
fontEmSize
;
glyph_bitmap
.
nohint
=
is_natural_rendering_mode
(
analysis
->
rendering_mode
);
glyph_bitmap
.
type
=
analysis
->
texture_type
;
if
(
analysis
->
flags
&
RUNANALYSIS_USE_TRANSFORM
)
...
...
@@ -5140,9 +5139,9 @@ HRESULT create_glyphrunanalysis(const struct glyphrunanalysis_desc *desc, IDWrit
analysis
->
flags
=
0
;
analysis
->
bitmap
=
NULL
;
analysis
->
max_glyph_bitmap_size
=
0
;
analysis
->
ppdip
=
desc
->
ppdip
;
SetRectEmpty
(
&
analysis
->
bounds
);
analysis
->
run
=
*
desc
->
run
;
analysis
->
run
.
fontEmSize
*=
desc
->
ppdip
;
IDWriteFontFace_AddRef
(
analysis
->
run
.
fontFace
);
analysis
->
glyphs
=
heap_alloc
(
desc
->
run
->
glyphCount
*
sizeof
(
*
analysis
->
glyphs
));
analysis
->
origins
=
heap_alloc
(
desc
->
run
->
glyphCount
*
sizeof
(
*
analysis
->
origins
));
...
...
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