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
14e4996f
Commit
14e4996f
authored
Aug 06, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Implement CreateGlyphRunAnalysis() from IDWriteFactory2.
parent
81336848
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
dwrite_private.h
dlls/dwrite/dwrite_private.h
+2
-1
font.c
dlls/dwrite/font.c
+1
-1
main.c
dlls/dwrite/main.c
+9
-6
No files found.
dlls/dwrite/dwrite_private.h
View file @
14e4996f
...
...
@@ -129,7 +129,8 @@ extern HRESULT create_font_file(IDWriteFontFileLoader *loader, const void *refer
extern
HRESULT
create_localfontfileloader
(
IDWriteLocalFontFileLoader
**
iface
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_fontface
(
DWRITE_FONT_FACE_TYPE
,
UINT32
,
IDWriteFontFile
*
const
*
,
UINT32
,
DWRITE_FONT_SIMULATIONS
,
IDWriteFontFace2
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_font_collection
(
IDWriteFactory2
*
,
IDWriteFontFileEnumerator
*
,
BOOL
,
IDWriteFontCollection
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_glyphrunanalysis
(
DWRITE_RENDERING_MODE
,
DWRITE_MEASURING_MODE
,
DWRITE_GLYPH_RUN
const
*
,
FLOAT
,
FLOAT
,
FLOAT
,
IDWriteGlyphRunAnalysis
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_glyphrunanalysis
(
DWRITE_RENDERING_MODE
,
DWRITE_MEASURING_MODE
,
DWRITE_GLYPH_RUN
const
*
,
FLOAT
,
DWRITE_GRID_FIT_MODE
,
DWRITE_TEXT_ANTIALIAS_MODE
,
FLOAT
,
FLOAT
,
IDWriteGlyphRunAnalysis
**
)
DECLSPEC_HIDDEN
;
extern
BOOL
is_system_collection
(
IDWriteFontCollection
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_local_refkey
(
const
WCHAR
*
,
const
FILETIME
*
,
void
**
,
UINT32
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_filestream_from_file
(
IDWriteFontFile
*
,
IDWriteFontFileStream
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/dwrite/font.c
View file @
14e4996f
...
...
@@ -3218,7 +3218,7 @@ static const struct IDWriteGlyphRunAnalysisVtbl glyphrunanalysisvtbl = {
};
HRESULT
create_glyphrunanalysis
(
DWRITE_RENDERING_MODE
rendering_mode
,
DWRITE_MEASURING_MODE
measuring_mode
,
DWRITE_GLYPH_RUN
const
*
run
,
FLOAT
ppdip
,
FLOAT
originX
,
FLOAT
originY
,
IDWriteGlyphRunAnalysis
**
ret
)
FLOAT
ppdip
,
DWRITE_GRID_FIT_MODE
gridfit_mode
,
DWRITE_TEXT_ANTIALIAS_MODE
aa_mode
,
FLOAT
originX
,
FLOAT
originY
,
IDWriteGlyphRunAnalysis
**
ret
)
{
struct
dwrite_glyphrunanalysis
*
analysis
;
...
...
dlls/dwrite/main.c
View file @
14e4996f
...
...
@@ -1079,7 +1079,8 @@ static HRESULT WINAPI dwritefactory_CreateGlyphRunAnalysis(IDWriteFactory2 *ifac
TRACE
(
"(%p)->(%p %.2f %p %d %d %.2f %.2f %p)
\n
"
,
This
,
run
,
ppdip
,
transform
,
rendering_mode
,
measuring_mode
,
originX
,
originY
,
analysis
);
return
create_glyphrunanalysis
(
rendering_mode
,
measuring_mode
,
run
,
ppdip
,
originX
,
originY
,
analysis
);
return
create_glyphrunanalysis
(
rendering_mode
,
measuring_mode
,
run
,
1
.
0
f
,
DWRITE_GRID_FIT_MODE_DEFAULT
,
DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE
,
originX
,
originY
,
analysis
);
}
static
HRESULT
WINAPI
dwritefactory1_GetEudcFontCollection
(
IDWriteFactory2
*
iface
,
IDWriteFontCollection
**
collection
,
...
...
@@ -1155,14 +1156,16 @@ static HRESULT WINAPI dwritefactory2_CreateCustomRenderingParams(IDWriteFactory2
}
static
HRESULT
WINAPI
dwritefactory2_CreateGlyphRunAnalysis
(
IDWriteFactory2
*
iface
,
const
DWRITE_GLYPH_RUN
*
run
,
const
DWRITE_MATRIX
*
transform
,
DWRITE_RENDERING_MODE
rendering
Mode
,
DWRITE_MEASURING_MODE
measuringM
ode
,
DWRITE_GRID_FIT_MODE
grid
FitMode
,
DWRITE_TEXT_ANTIALIAS_MODE
antialiasM
ode
,
FLOAT
originX
,
FLOAT
originY
,
const
DWRITE_MATRIX
*
transform
,
DWRITE_RENDERING_MODE
rendering
_mode
,
DWRITE_MEASURING_MODE
measuring_m
ode
,
DWRITE_GRID_FIT_MODE
grid
fit_mode
,
DWRITE_TEXT_ANTIALIAS_MODE
aa_m
ode
,
FLOAT
originX
,
FLOAT
originY
,
IDWriteGlyphRunAnalysis
**
analysis
)
{
struct
dwritefactory
*
This
=
impl_from_IDWriteFactory2
(
iface
);
FIXME
(
"(%p)->(%p %p %d %d %d %d %.2f %.2f %p): stub
\n
"
,
This
,
run
,
transform
,
renderingMode
,
measuringMode
,
gridFitMode
,
antialiasMode
,
originX
,
originY
,
analysis
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p %p %d %d %d %d %.2f %.2f %p)
\n
"
,
This
,
run
,
transform
,
rendering_mode
,
measuring_mode
,
gridfit_mode
,
aa_mode
,
originX
,
originY
,
analysis
);
return
create_glyphrunanalysis
(
rendering_mode
,
measuring_mode
,
run
,
1
.
0
f
,
gridfit_mode
,
aa_mode
,
originX
,
originY
,
analysis
);
}
static
const
struct
IDWriteFactory2Vtbl
dwritefactoryvtbl
=
{
...
...
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