mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
* Source/gsc/GNUmakefile: Ditto. * Source/x11/GNUmakefile: Ditto. * Source/xdps/GNUmakefile: Ditto. * Source/xlib/GNUmakefile: Ditto. * Headers/win32/*.h: Update includes for new header structure. * Headers/winlib/*.h: Ditto. * Headers/x11/XGServer.h: Ditto. * Headers/xlib/*.h: Ditto. * Source/art/ftfont.m: Ditto. * Source/gsc/*.m: Ditto. * Source/x11/*.m: Ditto. * Source/xdps/*.m: Ditto. * Source/xlib/*.m: Ditto. * Tools/gpbs.m: Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17409 72102866-910b-0410-8b05-ffd578937521
88 lines
2.2 KiB
Objective-C
88 lines
2.2 KiB
Objective-C
/*
|
|
AFMFileFontInfo.h
|
|
|
|
Private data of PXKFont class.
|
|
|
|
Copyright (C) 1996 Free Software Foundation, Inc.
|
|
|
|
Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
|
|
Date: February 1997
|
|
|
|
This file is part of the GNUstep GUI X/DPS Library.
|
|
|
|
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., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|
*/
|
|
|
|
#ifndef __AFMFileFontInfo_h__
|
|
#define __AFMFileFontInfo_h__
|
|
|
|
#include <Foundation/NSMapTable.h>
|
|
#include <GNUstepGUI/GSFontInfo.h>
|
|
#include "parseAFM.h"
|
|
|
|
typedef struct {
|
|
NSGlyph glyph;
|
|
NSSize advancement;
|
|
} tPairKerningInfo;
|
|
|
|
@interface PXKFontEnumerator : GSFontEnumerator
|
|
{
|
|
}
|
|
@end
|
|
|
|
@interface AFMGlyphInfo : NSObject <NSCopying>
|
|
{
|
|
NSString* name;
|
|
NSGlyph code;
|
|
NSRect bbox;
|
|
NSSize advancement;
|
|
int lastKernPair;
|
|
int numOfPairs;
|
|
tPairKerningInfo* kerning;
|
|
}
|
|
|
|
+ (AFMGlyphInfo*) glyphFromAFMCharMetricInfo: (AFMCharMetricInfo*)metricInfo;
|
|
|
|
- (AFMGlyphInfo*)mutableCopyWithZone: (NSZone*)zone;
|
|
|
|
- (NSString*) name;
|
|
- (NSGlyph) code;
|
|
- (NSRect) boundingRect;
|
|
- (NSSize) advancement;
|
|
- (BOOL) isEncoded;
|
|
|
|
- (void) transformUsingMatrix: (const float*)matrix;
|
|
|
|
- (void) incrementNumberOfKernPairs;
|
|
- (void) addPairKerningForGlyph:(NSGlyph)glyph advancement:(NSSize)advancement;
|
|
- (NSSize) advancementIfFollowedByGlyph: (NSGlyph)glyph
|
|
isNominal: (BOOL*)nominal;
|
|
|
|
@end
|
|
|
|
|
|
@interface AFMFileFontInfo : GSFontInfo
|
|
{
|
|
NSString *afmFileName;
|
|
NSMapTable *glyphsByName;
|
|
AFMGlyphInfo *glyphs[256];
|
|
}
|
|
|
|
- (AFMFileFontInfo*)mutableCopyWithZone: (NSZone*)zone;
|
|
- (AFMFileFontInfo*)initUnscaledWithFontName: (NSString*)name;
|
|
@end
|
|
|
|
#endif /* __AFMFileFontInfo_h__ */
|
|
|