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
81336848
Commit
81336848
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: Use right charmap for symbol encoding.
parent
ab7c65ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
dwrite_private.h
dlls/dwrite/dwrite_private.h
+1
-1
font.c
dlls/dwrite/font.c
+1
-1
freetype.c
dlls/dwrite/freetype.c
+11
-3
No files found.
dlls/dwrite/dwrite_private.h
View file @
81336848
...
...
@@ -190,7 +190,7 @@ extern void freetype_notify_cacheremove(IDWriteFontFace2*) DECLSPEC_HIDDEN;
extern
BOOL
freetype_is_monospaced
(
IDWriteFontFace2
*
)
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_glyphindex
(
IDWriteFontFace2
*
,
UINT32
)
DECLSPEC_HIDDEN
;
extern
UINT16
freetype_get_glyphindex
(
IDWriteFontFace2
*
,
UINT32
,
INT
)
DECLSPEC_HIDDEN
;
extern
BOOL
freetype_has_kerning_pairs
(
IDWriteFontFace2
*
)
DECLSPEC_HIDDEN
;
extern
INT32
freetype_get_kerning_pair_adjustment
(
IDWriteFontFace2
*
,
UINT16
,
UINT16
)
DECLSPEC_HIDDEN
;
extern
void
freetype_get_glyph_bbox
(
IDWriteFontFace2
*
,
FLOAT
,
UINT16
,
BOOL
,
RECT
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/dwrite/font.c
View file @
81336848
...
...
@@ -469,7 +469,7 @@ static HRESULT WINAPI dwritefontface_GetGlyphIndices(IDWriteFontFace2 *iface, UI
}
for
(
i
=
0
;
i
<
count
;
i
++
)
glyph_indices
[
i
]
=
freetype_get_glyphindex
(
iface
,
codepoints
[
i
]);
glyph_indices
[
i
]
=
freetype_get_glyphindex
(
iface
,
codepoints
[
i
]
,
This
->
charmap
);
return
S_OK
;
}
...
...
dlls/dwrite/freetype.c
View file @
81336848
...
...
@@ -437,12 +437,20 @@ UINT16 freetype_get_glyphcount(IDWriteFontFace2 *fontface)
return
count
;
}
UINT16
freetype_get_glyphindex
(
IDWriteFontFace2
*
fontface
,
UINT32
codepoint
)
UINT16
freetype_get_glyphindex
(
IDWriteFontFace2
*
fontface
,
UINT32
codepoint
,
INT
charmap
)
{
UINT16
glyph
;
EnterCriticalSection
(
&
freetype_cs
);
glyph
=
pFTC_CMapCache_Lookup
(
cmap_cache
,
fontface
,
-
1
,
codepoint
);
if
(
charmap
==
-
1
)
glyph
=
pFTC_CMapCache_Lookup
(
cmap_cache
,
fontface
,
charmap
,
codepoint
);
else
{
/* special handling for symbol fonts */
if
(
codepoint
<
0x100
)
codepoint
+=
0xf000
;
glyph
=
pFTC_CMapCache_Lookup
(
cmap_cache
,
fontface
,
charmap
,
codepoint
);
if
(
!
glyph
)
glyph
=
pFTC_CMapCache_Lookup
(
cmap_cache
,
fontface
,
charmap
,
codepoint
-
0xf000
);
}
LeaveCriticalSection
(
&
freetype_cs
);
return
glyph
;
...
...
@@ -627,7 +635,7 @@ UINT16 freetype_get_glyphcount(IDWriteFontFace2 *fontface)
return
0
;
}
UINT16
freetype_get_glyphindex
(
IDWriteFontFace2
*
fontface
,
UINT32
codepoint
)
UINT16
freetype_get_glyphindex
(
IDWriteFontFace2
*
fontface
,
UINT32
codepoint
,
INT
charmap
)
{
return
0
;
}
...
...
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