2004-08-02 21:50:17 +00:00
|
|
|
/*
|
2007-10-29 23:25:10 +00:00
|
|
|
CairoFontInfo.h
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2007-10-29 23:25:10 +00:00
|
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2007-10-29 23:25:10 +00:00
|
|
|
August 31, 2003
|
|
|
|
Written by Banlu Kemiyatorn <object at gmail dot com>
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2007-10-29 23:25:10 +00:00
|
|
|
This file is part of GNUstep.
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2007-10-29 23:25:10 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:12:46 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2007-10-29 23:25:10 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CairoFontInfo_h
|
|
|
|
#define CairoFontInfo_h
|
2004-08-02 21:50:17 +00:00
|
|
|
|
|
|
|
#include <GNUstepGUI/GSFontInfo.h>
|
2004-09-08 22:08:15 +00:00
|
|
|
#include "cairo/CairoFaceInfo.h"
|
2004-08-02 21:50:17 +00:00
|
|
|
#include <cairo.h>
|
|
|
|
|
|
|
|
@interface CairoFontInfo : GSFontInfo
|
|
|
|
{
|
|
|
|
@public
|
2005-07-27 23:25:32 +00:00
|
|
|
cairo_scaled_font_t *_scaled;
|
2004-08-02 21:50:17 +00:00
|
|
|
CairoFaceInfo *_faceInfo;
|
|
|
|
BOOL _screenFont;
|
2010-02-20 16:33:30 +00:00
|
|
|
CGFloat lineHeight;
|
2004-08-02 21:50:17 +00:00
|
|
|
|
|
|
|
unsigned int _cacheSize;
|
|
|
|
unsigned int *_cachedGlyphs;
|
|
|
|
NSSize *_cachedSizes;
|
|
|
|
}
|
2007-10-29 23:25:10 +00:00
|
|
|
|
2004-08-02 21:50:17 +00:00
|
|
|
- (void) setCacheSize:(unsigned int)size;
|
2004-09-08 22:08:15 +00:00
|
|
|
- (void) drawGlyphs: (const NSGlyph*)glyphs
|
|
|
|
length: (int)length
|
2005-08-28 00:48:12 +00:00
|
|
|
on: (cairo_t*)ct;
|
2004-08-02 21:50:17 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|