mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 00:40:55 +00:00
Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13249 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
commit
669a4955e9
103 changed files with 35415 additions and 0 deletions
88
Source/xdps/AFMFileFontInfo.h
Normal file
88
Source/xdps/AFMFileFontInfo.h
Normal file
|
@ -0,0 +1,88 @@
|
|||
/*
|
||||
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 <AppKit/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__ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue