head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.17; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.50; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
#include "dmx.h"#include "dmxsync.h"#include "dmxfont.h"#include "dmxlog.h"#include "fontstruct.h"#include "dixfont.h"#include "dixstruct.h"Functions | |
| void | dmxInitFonts (void) |
| void | dmxResetFonts (void) |
| Bool | dmxBELoadFont (ScreenPtr pScreen, FontPtr pFont) |
| Bool | dmxRealizeFont (ScreenPtr pScreen, FontPtr pFont) |
| Bool | dmxBEFreeFont (ScreenPtr pScreen, FontPtr pFont) |
| Bool | dmxUnrealizeFont (ScreenPtr pScreen, FontPtr pFont) |
|
||||||||||||
|
Free pFont on the back-end associated with pScreen. |
|
||||||||||||
|
Load the font, pFont, on the back-end server associated with pScreen. When a font is loaded, the font path on back-end server is first initialized to that specified on the command line with the -fontpath options, and then the font is loaded. |
|
|
Initialize font support. In addition to the screen function call pointers, DMX also hooks in at the ProcVector[] level. Here the old ProcVector function pointers are saved and the new ProcVector function pointers are initialized. |
|
||||||||||||
|
Realize the font, pFont, on the back-end server associated with pScreen. |
|
|
Reset font support by restoring the original ProcVector function pointers. |
|
||||||||||||
|
Unrealize the font, pFont, on the back-end server associated with pScreen. |
#include "dmx.h"#include "dmxsync.h"#include "dmxfont.h"#include "dmxlog.h"#include <X11/fonts/fontstruct.h>#include "dixfont.h"#include "dixstruct.h"Defines | |
| #define | DMX_FONTPATH_DEBUG 0 |
Functions | |
| static int | dmxFontErrorHandler (Display *dpy, XErrorEvent *ev) |
| static char ** | dmxGetFontPath (int *npaths) |
| static void | dmxFreeFontPath (char **fp) |
| static Bool | dmxCheckFontPathElement (DMXScreenInfo *dmxScreen, char *fp) |
| static int | dmxSetFontPath (DMXScreenInfo *dmxScreen) |
| static int | dmxCheckFontPath (DMXScreenInfo *dmxScreen, int *error) |
| static int | dmxProcSetFontPath (ClientPtr client) |
| void | dmxInitFonts (void) |
| void | dmxResetFonts (void) |
| Bool | dmxBELoadFont (ScreenPtr pScreen, FontPtr pFont) |
| Bool | dmxRealizeFont (ScreenPtr pScreen, FontPtr pFont) |
| Bool | dmxBEFreeFont (ScreenPtr pScreen, FontPtr pFont) |
| Bool | dmxUnrealizeFont (ScreenPtr pScreen, FontPtr pFont) |
Variables | |
| static int(* | dmxSaveProcVector [256])(ClientPtr) |
| static int | dmxFontLastError |
This file provides support for fonts.
| #define DMX_FONTPATH_DEBUG 0 |
| Bool dmxBEFreeFont | ( | ScreenPtr | pScreen, | |
| FontPtr | pFont | |||
| ) |
Free pFont on the back-end associated with pScreen.
d29 1 a29 1References _DMXScreenInfo::beDisplay, dmxFontPrivateIndex, dmxScreens, and _dmxFontPriv::font.
d31 1 a31 1Referenced by dmxBEDestroyResources(), and dmxUnrealizeFont().
d33 8 a40 6| Bool dmxBELoadFont | ( | ScreenPtr | pScreen, | a47 1d49 3 a51 2 | FontPtr | pFont | d55 2 a56 2 | ) | a57 6 |
Load the font, pFont, on the back-end server associated with pScreen. When a font is loaded, the font path on back-end server is first initialized to that specified on the command line with the -fontpath options, and then the font is loaded.
References _DMXScreenInfo::beDisplay, dmxCheckFontPathElement(), dmxError, dmxFontPath, dmxFontPrivateIndex, dmxFreeFontPath(), dmxGetFontPath(), dmxIgnoreBadFontPaths, dmxLog(), dmxScreens, dmxSetFontPath(), dmxSync(), dmxWarning, and _dmxFontPriv::font.
a58 25Referenced by dmxAttachScreen(), dmxBECreateResources(), and dmxRealizeFont().
| static int dmxCheckFontPath | ( | DMXScreenInfo * | dmxScreen, | ||||||||||||||||||||||
| int * | error | ||||||||||||||||||||||||
| ) | [static] |
| static Bool dmxCheckFontPathElement | ( | DMXScreenInfo * | dmxScreen, | a85 1a86 4 | char * | fp |
| ) | [static] |
References _DMXScreenInfo::beDisplay, dmxFontErrorHandler(), dmxFontLastError, and dmxSync().
Referenced by dmxBELoadFont().
| static int dmxFontErrorHandler | ( | Display * | dpy, | a91 1d93 2 a94 2 | XErrorEvent * | ev | a95 8 |
| ) | [static] |
References dmxFontLastError.
Referenced by dmxCheckFontPathElement(), and dmxSetFontPath().
| static void dmxFreeFontPath | ( | char ** | fp | ) | [static] |
| static char** dmxGetFontPath | ( | int * | npaths | ) | [static] |
a124 5
References dmxDebug, and dmxLog().
a125 16Referenced by dmxBELoadFont(), and dmxSetFontPath().
| void dmxInitFonts | ( | void | ) |
| static int dmxProcSetFontPath | ( | ClientPtr | client | ) | [static] |
References dmxCheckFontPath(), dmxNumScreens, and dmxScreens.
| Bool dmxRealizeFont | ( | ScreenPtr | pScreen, | a152 1d154 3 a156 2 | FontPtr | pFont | d160 2 a161 2 | ) | d163 1 d165 26 a190 21 |
| void dmxResetFonts | ( | void | ) | d192 1 d194 19 a212 36 |
| static int dmxSetFontPath | ( | DMXScreenInfo * | dmxScreen | ) | [static] |
References _DMXScreenInfo::beDisplay, dmxFontErrorHandler(), dmxFontLastError, dmxFreeFontPath(), dmxGetFontPath(), and dmxSync().
Referenced by dmxBELoadFont(), and dmxCheckFontPath().
| Bool dmxUnrealizeFont | ( | ScreenPtr | pScreen, | a219 1d221 3 a223 2 | FontPtr | pFont | d227 2 a228 2 | ) | a229 22 |
Unrealize the font, pFont, on the back-end server associated with pScreen.
References _DMXScreenInfo::beDisplay, dmxBEFreeFont(), dmxFontPrivateIndex, dmxScreens, _dmxFontPriv::font, and _dmxFontPriv::refcnt.
Referenced by dmxScreenInit().
int dmxFontLastError [static] |
Referenced by dmxCheckFontPathElement(), dmxFontErrorHandler(), and dmxSetFontPath().
int(* dmxSaveProcVector[256])(ClientPtr) [static] |