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
b0d1590d
Commit
b0d1590d
authored
Sep 20, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use symbolic names for font tags.
parent
21a3c1d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
freetype.c
dlls/gdi32/freetype.c
+12
-3
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
b0d1590d
...
@@ -13054,9 +13054,11 @@ fi
...
@@ -13054,9 +13054,11 @@ fi
for
ac_header
in
ft2build.h
\
for
ac_header
in
ft2build.h
\
freetype/freetype.h
\
freetype/freetype.h
\
freetype/ftglyph.h
\
freetype/ftglyph.h
\
freetype/fttypes.h
\
freetype/tttables.h
\
freetype/tttables.h
\
freetype/ftnames.h
\
freetype/ftnames.h
\
freetype/ftsnames.h
\
freetype/ftsnames.h
\
...
...
configure.ac
View file @
b0d1590d
...
@@ -872,6 +872,7 @@ then
...
@@ -872,6 +872,7 @@ then
AC_CHECK_HEADERS(ft2build.h \
AC_CHECK_HEADERS(ft2build.h \
freetype/freetype.h \
freetype/freetype.h \
freetype/ftglyph.h \
freetype/ftglyph.h \
freetype/fttypes.h \
freetype/tttables.h \
freetype/tttables.h \
freetype/ftnames.h \
freetype/ftnames.h \
freetype/ftsnames.h \
freetype/ftsnames.h \
...
...
dlls/gdi32/freetype.c
View file @
b0d1590d
...
@@ -102,6 +102,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(font);
...
@@ -102,6 +102,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(font);
#ifdef HAVE_FREETYPE_TTTABLES_H
#ifdef HAVE_FREETYPE_TTTABLES_H
#include <freetype/tttables.h>
#include <freetype/tttables.h>
#endif
#endif
#ifdef HAVE_FREETYPE_FTTYPES_H
#include <freetype/fttypes.h>
#endif
#ifdef HAVE_FREETYPE_FTSNAMES_H
#ifdef HAVE_FREETYPE_FTSNAMES_H
#include <freetype/ftsnames.h>
#include <freetype/ftsnames.h>
#else
#else
...
@@ -195,6 +198,12 @@ MAKE_FUNCPTR(FcPatternGetString);
...
@@ -195,6 +198,12 @@ MAKE_FUNCPTR(FcPatternGetString);
#undef MAKE_FUNCPTR
#undef MAKE_FUNCPTR
#ifndef FT_MAKE_TAG
#define FT_MAKE_TAG( ch0, ch1, ch2, ch3 ) \
( ((DWORD)(BYTE)(ch0) << 24) | ((DWORD)(BYTE)(ch1) << 16) | \
((DWORD)(BYTE)(ch2) << 8) | (DWORD)(BYTE)(ch3) )
#endif
#ifndef ft_encoding_none
#ifndef ft_encoding_none
#define FT_ENCODING_NONE ft_encoding_none
#define FT_ENCODING_NONE ft_encoding_none
#endif
#endif
...
@@ -587,7 +596,7 @@ static char **expand_mac_font(const char *path)
...
@@ -587,7 +596,7 @@ static char **expand_mac_font(const char *path)
unsigned
short
*
num_faces_ptr
,
num_faces
,
face
;
unsigned
short
*
num_faces_ptr
,
num_faces
,
face
;
AsscEntry
*
assoc
;
AsscEntry
*
assoc
;
Handle
fond
;
Handle
fond
;
ResType
fond_res
=
0x464f4e44
;
/* 'FOND' */
ResType
fond_res
=
FT_MAKE_TAG
(
'F'
,
'O'
,
'N'
,
'D'
);
fond
=
Get1IndResource
(
fond_res
,
idx
);
fond
=
Get1IndResource
(
fond_res
,
idx
);
if
(
!
fond
)
break
;
if
(
!
fond
)
break
;
...
@@ -603,7 +612,7 @@ static char **expand_mac_font(const char *path)
...
@@ -603,7 +612,7 @@ static char **expand_mac_font(const char *path)
for
(
face
=
0
;
face
<
num_faces
;
face
++
,
assoc
++
)
for
(
face
=
0
;
face
<
num_faces
;
face
++
,
assoc
++
)
{
{
Handle
sfnt
;
Handle
sfnt
;
ResType
sfnt_res
=
0x73666e74
;
/* 'sfnt' */
ResType
sfnt_res
=
FT_MAKE_TAG
(
's'
,
'f'
,
'n'
,
't'
);
unsigned
short
size
,
font_id
;
unsigned
short
size
,
font_id
;
char
*
output
;
char
*
output
;
...
@@ -1195,7 +1204,7 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
...
@@ -1195,7 +1204,7 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
/* check for the presence of the 'CFF ' table to check if the font is Type1 */
/* check for the presence of the 'CFF ' table to check if the font is Type1 */
tmp_size
=
0
;
tmp_size
=
0
;
if
(
pFT_Load_Sfnt_Table
&&
!
pFT_Load_Sfnt_Table
(
ft_face
,
0x43464620
,
0
,
NULL
,
&
tmp_size
))
if
(
pFT_Load_Sfnt_Table
&&
!
pFT_Load_Sfnt_Table
(
ft_face
,
FT_MAKE_TAG
(
'C'
,
'F'
,
'F'
,
' '
)
,
0
,
NULL
,
&
tmp_size
))
{
{
TRACE
(
"Font %s/%p is OTF Type1
\n
"
,
wine_dbgstr_a
(
file
),
font_data_ptr
);
TRACE
(
"Font %s/%p is OTF Type1
\n
"
,
wine_dbgstr_a
(
file
),
font_data_ptr
);
face
->
ntmFlags
=
NTM_PS_OPENTYPE
;
face
->
ntmFlags
=
NTM_PS_OPENTYPE
;
...
...
include/config.h.in
View file @
b0d1590d
...
@@ -126,6 +126,9 @@
...
@@ -126,6 +126,9 @@
/* Define if you have the <freetype/fttrigon.h> header file. */
/* Define if you have the <freetype/fttrigon.h> header file. */
#undef HAVE_FREETYPE_FTTRIGON_H
#undef HAVE_FREETYPE_FTTRIGON_H
/* Define to 1 if you have the <freetype/fttypes.h> header file. */
#undef HAVE_FREETYPE_FTTYPES_H
/* Define to 1 if you have the <freetype/ftwinfnt.h> header file. */
/* Define to 1 if you have the <freetype/ftwinfnt.h> header file. */
#undef HAVE_FREETYPE_FTWINFNT_H
#undef HAVE_FREETYPE_FTWINFNT_H
...
...
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