2004-08-02 21:50:17 +00:00
|
|
|
/*
|
2007-10-29 23:25:10 +00:00
|
|
|
CairoFaceInfo.h
|
|
|
|
|
|
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
August 31, 2003
|
|
|
|
Written by Banlu Kemiyatorn <object at gmail dot com>
|
|
|
|
Base on code by Alexander Malmberg <alexander@malmberg.org>
|
|
|
|
Rewrite: Fred Kiefer <fredkiefer@gmx.de>
|
|
|
|
Date: Jan 2006
|
|
|
|
|
|
|
|
This file is part of GNUstep.
|
|
|
|
|
|
|
|
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.
|
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.
|
|
|
|
*/
|
2004-08-02 21:50:17 +00:00
|
|
|
|
|
|
|
#ifndef CAIROFACEINFO_H
|
|
|
|
#define CAIROFACEINFO_H
|
2007-10-29 23:25:10 +00:00
|
|
|
|
2004-08-02 21:50:17 +00:00
|
|
|
#include <Foundation/Foundation.h>
|
2006-09-30 12:21:13 +00:00
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_FREETYPE_H
|
2011-05-19 07:37:29 +00:00
|
|
|
#define id cairo_id
|
2006-01-23 20:51:40 +00:00
|
|
|
#include <cairo-ft.h>
|
2011-05-19 07:37:29 +00:00
|
|
|
#undef id
|
2004-08-02 21:50:17 +00:00
|
|
|
|
|
|
|
@interface CairoFaceInfo : NSObject
|
|
|
|
{
|
|
|
|
int _weight;
|
|
|
|
unsigned int _traits;
|
|
|
|
|
2007-12-11 12:06:42 +00:00
|
|
|
cairo_font_face_t *_fontFace;
|
|
|
|
FcPattern *_pattern;
|
2004-08-02 21:50:17 +00:00
|
|
|
|
|
|
|
NSString *_familyName;
|
2011-05-05 20:05:13 +00:00
|
|
|
NSCharacterSet *_characterSet;
|
|
|
|
BOOL _hasNoCharacterSet;
|
2004-08-02 21:50:17 +00:00
|
|
|
}
|
|
|
|
|
2007-12-11 12:06:42 +00:00
|
|
|
- (id) initWithfamilyName: (NSString *)familyName
|
2006-01-23 20:51:40 +00:00
|
|
|
weight: (int)weight
|
|
|
|
traits: (unsigned int)traits
|
2007-12-11 12:06:42 +00:00
|
|
|
pattern: (FcPattern *)pattern;
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2006-01-23 20:51:40 +00:00
|
|
|
- (unsigned int) cacheSize;
|
2004-08-02 21:50:17 +00:00
|
|
|
|
|
|
|
- (int) weight;
|
|
|
|
- (void) setWeight: (int)weight;
|
|
|
|
- (unsigned int) traits;
|
|
|
|
- (void) setTraits: (unsigned int)traits;
|
|
|
|
|
|
|
|
- (NSString *) familyName;
|
|
|
|
- (void) setFamilyName: (NSString *)name;
|
|
|
|
|
2006-01-23 20:51:40 +00:00
|
|
|
- (cairo_font_face_t *)fontFace;
|
2004-08-02 21:50:17 +00:00
|
|
|
|
2011-03-28 04:19:41 +00:00
|
|
|
- (NSCharacterSet*)characterSet;
|
|
|
|
|
2004-08-02 21:50:17 +00:00
|
|
|
@end
|
|
|
|
#endif
|