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 @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxfont.c File Reference

#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)

Detailed Description

This file provides support for fonts.

Function Documentation

Bool dmxBEFreeFont ScreenPtr  pScreen,
FontPtr  pFont
 

Free pFont on the back-end associated with pScreen.

Bool dmxBELoadFont ScreenPtr  pScreen,
FontPtr  pFont
 

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.

void dmxInitFonts void   ) 
 

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.

Bool dmxRealizeFont ScreenPtr  pScreen,
FontPtr  pFont
 

Realize the font, pFont, on the back-end server associated with pScreen.

void dmxResetFonts void   ) 
 

Reset font support by restoring the original ProcVector function pointers.

Bool dmxUnrealizeFont ScreenPtr  pScreen,
FontPtr  pFont
 

Unrealize the font, pFont, on the back-end server associated with pScreen.


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 17 a25 69

dmxfont.c File Reference

#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

Detailed Description

This file provides support for fonts.


Define Documentation

#define DMX_FONTPATH_DEBUG   0
d27 1 a27 28

Function Documentation

Bool dmxBEFreeFont ( ScreenPtr  pScreen,
FontPtr  pFont 
)

Free pFont on the back-end associated with pScreen.

d29 1 a29 1

References _DMXScreenInfo::beDisplay, dmxFontPrivateIndex, dmxScreens, and _dmxFontPriv::font.

d31 1 a31 1

Referenced by dmxBEDestroyResources(), and dmxUnrealizeFont().

d33 8 a40 6
d42 4 a45 4 a47 1 d49 3 a51 2 d55 2 a56 2 a57 6
Bool dmxBELoadFont ( ScreenPtr  pScreen, FontPtr  pFont )

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 25

Referenced by dmxAttachScreen(), dmxBECreateResources(), and dmxRealizeFont().

d60 19 a78 13
static int dmxCheckFontPath ( DMXScreenInfo dmxScreen,
int *  error 
) [static]
d80 4 a83 4 a85 1 a86 4 d88 2 a89 22
static Bool dmxCheckFontPathElement ( DMXScreenInfo dmxScreen, char *  fp 
) [static]
a91 1 d93 2 a94 2 a95 8
static int dmxFontErrorHandler ( Display *  dpy, XErrorEvent *  ev 
) [static]
a96 18

References dmxFontLastError.

Referenced by dmxCheckFontPathElement(), and dmxSetFontPath().

d98 26 a123 18

Referenced by dmxBELoadFont(), and dmxSetFontPath().

static void dmxFreeFontPath ( char **  fp  )  [static]
a124 5
static char** dmxGetFontPath ( int *  npaths  )  [static]

References dmxDebug, and dmxLog().

a125 16

Referenced by dmxBELoadFont(), and dmxSetFontPath().

d127 19 a145 34

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.

References dmxSaveProcVector.

Referenced by InitOutput().

void dmxInitFonts ( void   ) 
static int dmxProcSetFontPath ( ClientPtr  client  )  [static]
d147 4 a150 4 a152 1 d154 3 a156 2 d160 2 a161 2 d163 1 d165 26 a190 21

Realize the font, pFont, on the back-end server associated with pScreen.

References _DMXScreenInfo::beDisplay, dmxBELoadFont(), dmxFontPrivateIndex, dmxScreens, _dmxFontPriv::font, and _dmxFontPriv::refcnt.

Referenced by dmxScreenInit().

Bool dmxRealizeFont ( ScreenPtr  pScreen, FontPtr  pFont )
d192 1 d194 19 a212 36

Reset font support by restoring the original ProcVector function pointers.

References dmxSaveProcVector.

Referenced by dmxCloseScreen().

void dmxResetFonts ( void   ) 
static int dmxSetFontPath ( DMXScreenInfo dmxScreen  )  [static]
d214 4 a217 4 a219 1 d221 3 a223 2 d227 2 a228 2 a229 22
Bool dmxUnrealizeFont ( ScreenPtr  pScreen, FontPtr  pFont )

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().


Variable Documentation

d232 14 a245 8

Referenced by dmxInitFonts(), and dmxResetFonts().

@ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2
int(* dmxSaveProcVector[256])(ClientPtr) [static]
d44 1 a44 1 d47 13 a59 13 d62 2 a63 2 d65 3 a67 3

Detailed Description

This file provides support for fonts.


Define Documentation

d73 1 a73 1 d89 2 a90 2 d95 2 a96 2 d101 1 a101 1 d121 2 a122 2 d127 2 a128 2 d133 1 a133 1 d153 2 a154 2 d159 2 a160 2 d165 1 a165 1 d184 2 a185 2 d190 2 a191 2 d196 1 a196 1 d215 2 a216 2 d221 2 a222 2 d227 1 a227 1 d246 3 a248 2 d266 3 a268 2 d288 3 a290 2 d298 1 a298 1

References dmxProcSetFontPath(), and dmxSaveProcVector.

d311 3 a313 2 a321 2

Referenced by dmxInitFonts().

d331 2 a332 2 d337 2 a338 2 d343 1 a343 1 d363 3 a365 2 d386 3 a388 2 d408 2 a409 2 d414 2 a415 2 d420 1 a420 1 a464 4
#define DMX_FONTPATH_DEBUG   0
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)
static int(* dmxSaveProcVector [256])(ClientPtr)
static int dmxFontLastError
#define DMX_FONTPATH_DEBUG   0ScreenPtr  pScreen, FontPtr  pFont ScreenPtr  pScreen, FontPtr  pFont DMXScreenInfo dmxScreen, int *  error  [static]DMXScreenInfo dmxScreen, char *  fp  [static]Display *  dpy, XErrorEvent *  ev  [static]char **  fp)int *  npaths)void  )ClientPtr  client)ScreenPtr  pScreen, FontPtr  pFont void  )DMXScreenInfo dmxScreen)ScreenPtr  pScreen, FontPtr  pFont