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
1a92176b
Commit
1a92176b
authored
Feb 16, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Add fallback data for some of Japanese ranges.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fca83b09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
analyzer.c
dlls/dwrite/analyzer.c
+16
-7
layout.c
dlls/dwrite/tests/layout.c
+1
-0
No files found.
dlls/dwrite/analyzer.c
View file @
1a92176b
...
...
@@ -191,6 +191,8 @@ struct fallback_mapping {
};
static
const
struct
fallback_mapping
fontfallback_neutral_data
[]
=
{
{
{
0x3000
,
0x30ff
},
meiryoW
},
/* CJK Symbols and Punctuation, Hiragana, Katakana */
{
{
0x31f0
,
0x31ff
},
meiryoW
},
/* Katakana Phonetic Extensions */
{
{
0x4e00
,
0x9fff
},
meiryoW
},
/* CJK Unified Ideographs */
};
...
...
@@ -1736,16 +1738,23 @@ static ULONG WINAPI fontfallback_Release(IDWriteFontFallback *iface)
return
IDWriteFactory2_Release
(
fallback
->
factory
);
}
static
const
struct
fallback_mapping
*
find_fallback_mapping
(
struct
dwrite_fontfallback
*
fallback
,
UINT32
ch
)
static
int
compare_fallback_mapping
(
const
void
*
a
,
const
void
*
b
)
{
UINT32
i
;
UINT32
ch
=
*
(
UINT32
*
)
a
;
struct
fallback_mapping
*
mapping
=
(
struct
fallback_mapping
*
)
b
;
for
(
i
=
0
;
i
<
fallback
->
count
;
i
++
)
{
if
(
fallback
->
mappings
[
i
].
range
.
first
<=
ch
&&
fallback
->
mappings
[
i
].
range
.
last
>=
ch
)
return
&
fallback
->
mappings
[
i
];
}
if
(
ch
>
mapping
->
range
.
last
)
return
1
;
else
if
(
ch
<
mapping
->
range
.
first
)
return
-
1
;
else
return
0
;
}
return
NULL
;
static
const
struct
fallback_mapping
*
find_fallback_mapping
(
struct
dwrite_fontfallback
*
fallback
,
UINT32
ch
)
{
return
bsearch
(
&
ch
,
fallback
->
mappings
,
fallback
->
count
,
sizeof
(
*
fallback
->
mappings
),
compare_fallback_mapping
);
}
HRESULT
create_matching_font
(
IDWriteFontCollection
*
collection
,
const
WCHAR
*
name
,
...
...
dlls/dwrite/tests/layout.c
View file @
1a92176b
...
...
@@ -4200,6 +4200,7 @@ static HRESULT WINAPI fontcollection_FindFamilyName(IDWriteFontCollection *iface
*
exists
=
TRUE
;
return
S_OK
;
}
todo_wine
ok
(
0
,
"unexpected call, name %s
\n
"
,
wine_dbgstr_w
(
name
));
return
E_NOTIMPL
;
}
...
...
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