Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xorg
lib
libXft
Commits
1781965a
Commit
1781965a
authored
Nov 25, 2003
by
Kaleb Keithley Keithley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks
parent
ac1033d4
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
26 deletions
+23
-26
include/X11/Xft/Xft.h
include/X11/Xft/Xft.h
+3
-2
include/X11/Xft/XftCompat.h
include/X11/Xft/XftCompat.h
+1
-4
src/xftcore.c
src/xftcore.c
+2
-4
src/xftdraw.c
src/xftdraw.c
+3
-3
src/xftfreetype.c
src/xftfreetype.c
+3
-3
src/xftglyphs.c
src/xftglyphs.c
+3
-2
src/xftlist.c
src/xftlist.c
+1
-1
src/xftxlfd.c
src/xftxlfd.c
+3
-5
xft-config.in
xft-config.in
+2
-1
xft.pc.in
xft.pc.in
+2
-1
No files found.
include/X11/Xft/Xft.h
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/Xft.h,v 1.3
2
2003/
02
/2
5
2
1:57:5
3 dawes Exp $
* $XFree86: xc/lib/Xft/Xft.h,v 1.3
3
2003/
11
/2
0
2
2:36:3
3 dawes Exp $
*
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
@@ -32,7 +32,8 @@
#define XftVersion XFT_VERSION
#include <stdarg.h>
#include <freetype/freetype.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include <fontconfig/fontconfig.h>
#include <X11/extensions/Xrender.h>
...
...
include/X11/Xft/XftCompat.h
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/XftCompat.h,v 1.
5
200
2/10/02 07:02:32 keithp
Exp $
* $XFree86: xc/lib/Xft/XftCompat.h,v 1.
6
200
3/08/06 14:03:59 eich
Exp $
*
* Copyright 2001 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
@@ -111,9 +111,6 @@ typedef FcObjectSet XftObjectSet;
#define XftObjectSetDestroy FcObjectSetDestroy
#define XftObjectSetVaBuild FcObjectSetVaBuild
#define XftObjectSetBuild FcObjectSetBuild
#define XftListFontsPatternObjects FcListFontsPatternObjects
#define XftFontSetMatch FcFontSetMatch
#define XftFontSetDestroy FcFontSetDestroy
...
...
src/xftcore.c
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/xftcore.c,v 1.1
3
2003/0
2/15 22:30:51 dawes
Exp $
* $XFree86: xc/lib/Xft/xftcore.c,v 1.1
4
2003/0
5/27 22:26:40 tsi
Exp $
*
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
@@ -918,10 +918,8 @@ _XftGlyphDefault (Display *dpy, XftFont *public)
XftFontInt
*
font
=
(
XftFontInt
*
)
public
;
FT_UInt
missing
[
XFT_NMISSING
];
int
nmissing
;
FcBool
glyphs_loaded
=
FcFalse
;
if
(
XftFontCheckGlyph
(
dpy
,
public
,
FcTrue
,
0
,
missing
,
&
nmissing
))
glyphs_loaded
=
FcTrue
;
XftFontCheckGlyph
(
dpy
,
public
,
FcTrue
,
0
,
missing
,
&
nmissing
);
if
(
nmissing
)
XftFontLoadGlyphs
(
dpy
,
public
,
FcTrue
,
missing
,
nmissing
);
return
font
->
glyphs
[
0
];
...
...
src/xftdraw.c
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/xftdraw.c,v 1.2
5
200
2/10/11 17:53:02 keithp
Exp $
* $XFree86: xc/lib/Xft/xftdraw.c,v 1.2
6
200
3/04/03 22:25:50 dawes
Exp $
*
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
@@ -724,7 +724,7 @@ XftDrawGlyphFontSpec (XftDraw *draw,
{
XftGlyphFontSpecRender
(
draw
->
dpy
,
_XftDrawOp
(
draw
,
color
),
src
,
draw
->
render
.
pict
,
0
,
0
,
glyphs
,
i
-
start
);
0
,
0
,
glyphs
+
start
,
i
-
start
);
}
}
else
...
...
@@ -732,7 +732,7 @@ XftDrawGlyphFontSpec (XftDraw *draw,
while
(
i
<
len
&&
!
((
XftFontInt
*
)
glyphs
[
i
].
font
)
->
format
)
i
++
;
if
(
_XftDrawCorePrepare
(
draw
,
color
))
XftGlyphFontSpecCore
(
draw
,
color
,
glyphs
,
len
);
XftGlyphFontSpecCore
(
draw
,
color
,
glyphs
+
start
,
i
-
start
);
}
}
}
...
...
src/xftfreetype.c
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/xftfreetype.c,v 1.
29
200
2/10/11 17:53:02 keithp
Exp $
* $XFree86: xc/lib/Xft/xftfreetype.c,v 1.
30
200
3/03/26 20:43:51 tsi
Exp $
*
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
@@ -51,7 +51,7 @@ _XftGetFile (const FcChar8 *file, int id)
for
(
f
=
_XftFtFiles
;
f
;
f
=
f
->
next
)
{
if
(
!
strcmp
(
f
->
file
,
(
void
*
)
file
)
&&
f
->
id
==
id
)
if
(
!
strcmp
(
f
->
file
,
(
char
*
)
file
)
&&
f
->
id
==
id
)
{
++
f
->
ref
;
if
(
XftDebug
()
&
XFT_DBG_REF
)
...
...
@@ -74,7 +74,7 @@ _XftGetFile (const FcChar8 *file, int id)
f
->
ref
=
1
;
f
->
file
=
(
char
*
)
(
f
+
1
);
strcpy
(
f
->
file
,
(
void
*
)
file
);
strcpy
(
f
->
file
,
(
char
*
)
file
);
f
->
id
=
id
;
f
->
lock
=
0
;
...
...
src/xftglyphs.c
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/xftglyphs.c,v 1.2
3
200
2
/1
0/11 17:53:02 keithp
Exp $
* $XFree86: xc/lib/Xft/xftglyphs.c,v 1.2
4
200
3
/1
1/20 22:36:33 dawes
Exp $
*
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
@@ -26,7 +26,8 @@
#include <stdlib.h>
#include <string.h>
#include "xftint.h"
#include <freetype/ftoutln.h>
#include <ft2build.h>
#include FT_OUTLINE_H
#include <fontconfig/fcfreetype.h>
static
const
int
filters
[
3
][
3
]
=
{
...
...
src/xftlist.c
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/xftlist.c,v 1.
3
200
2
/0
2/15 07:36:11 keithp
Exp $
* $XFree86: xc/lib/Xft/xftlist.c,v 1.
4
200
3
/0
8/06 14:03:59 eich
Exp $
*
* Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
src/xftxlfd.c
View file @
1781965a
/*
* $XFree86: xc/lib/Xft/xftxlfd.c,v 1.
9
200
2
/0
8/31 18:08:10 keithp
Exp $
* $XFree86: xc/lib/Xft/xftxlfd.c,v 1.
10
200
3
/0
5/27 22:26:41 tsi
Exp $
*
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
*
...
...
@@ -94,8 +94,6 @@ XftXlfdParse (const char *xlfd_orig, FcBool ignore_scalable, FcBool complete)
const
char
*
family
;
const
char
*
weight_name
;
const
char
*
slant
;
const
char
*
registry
;
const
char
*
encoding
;
char
*
save
;
int
pixel
;
int
point
;
...
...
@@ -118,9 +116,9 @@ XftXlfdParse (const char *xlfd_orig, FcBool ignore_scalable, FcBool complete)
if
(
!
(
xlfd
=
XftGetInt
(
++
xlfd
,
&
resy
)))
return
0
;
if
(
!
(
xlfd
=
strchr
(
/* spacing = */
++
xlfd
,
'-'
)))
return
0
;
if
(
!
(
xlfd
=
strchr
(
/* average_width = */
++
xlfd
,
'-'
)))
return
0
;
if
(
!
(
xlfd
=
strchr
(
registry
=
++
xlfd
,
'-'
)))
return
0
;
if
(
!
(
xlfd
=
strchr
(
/*
registry =
*/
++
xlfd
,
'-'
)))
return
0
;
/* make sure no fields follow this one */
if
((
xlfd
=
strchr
(
encoding
=
++
xlfd
,
'-'
)))
return
0
;
if
((
xlfd
=
strchr
(
/*
encoding =
*/
++
xlfd
,
'-'
)))
return
0
;
if
(
!
pixel
)
return
0
;
...
...
xft-config.in
View file @
1781965a
...
...
@@ -3,6 +3,7 @@
prefix
=
"@prefix@"
exec_prefix
=
"@exec_prefix@"
libdir
=
"@libdir@"
hardcode_libdir_flag_spec
=
@hardcode_libdir_flag_spec@
includedir
=
"@includedir@"
version
=
"@PACKAGE_VERSION@"
freetypelibs
=
"@FREETYPE_LIBS@"
...
...
@@ -91,7 +92,7 @@ fi
if
test
"
$echo_libs
"
=
"yes"
;
then
libs
=
"-lXft
${
freetypelibs
}
${
fontconfiglibs
}
${
xrenderlibs
}
"
if
test
"
${
libdir
}
"
!=
"/usr/lib"
;
then
echo
-L
${
libdir
}
$libs
echo
${
hardcode_libdir_flag_spec
}
-L
${
libdir
}
$libs
else
echo
$libs
fi
...
...
xft.pc.in
View file @
1781965a
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
hardcode_libdir_flag_spec=@hardcode_libdir_flag_spec@
includedir=@includedir@
freetypelibs=@FREETYPE_LIBS@
freetypecflags=@FREETYPE_CFLAGS@
...
...
@@ -11,5 +12,5 @@ Name: Xft
Description: X FreeType library
Version: @PACKAGE_VERSION@
Requires: fontconfig
Libs: -L${libdir} -lXft ${freetypelibs} ${xrenderlibs}
Libs:
${hardcode_libdir_flag_spec}
-L${libdir} -lXft ${freetypelibs} ${xrenderlibs}
Cflags: -I${includedir} ${freetypecflags} ${xrendercflags}
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