2013-09-10 21:07:03 +00:00
|
|
|
/*
|
|
|
|
FCFaceInfo.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
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
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 FCFACEINFO_H
|
|
|
|
#define FCFACEINFO_H
|
|
|
|
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_FREETYPE_H
|
|
|
|
#include <fontconfig/fontconfig.h>
|
|
|
|
|
|
|
|
@interface FCFaceInfo : NSObject
|
|
|
|
{
|
|
|
|
int _weight;
|
|
|
|
unsigned int _traits;
|
|
|
|
|
|
|
|
FcPattern *_pattern;
|
|
|
|
|
|
|
|
NSString *_familyName;
|
|
|
|
NSCharacterSet *_characterSet;
|
|
|
|
BOOL _hasNoCharacterSet;
|
2020-06-10 16:24:51 +00:00
|
|
|
BOOL _patternIsResolved;
|
2013-09-10 21:07:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithfamilyName: (NSString *)familyName
|
|
|
|
weight: (int)weight
|
|
|
|
traits: (unsigned int)traits
|
|
|
|
pattern: (FcPattern *)pattern;
|
|
|
|
|
|
|
|
- (unsigned int) cacheSize;
|
|
|
|
|
|
|
|
- (int) weight;
|
|
|
|
- (void) setWeight: (int)weight;
|
|
|
|
- (unsigned int) traits;
|
|
|
|
- (void) setTraits: (unsigned int)traits;
|
|
|
|
|
|
|
|
- (NSString *) familyName;
|
|
|
|
- (void) setFamilyName: (NSString *)name;
|
|
|
|
|
2010-10-07 19:36:20 +00:00
|
|
|
- (NSString *) displayName;
|
|
|
|
|
2013-09-10 21:07:03 +00:00
|
|
|
- (void *) fontFace;
|
|
|
|
- (FcPattern *) matchedPattern;
|
|
|
|
|
|
|
|
- (NSCharacterSet*)characterSet;
|
|
|
|
|
|
|
|
@end
|
|
|
|
#endif
|