mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 12:21:34 +00:00
* header fixes to include freetype * fixed glitz api change (but does not work, because I don't know how to retrieve a proper VisualID for the display) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23681 72102866-910b-0410-8b05-ffd578937521
62 lines
1.7 KiB
Objective-C
62 lines
1.7 KiB
Objective-C
/*
|
|
* 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 library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library 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
|
|
* Library General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the Free
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
|
*/
|
|
|
|
#ifndef CAIROFACEINFO_H
|
|
#define CAIROFACEINFO_H
|
|
#include <Foundation/Foundation.h>
|
|
#include <ft2build.h>
|
|
#include FT_FREETYPE_H
|
|
#include <cairo-ft.h>
|
|
|
|
@interface CairoFaceInfo : NSObject
|
|
{
|
|
int _weight;
|
|
unsigned int _traits;
|
|
|
|
cairo_font_face_t *_fontFace;
|
|
FcPattern *_pattern;
|
|
|
|
NSString *_familyName;
|
|
}
|
|
|
|
- (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;
|
|
|
|
- (cairo_font_face_t *)fontFace;
|
|
|
|
@end
|
|
#endif
|