1*37da2899SCharles.Forsyth /* pcfutil.h 2*37da2899SCharles.Forsyth 3*37da2899SCharles.Forsyth FreeType font driver for pcf fonts 4*37da2899SCharles.Forsyth 5*37da2899SCharles.Forsyth Copyright 2000-2001 by 6*37da2899SCharles.Forsyth Francesco Zappa Nardelli 7*37da2899SCharles.Forsyth 8*37da2899SCharles.Forsyth Permission is hereby granted, free of charge, to any person obtaining a copy 9*37da2899SCharles.Forsyth of this software and associated documentation files (the "Software"), to deal 10*37da2899SCharles.Forsyth in the Software without restriction, including without limitation the rights 11*37da2899SCharles.Forsyth to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12*37da2899SCharles.Forsyth copies of the Software, and to permit persons to whom the Software is 13*37da2899SCharles.Forsyth furnished to do so, subject to the following conditions: 14*37da2899SCharles.Forsyth 15*37da2899SCharles.Forsyth The above copyright notice and this permission notice shall be included in 16*37da2899SCharles.Forsyth all copies or substantial portions of the Software. 17*37da2899SCharles.Forsyth 18*37da2899SCharles.Forsyth THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19*37da2899SCharles.Forsyth IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20*37da2899SCharles.Forsyth FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21*37da2899SCharles.Forsyth AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22*37da2899SCharles.Forsyth LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23*37da2899SCharles.Forsyth OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24*37da2899SCharles.Forsyth THE SOFTWARE. 25*37da2899SCharles.Forsyth */ 26*37da2899SCharles.Forsyth 27*37da2899SCharles.Forsyth 28*37da2899SCharles.Forsyth #ifndef __PCFUTIL_H__ 29*37da2899SCharles.Forsyth #define __PCFUTIL_H__ 30*37da2899SCharles.Forsyth 31*37da2899SCharles.Forsyth 32*37da2899SCharles.Forsyth #include <ft2build.h> 33*37da2899SCharles.Forsyth 34*37da2899SCharles.Forsyth 35*37da2899SCharles.Forsyth void 36*37da2899SCharles.Forsyth BitOrderInvert( unsigned char* buf, 37*37da2899SCharles.Forsyth int nbytes); 38*37da2899SCharles.Forsyth 39*37da2899SCharles.Forsyth void 40*37da2899SCharles.Forsyth TwoByteSwap( unsigned char* buf, 41*37da2899SCharles.Forsyth int nbytes); 42*37da2899SCharles.Forsyth 43*37da2899SCharles.Forsyth void 44*37da2899SCharles.Forsyth FourByteSwap( unsigned char* buf, 45*37da2899SCharles.Forsyth int nbytes); 46*37da2899SCharles.Forsyth 47*37da2899SCharles.Forsyth int 48*37da2899SCharles.Forsyth RepadBitmap( char* pSrc, 49*37da2899SCharles.Forsyth char* pDst, 50*37da2899SCharles.Forsyth unsigned int srcPad, 51*37da2899SCharles.Forsyth unsigned int dstPad, 52*37da2899SCharles.Forsyth int width, 53*37da2899SCharles.Forsyth int height); 54*37da2899SCharles.Forsyth 55*37da2899SCharles.Forsyth #endif /* __PCFUTIL_H__ */ 56*37da2899SCharles.Forsyth 57*37da2899SCharles.Forsyth 58*37da2899SCharles.Forsyth /* END */ 59