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
23c2ef2f
Commit
23c2ef2f
authored
Mar 13, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Implement HasKerningPairs().
parent
2933e866
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
dwrite_private.h
dlls/dwrite/dwrite_private.h
+1
-0
font.c
dlls/dwrite/font.c
+2
-2
freetype.c
dlls/dwrite/freetype.c
+18
-0
No files found.
dlls/dwrite/dwrite_private.h
View file @
23c2ef2f
...
@@ -162,6 +162,7 @@ extern BOOL freetype_is_monospaced(IDWriteFontFace2*) DECLSPEC_HIDDEN;
...
@@ -162,6 +162,7 @@ extern BOOL freetype_is_monospaced(IDWriteFontFace2*) DECLSPEC_HIDDEN;
extern
HRESULT
freetype_get_glyph_outline
(
IDWriteFontFace2
*
,
FLOAT
,
UINT16
,
USHORT
,
struct
glyph_outline
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
freetype_get_glyph_outline
(
IDWriteFontFace2
*
,
FLOAT
,
UINT16
,
USHORT
,
struct
glyph_outline
**
)
DECLSPEC_HIDDEN
;
extern
UINT16
freetype_get_glyphcount
(
IDWriteFontFace2
*
)
DECLSPEC_HIDDEN
;
extern
UINT16
freetype_get_glyphcount
(
IDWriteFontFace2
*
)
DECLSPEC_HIDDEN
;
extern
UINT16
freetype_get_glyphindex
(
IDWriteFontFace2
*
,
UINT32
)
DECLSPEC_HIDDEN
;
extern
UINT16
freetype_get_glyphindex
(
IDWriteFontFace2
*
,
UINT32
)
DECLSPEC_HIDDEN
;
extern
BOOL
freetype_has_kerning_pairs
(
IDWriteFontFace2
*
)
DECLSPEC_HIDDEN
;
/* Glyph shaping */
/* Glyph shaping */
enum
SCRIPT_JUSTIFY
enum
SCRIPT_JUSTIFY
...
...
dlls/dwrite/font.c
View file @
23c2ef2f
...
@@ -669,8 +669,8 @@ static HRESULT WINAPI dwritefontface1_GetKerningPairAdjustments(IDWriteFontFace2
...
@@ -669,8 +669,8 @@ static HRESULT WINAPI dwritefontface1_GetKerningPairAdjustments(IDWriteFontFace2
static
BOOL
WINAPI
dwritefontface1_HasKerningPairs
(
IDWriteFontFace2
*
iface
)
static
BOOL
WINAPI
dwritefontface1_HasKerningPairs
(
IDWriteFontFace2
*
iface
)
{
{
struct
dwrite_fontface
*
This
=
impl_from_IDWriteFontFace2
(
iface
);
struct
dwrite_fontface
*
This
=
impl_from_IDWriteFontFace2
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
return
FALSE
;
return
freetype_has_kerning_pairs
(
iface
)
;
}
}
static
HRESULT
WINAPI
dwritefontface1_GetRecommendedRenderingMode
(
IDWriteFontFace2
*
iface
,
static
HRESULT
WINAPI
dwritefontface1_GetRecommendedRenderingMode
(
IDWriteFontFace2
*
iface
,
...
...
dlls/dwrite/freetype.c
View file @
23c2ef2f
...
@@ -407,6 +407,19 @@ UINT16 freetype_get_glyphindex(IDWriteFontFace2 *fontface, UINT32 codepoint)
...
@@ -407,6 +407,19 @@ UINT16 freetype_get_glyphindex(IDWriteFontFace2 *fontface, UINT32 codepoint)
return
glyph
;
return
glyph
;
}
}
BOOL
freetype_has_kerning_pairs
(
IDWriteFontFace2
*
fontface
)
{
BOOL
has_kerning_pairs
=
FALSE
;
FT_Face
face
;
EnterCriticalSection
(
&
freetype_cs
);
if
(
pFTC_Manager_LookupFace
(
cache_manager
,
fontface
,
&
face
)
==
0
)
has_kerning_pairs
=
FT_HAS_KERNING
(
face
);
LeaveCriticalSection
(
&
freetype_cs
);
return
has_kerning_pairs
;
}
#else
/* HAVE_FREETYPE */
#else
/* HAVE_FREETYPE */
BOOL
init_freetype
(
void
)
BOOL
init_freetype
(
void
)
...
@@ -448,4 +461,9 @@ UINT16 freetype_get_glyphindex(IDWriteFontFace2 *fontface, UINT32 codepoint)
...
@@ -448,4 +461,9 @@ UINT16 freetype_get_glyphindex(IDWriteFontFace2 *fontface, UINT32 codepoint)
return
0
;
return
0
;
}
}
BOOL
freetype_has_kerning_pairs
(
IDWriteFontFace2
*
fontface
)
{
return
FALSE
;
}
#endif
/* HAVE_FREETYPE */
#endif
/* HAVE_FREETYPE */
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