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
63cf3e2c
Commit
63cf3e2c
authored
Sep 15, 2004
by
Vincent Béron
Committed by
Alexandre Julliard
Sep 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the preferred FT_ENCODING values rather than ft_encoding.
parent
ca27b29f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
freetype.c
dlls/gdi/freetype.c
+18
-6
No files found.
dlls/gdi/freetype.c
View file @
63cf3e2c
...
...
@@ -139,6 +139,18 @@ MAKE_FUNCPTR(FcPatternGet);
#undef MAKE_FUNCPTR
#ifndef FT_ENCODING_NONE
#define FT_ENCODING_NONE ft_encoding_none
#endif
#ifndef FT_ENCODING_MS_SYMBOL
#define FT_ENCODING_MS_SYMBOL ft_encoding_symbol
#endif
#ifndef FT_ENCODING_UNICODE
#define FT_ENCODING_UNICODE ft_encoding_unicode
#endif
#ifndef FT_ENCODING_APPLE_ROMAN
#define FT_ENCODING_APPLE_ROMAN ft_encoding_apple_roman
#endif
#define GET_BE_WORD(ptr) MAKEWORD( ((BYTE *)(ptr))[1], ((BYTE *)(ptr))[0] )
...
...
@@ -572,11 +584,11 @@ static BOOL AddFontFileToList(const char *file, char *fake_family, DWORD flags)
if
(
face
->
fs
.
fsCsb
[
0
]
==
0
)
{
/* let's see if we can find any interesting cmaps */
for
(
i
=
0
;
i
<
ft_face
->
num_charmaps
;
i
++
)
{
switch
(
ft_face
->
charmaps
[
i
]
->
encoding
)
{
case
ft_encoding_unicode
:
case
ft_encoding_apple_roman
:
case
FT_ENCODING_UNICODE
:
case
FT_ENCODING_APPLE_ROMAN
:
face
->
fs
.
fsCsb
[
0
]
|=
1
;
break
;
case
ft_encoding_symbol
:
case
FT_ENCODING_MS_SYMBOL
:
face
->
fs
.
fsCsb
[
0
]
|=
1L
<<
31
;
break
;
default:
...
...
@@ -1858,14 +1870,14 @@ GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont)
}
if
(
ret
->
charset
==
SYMBOL_CHARSET
&&
!
pFT_Select_Charmap
(
ret
->
ft_face
,
ft_encoding_symbol
))
{
!
pFT_Select_Charmap
(
ret
->
ft_face
,
FT_ENCODING_MS_SYMBOL
))
{
/* No ops */
}
else
if
(
!
pFT_Select_Charmap
(
ret
->
ft_face
,
ft_encoding_unicode
))
{
else
if
(
!
pFT_Select_Charmap
(
ret
->
ft_face
,
FT_ENCODING_UNICODE
))
{
/* No ops */
}
else
{
pFT_Select_Charmap
(
ret
->
ft_face
,
ft_encoding_apple_roman
);
pFT_Select_Charmap
(
ret
->
ft_face
,
FT_ENCODING_APPLE_ROMAN
);
}
ret
->
orientation
=
FT_IS_SCALABLE
(
ret
->
ft_face
)
?
lf
.
lfOrientation
:
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