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
563598d4
Commit
563598d4
authored
May 16, 2001
by
Ian Pilcher
Committed by
Alexandre Julliard
May 16, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read metrics from TrueType fonts.
parent
31eaee45
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
59 additions
and
6 deletions
+59
-6
configure
configure
+0
-0
configure.in
configure.in
+33
-0
Makefile.in
dlls/wineps/Makefile.in
+4
-2
afm.c
dlls/wineps/afm.c
+15
-4
psdrv.h
dlls/wineps/psdrv.h
+1
-0
truetype.c
dlls/wineps/truetype.c
+0
-0
acconfig.h
include/acconfig.h
+3
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
563598d4
This diff is collapsed.
Click to expand it.
configure.in
View file @
563598d4
...
...
@@ -378,6 +378,30 @@ AC_CHECK_LIB(cups,cupsGetPPD,
)
AC_SUBST(CUPSLIBS)
dnl **** Check for FreeType 2 ****
AC_CHECK_LIB(freetype,FT_Init_FreeType,ft_lib=yes,ft_lib=no)
if test "$ft_lib" = "no"
then
FREETYPELIBS=""
FREETYPEINCL=""
wine_cv_msg_freetype=no
else
AC_CHECK_PROG(ft_devel,freetype-config,yes,no)
if test "$ft_devel" = "no"
then
FREETYPELIBS=""
FREETYPEINCL=""
wine_cv_msg_freetype=yes
else
AC_DEFINE(HAVE_FREETYPE)
FREETYPELIBS=`freetype-config --libs`
FREETYPEINCL=`freetype-config --cflags`
wine_cv_msg_freetype=no
fi
fi
AC_SUBST(FREETYPELIBS)
AC_SUBST(FREETYPEINCL)
dnl **** Check for IPX (currently Linux only) ****
AC_CACHE_CHECK("for GNU style IPX support", ac_cv_c_ipx_gnu,
AC_TRY_COMPILE(
...
...
@@ -1362,6 +1386,15 @@ then
echo "*** contains cups.h to enable CUPS support in WINE."
fi
if test "$wine_cv_msg_freetype" = "yes"
then
echo
echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
echo "*** freetype-devel package (or its equivalent on your distribution) to"
echo "*** enable Wine to use TrueType fonts."
fi
echo
echo "Configure finished. Do 'make depend && make' to compile Wine."
echo
...
...
dlls/wineps/Makefile.in
View file @
563598d4
...
...
@@ -6,7 +6,8 @@ MODULE = wineps
SOVERSION
=
1.0
ALTNAMES
=
wineps16
IMPORTS
=
user32 gdi32 winspool.drv kernel32 ntdll
EXTRALIBS
=
@CUPSLIBS@
EXTRALIBS
=
@CUPSLIBS@ @FREETYPELIBS@
EXTRAINCL
=
@FREETYPEINCL@
C_SRCS
=
\
afm.c
\
...
...
@@ -26,7 +27,8 @@ C_SRCS = \
pen.c
\
ppd.c
\
ps.c
\
text.c
text.c
\
truetype.c
RC_SRCS
=
\
rsrc.rc
...
...
dlls/wineps/afm.c
View file @
563598d4
...
...
@@ -654,8 +654,9 @@ static void PSDRV_DumpFontList(void)
{
INT
i
;
TRACE
(
"
\t
FontName '%s' (%i glyphs):
\n
"
,
afmle
->
afm
->
FontName
,
afmle
->
afm
->
NumofMetrics
);
TRACE
(
"
\t
FontName '%s' (%i glyphs) - '%s' encoding:
\n
"
,
afmle
->
afm
->
FontName
,
afmle
->
afm
->
NumofMetrics
,
afmle
->
afm
->
EncodingScheme
);
for
(
i
=
0
;
i
<
afmle
->
afm
->
NumofMetrics
;
++
i
)
{
...
...
@@ -671,7 +672,10 @@ static void PSDRV_DumpFontList(void)
* SortFontMetrics
*
* Initializes the UV member of each glyph's AFMMETRICS and sorts each font's
* Metrics by Unicode Value.
* Metrics by Unicode Value. If the font has a standard encoding (i.e. it is
* using the Adobe Glyph List encoding vector), look up each glyph's Unicode
* Value based on it's glyph name. If the font has a font-specific encoding,
* map the default PostScript encodings into the Unicode private use area.
*
*/
static
int
UnicodeGlyphByNameIndex
(
const
UNICODEGLYPH
*
a
,
const
UNICODEGLYPH
*
b
)
...
...
@@ -965,10 +969,17 @@ BOOL PSDRV_GetFontMetrics(void)
if
(
PSDRV_ReadAFMDir
(
value
)
==
FALSE
)
return
FALSE
;
PSDRV_IndexGlyphList
();
PSDRV_IndexGlyphList
();
/* So SortFontMetrics will work */
if
(
SortFontMetrics
()
==
FALSE
)
return
FALSE
;
CalcWindowsMetrics
();
#ifdef HAVE_FREETYPE
if
(
PSDRV_GetTrueTypeMetrics
()
==
FALSE
)
return
FALSE
;
PSDRV_IndexGlyphList
();
#endif
PSDRV_DumpFontList
();
return
TRUE
;
}
dlls/wineps/psdrv.h
View file @
563598d4
...
...
@@ -418,6 +418,7 @@ VOID PSDRV_DrawLine( DC *dc );
INT
PSDRV_GlyphListInit
();
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
);
VOID
PSDRV_IndexGlyphList
();
BOOL
PSDRV_GetTrueTypeMetrics
();
#endif
...
...
dlls/wineps/truetype.c
0 → 100644
View file @
563598d4
This diff is collapsed.
Click to expand it.
include/acconfig.h
View file @
563598d4
...
...
@@ -123,6 +123,9 @@
/* Define if we have CUPS */
#undef HAVE_CUPS
/* Define if FreeType 2 is installed */
#undef HAVE_FREETYPE
/* Define if we have 64 bit file offsets */
#undef HAVE_OFF64_T
...
...
include/config.h.in
View file @
563598d4
...
...
@@ -154,6 +154,9 @@
/* Define if we have CUPS */
#undef HAVE_CUPS
/* Define if FreeType 2 is installed */
#undef HAVE_FREETYPE
/* Define if we have 64 bit file offsets */
#undef HAVE_OFF64_T
...
...
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