2003-11-14 16:54:54 +01:00
|
|
|
/***********************************************************
|
|
|
|
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
|
|
|
|
|
|
|
|
All Rights Reserved
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and distribute this software and its
|
|
|
|
documentation for any purpose and without fee is hereby granted,
|
|
|
|
provided that the above copyright notice appear in all copies and that
|
|
|
|
both that copyright notice and this permission notice appear in
|
|
|
|
supporting documentation, and that the name of Digital not be
|
|
|
|
used in advertising or publicity pertaining to distribution of the
|
|
|
|
software without specific, written prior permission.
|
|
|
|
|
|
|
|
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
|
|
|
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
|
|
|
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
|
|
|
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
|
|
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
|
|
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
|
|
SOFTWARE.
|
|
|
|
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef DIXFONT_H
|
|
|
|
#define DIXFONT_H 1
|
|
|
|
|
2003-11-14 17:49:22 +01:00
|
|
|
#include "dix.h"
|
2005-07-03 09:02:09 +02:00
|
|
|
#include <X11/fonts/font.h>
|
2003-11-14 17:49:22 +01:00
|
|
|
#include "closure.h"
|
2005-07-03 09:02:09 +02:00
|
|
|
#include <X11/fonts/fontstruct.h>
|
2012-10-16 21:06:30 +02:00
|
|
|
#include <X11/fonts/fontproto.h>
|
2003-11-14 16:54:54 +01:00
|
|
|
|
|
|
|
#define NullDIXFontProp ((DIXFontPropPtr)0)
|
|
|
|
|
|
|
|
typedef struct _DIXFontProp *DIXFontPropPtr;
|
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT Bool SetDefaultFont(char * /*defaultfontname */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void QueueFontWakeup(FontPathElementPtr /*fpe */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void RemoveFontWakeup(FontPathElementPtr /*fpe */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void FontWakeup(pointer /*data */ ,
|
|
|
|
int /*count */ ,
|
|
|
|
pointer /*LastSelectMask */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT int OpenFont(ClientPtr /*client */ ,
|
|
|
|
XID /*fid */ ,
|
|
|
|
Mask /*flags */ ,
|
|
|
|
unsigned /*lenfname */ ,
|
|
|
|
char * /*pfontname */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT int CloseFont(pointer /*pfont */ ,
|
|
|
|
XID /*fid */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2003-11-14 17:49:22 +01:00
|
|
|
typedef struct _xQueryFontReply *xQueryFontReplyPtr;
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void QueryFont(FontPtr /*pFont */ ,
|
|
|
|
xQueryFontReplyPtr /*pReply */ ,
|
|
|
|
int /*nProtoCCIStructs */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT int ListFonts(ClientPtr /*client */ ,
|
|
|
|
unsigned char * /*pattern */ ,
|
|
|
|
unsigned int /*length */ ,
|
|
|
|
unsigned int /*max_names */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int
|
2012-03-21 20:55:09 +01:00
|
|
|
doListFontsWithInfo(ClientPtr /*client */ ,
|
|
|
|
LFWIclosurePtr /*c */ );
|
|
|
|
|
|
|
|
extern _X_EXPORT int doPolyText(ClientPtr /*client */ ,
|
|
|
|
PTclosurePtr /*c */
|
|
|
|
);
|
|
|
|
|
|
|
|
extern _X_EXPORT int PolyText(ClientPtr /*client */ ,
|
|
|
|
DrawablePtr /*pDraw */ ,
|
|
|
|
GCPtr /*pGC */ ,
|
|
|
|
unsigned char * /*pElt */ ,
|
|
|
|
unsigned char * /*endReq */ ,
|
|
|
|
int /*xorg */ ,
|
|
|
|
int /*yorg */ ,
|
|
|
|
int /*reqType */ ,
|
|
|
|
XID /*did */ );
|
|
|
|
|
|
|
|
extern _X_EXPORT int doImageText(ClientPtr /*client */ ,
|
|
|
|
ITclosurePtr /*c */ );
|
|
|
|
|
|
|
|
extern _X_EXPORT int ImageText(ClientPtr /*client */ ,
|
|
|
|
DrawablePtr /*pDraw */ ,
|
|
|
|
GCPtr /*pGC */ ,
|
|
|
|
int /*nChars */ ,
|
|
|
|
unsigned char * /*data */ ,
|
|
|
|
int /*xorg */ ,
|
|
|
|
int /*yorg */ ,
|
|
|
|
int /*reqType */ ,
|
|
|
|
XID /*did */ );
|
|
|
|
|
|
|
|
extern _X_EXPORT int SetFontPath(ClientPtr /*client */ ,
|
|
|
|
int /*npaths */ ,
|
|
|
|
unsigned char * /*paths */ );
|
|
|
|
|
|
|
|
extern _X_EXPORT int SetDefaultFontPath(char * /*path */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT int GetFontPath(ClientPtr client,
|
2012-03-21 20:55:09 +01:00
|
|
|
int *count,
|
|
|
|
int *length, unsigned char **result);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void DeleteClientFontStuff(ClientPtr /*client */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2003-11-14 17:49:22 +01:00
|
|
|
/* Quartz support on Mac OS X pulls in the QuickDraw
|
|
|
|
framework whose InitFonts function conflicts here. */
|
2007-12-08 03:54:58 +01:00
|
|
|
#ifdef __APPLE__
|
2003-11-14 17:49:22 +01:00
|
|
|
#define InitFonts Darwin_X_InitFonts
|
2003-11-14 16:54:54 +01:00
|
|
|
#endif
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void InitFonts(void);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void FreeFonts(void);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT FontPtr find_old_font(XID /*id */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-06-29 00:15:53 +02:00
|
|
|
#define GetGlyphs dixGetGlyphs
|
|
|
|
extern _X_EXPORT void dixGetGlyphs(FontPtr /*font */ ,
|
|
|
|
unsigned long /*count */ ,
|
|
|
|
unsigned char * /*chars */ ,
|
|
|
|
FontEncoding /*fontEncoding */ ,
|
|
|
|
unsigned long * /*glyphcount */ ,
|
|
|
|
CharInfoPtr * /*glyphs */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void QueryGlyphExtents(FontPtr /*pFont */ ,
|
|
|
|
CharInfoPtr * /*charinfo */ ,
|
|
|
|
unsigned long /*count */ ,
|
|
|
|
ExtentInfoPtr /*info */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT Bool QueryTextExtents(FontPtr /*pFont */ ,
|
|
|
|
unsigned long /*count */ ,
|
|
|
|
unsigned char * /*chars */ ,
|
|
|
|
ExtentInfoPtr /*info */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT Bool ParseGlyphCachingMode(char * /*str */ );
|
2003-11-14 16:54:54 +01:00
|
|
|
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
extern _X_EXPORT void InitGlyphCaching(void);
|
2003-11-14 16:54:54 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
extern _X_EXPORT void SetGlyphCachingMode(int /*newmode */ );
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
|
2010-06-23 14:18:03 +02:00
|
|
|
extern _X_EXPORT void register_fpe_functions(void);
|
2009-01-07 22:37:03 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
#endif /* DIXFONT_H */
|