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
182e0289
Commit
182e0289
authored
Sep 07, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Sep 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_glyph_index should return the nonexistent glyph for bitmap fonts
when a unicode character cannot be represented as a single byte in the font's codepage.
parent
e0845857
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
freetype.c
dlls/gdi/freetype.c
+8
-2
No files found.
dlls/gdi/freetype.c
View file @
182e0289
...
@@ -2468,9 +2468,15 @@ static FT_UInt get_glyph_index(GdiFont font, UINT glyph)
...
@@ -2468,9 +2468,15 @@ static FT_UInt get_glyph_index(GdiFont font, UINT glyph)
{
{
if
(
font
->
ft_face
->
charmap
->
encoding
==
FT_ENCODING_NONE
)
{
if
(
font
->
ft_face
->
charmap
->
encoding
==
FT_ENCODING_NONE
)
{
WCHAR
wc
=
(
WCHAR
)
glyph
;
WCHAR
wc
=
(
WCHAR
)
glyph
;
BOOL
default_used
;
FT_UInt
ret
;
char
buf
;
char
buf
;
WideCharToMultiByte
(
font
->
codepage
,
0
,
&
wc
,
1
,
&
buf
,
sizeof
(
buf
),
0
,
0
);
if
(
!
WideCharToMultiByte
(
font
->
codepage
,
0
,
&
wc
,
1
,
&
buf
,
sizeof
(
buf
),
NULL
,
&
default_used
)
||
default_used
)
return
pFT_Get_Char_Index
(
font
->
ft_face
,
(
unsigned
char
)
buf
);
ret
=
0
;
else
ret
=
pFT_Get_Char_Index
(
font
->
ft_face
,
(
unsigned
char
)
buf
);
TRACE
(
"%04x (%02x) -> ret %d def_used %d
\n
"
,
glyph
,
buf
,
ret
,
default_used
);
return
ret
;
}
}
if
(
font
->
charset
==
SYMBOL_CHARSET
&&
glyph
<
0x100
)
if
(
font
->
charset
==
SYMBOL_CHARSET
&&
glyph
<
0x100
)
...
...
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