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
d8fa0ff1
Commit
d8fa0ff1
authored
Jul 22, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Add some mappings for Tahoma in the system fallback.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
26e717c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
analyzer.c
dlls/dwrite/analyzer.c
+4
-0
layout.c
dlls/dwrite/layout.c
+1
-1
layout.c
dlls/dwrite/tests/layout.c
+9
-15
No files found.
dlls/dwrite/analyzer.c
View file @
d8fa0ff1
...
...
@@ -218,6 +218,10 @@ static const struct fallback_description
}
system_fallback_config
[]
=
{
/* Latin, Combining Diacritical Marks */
{
"0000-007F, 0080-00FF, 0100-017F, 0180-024F, "
"0250-02AF, 02B0-02FF, 0300-036F"
,
L"Tahoma"
},
{
"3000-30FF, 31F0-31FF, 4E00-9FFF"
,
L"Meiryo"
},
};
...
...
dlls/dwrite/layout.c
View file @
d8fa0ff1
...
...
@@ -725,7 +725,7 @@ static HRESULT layout_resolve_fonts(struct dwrite_textlayout *layout)
goto
fatal
;
}
if
(
!
mapped_length
)
if
(
!
font
)
{
if
(
FAILED
(
create_matching_font
(
range
->
collection
,
range
->
fontfamily
,
range
->
weight
,
range
->
style
,
range
->
stretch
,
&
IID_IDWriteFont3
,
(
void
**
)
&
font
)))
...
...
dlls/dwrite/tests/layout.c
View file @
d8fa0ff1
...
...
@@ -4640,14 +4640,12 @@ static void test_MapCharacters(void)
hr
=
IDWriteFontFallback_MapCharacters
(
fallback
,
&
analysissource
,
0
,
1
,
NULL
,
NULL
,
DWRITE_FONT_WEIGHT_NORMAL
,
DWRITE_FONT_STYLE_NORMAL
,
DWRITE_FONT_STRETCH_NORMAL
,
&
mappedlength
,
&
font
,
&
scale
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
mappedlength
==
1
,
"got %u
\n
"
,
mappedlength
);
ok
(
scale
==
1
.
0
f
,
"got %f
\n
"
,
scale
);
todo_wine
ok
(
font
!=
NULL
,
"got %p
\n
"
,
font
);
if
(
font
)
{
IDWriteFont_Release
(
font
);
}
if
(
font
)
IDWriteFont_Release
(
font
);
/* same Latin text, full length */
g_source
=
L"abc"
;
mappedlength
=
0
;
...
...
@@ -4656,15 +4654,13 @@ if (font) {
hr
=
IDWriteFontFallback_MapCharacters
(
fallback
,
&
analysissource
,
0
,
3
,
NULL
,
NULL
,
DWRITE_FONT_WEIGHT_NORMAL
,
DWRITE_FONT_STYLE_NORMAL
,
DWRITE_FONT_STRETCH_NORMAL
,
&
mappedlength
,
&
font
,
&
scale
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
mappedlength
==
3
,
"got %u
\n
"
,
mappedlength
);
ok
(
scale
==
1
.
0
f
,
"got %f
\n
"
,
scale
);
todo_wine
ok
(
font
!=
NULL
,
"got %p
\n
"
,
font
);
if
(
font
)
{
IDWriteFont_Release
(
font
);
}
if
(
font
)
IDWriteFont_Release
(
font
);
/* string 'a\x3058b' */
g_source
=
str2W
;
mappedlength
=
0
;
...
...
@@ -4673,14 +4669,12 @@ if (font) {
hr
=
IDWriteFontFallback_MapCharacters
(
fallback
,
&
analysissource
,
0
,
3
,
NULL
,
NULL
,
DWRITE_FONT_WEIGHT_NORMAL
,
DWRITE_FONT_STYLE_NORMAL
,
DWRITE_FONT_STRETCH_NORMAL
,
&
mappedlength
,
&
font
,
&
scale
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
mappedlength
==
1
,
"got %u
\n
"
,
mappedlength
);
ok
(
scale
==
1
.
0
f
,
"got %f
\n
"
,
scale
);
todo_wine
ok
(
font
!=
NULL
,
"got %p
\n
"
,
font
);
if
(
font
)
{
IDWriteFont_Release
(
font
);
}
if
(
font
)
IDWriteFont_Release
(
font
);
g_source
=
str2W
;
mappedlength
=
0
;
scale
=
0
.
0
f
;
...
...
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